]> code.delx.au - gnu-emacs-elpa/commit
"M-n", "M-p", "M-i" should switch directories when needed
authorOleh Krehel <ohwoeowho@gmail.com>
Thu, 18 Jun 2015 11:32:36 +0000 (13:32 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Thu, 18 Jun 2015 11:32:36 +0000 (13:32 +0200)
commite238286fbfb54a1314e7649c0f801d4a18099735
treeeba21d079635519b861a46e9e36fef4c7ff18401
parentbcc5f452276b6ba27f9735bb55c8e088bda5cc49
"M-n", "M-p", "M-i" should switch directories when needed

* ivy.el (ivy-previous-history-element):
(ivy-next-history-element):
(ivy-switch-buffer): Call `ivy--cd-maybe'.
(ivy--cd-maybe): New defun. Check if the current input points to a
different directory than `ivy--directory'. If so, `ivy--cd' there.

Fixes #152
ivy.el