swiper
swiper copied to clipboard
ivy-rotate-sort in counsel-find-file resets current path
Using ivy-rotate-sort after counsel-up-directory while in counsel-find-file resets the current path to the path originally set when entering counsel-find-file. Expected that it would only change file list order.
Tested with 7c5d49f (2021-05-18).
Any chance of a reproducer? I tried the following:
-
emacs -Q
-
M-x package-initialize RET
-
M-x counsel-mode RET
-
C-x C-f
-
C-DEL
-
C-c C-s
And nothing happens.
ivy-sort-functions-alist needs to be set to something useful. https://oremacs.com/swiper/Changelog#0-9-0-nc-ivy-rotate-sort will reproduce, for example.
Thanks. I don't know why ivy--cd
doesn't update default-directory
, nor why ivy--reset-state
resets ivy--directory-hist
. Hopefully someone else does.