Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A way of resetting input #3005

Open
herberteuler opened this issue Dec 19, 2022 · 0 comments
Open

A way of resetting input #3005

herberteuler opened this issue Dec 19, 2022 · 0 comments

Comments

@herberteuler
Copy link

I just switched from ido-mode, and one of the features that I miss in counsel-find-file is the ability to find another file that is in the same directory of a previously visited file.

In ido-mode this can be done via pressing M-p several times until the previous directory in question is shown up, and then starting to type partial names there.

But in counsel-find-file, while typing M-p can also show previously visited files, the file name is always there, one has to clear it before typing the patterns of the new file.

I find a command like this is pretty useful in such a situation:

(defun my-ivy-reset-input ()
  (interactive)
  (delete-region (line-beginning-position) (line-end-position)))

Binding it to C-l and I'm quite satisfied.

How about adding this feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant