You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw on a forum that someone wants to use C-a C-k to kill the whole path when using counsel-find-file, but C-a won't go into the pre-existing default-directory.
Since I can press DEL (backspace) to delete it, I think a better way is to create a command that runs ivy-backward-delete-char until an error happen, and bind it to a key under counsel-find-file-map. So I did this:
But this doesn't work. Further experiments show that if I bind ivy-backward-delete-char to some key, it won't delete into the pre-existing path, but pressing DEL will. I wonder why this happens?
Update: Typing ~ or // will clear the input, but he is on a Windows machine. I don't know if you can type something like C:/ to clear the input.
The text was updated successfully, but these errors were encountered:
I saw on a forum that someone wants to use
C-a C-k
to kill the whole path when usingcounsel-find-file
, butC-a
won't go into the pre-existingdefault-directory
.Since I can press
DEL
(backspace) to delete it, I think a better way is to create a command that runsivy-backward-delete-char
until an error happen, and bind it to a key undercounsel-find-file-map
. So I did this:But this doesn't work. Further experiments show that if I bind
ivy-backward-delete-char
to some key, it won't delete into the pre-existing path, but pressingDEL
will. I wonder why this happens?Update: Typing
~
or//
will clear the input, but he is on a Windows machine. I don't know if you can type something likeC:/
to clear the input.The text was updated successfully, but these errors were encountered: