]> code.delx.au - gnu-emacs-elpa/commit
Make the slash more magic during file name completion
authorOleh Krehel <ohwoeowho@gmail.com>
Mon, 18 Apr 2016 08:01:26 +0000 (10:01 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Mon, 18 Apr 2016 08:07:57 +0000 (10:07 +0200)
commitd45ee5459a72a664f29ab554d54e7861360d46e9
treed8c2620d604809218c0c07a6f7132e5bff30653b
parent25e1444f0a129f1357419cbb4ed1cdf7f51ceb7d
Make the slash more magic during file name completion

* ivy.el (ivy--magic-file-slash): Extract from `ivy--exhibit'.
(ivy--exhibit): Update.

Update to the behavior: the slash ("/") will enter a directory even if
its name isn't completely typed out if either:

1. It's the only candidate.
2. The candidate index isn't 0, i.e. "C-n" has been typed at least once.
3. The input isn't "/".

The above rules still allow to keep the old behavior with "//" moving to
root and "/ssh:" opening tramp.

This is an experimental feature, please report if it breaks someone's
workflow.

Re #321.
ivy.el