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

Can't use dired-do-rename with ivy-mode #525

Closed
hmelman opened this Issue May 28, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@hmelman
Copy link

commented May 28, 2016

I tried to rename a file in dired with ivy-mode enabled but I couldn't because ivy-completing-read kept matching a filename. In my case I was renaming something to remove dashes from the name, so "foo-bar.md" to "foo bar.md", so ivy still matched the original name. I could find no other workaround than to disable ivy-mode for the command and then reenable it. I think there should be an easier way, is there?

@abo-abo

This comment has been minimized.

Copy link
Owner

commented May 29, 2016

Press C-M-j (ivy-immediate-done) instead of C-j. It's explained in the manual.

@hmelman

This comment has been minimized.

Copy link
Author

commented May 29, 2016

I figured there had to be way, thanks. I looked in C-h m at the time and didn't notice this solution, even though it's there. I do remember looking into ivy-alt-done and realizing it wasn't the solution, maybe the name ivy-immediate-done could be improved? Something like ivy-done-using-input or ivy-done-current-input or ivy-skip-selection or ivy-accept-current-input?

Also, maybe the help text could reverse the first sentence "exit with the current action, calling
it on the /current input/ instead of the current candidate." so the input vs candidate part is emphasized instead of the "exit with current action" part. So: exit using the current /input/ (not /candidate/) calling the current action.

@abo-abo abo-abo closed this in f57e2fb May 30, 2016

@abo-abo

This comment has been minimized.

Copy link
Owner

commented May 30, 2016

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.