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

Only run the directory portion of "ivy-alt-done" #1891

Closed
kevinji opened this issue Jan 16, 2019 · 2 comments

Comments

@kevinji
Copy link

commented Jan 16, 2019

Is it possible to only run the "when the candidate is a directory, enter it" part of ivy-alt-done, and have nothing happen if a file or a non-existent path is selected? This action would essentially never exit the candidate minibuffer.

@abo-abo abo-abo closed this in 8d4dbc4 Jan 23, 2019

@abo-abo

This comment has been minimized.

Copy link
Owner

commented Jan 23, 2019

Thanks. Here's a sample config:

(define-key counsel-find-file-map (kbd "<right>") 'counsel-down-directory)
(define-key counsel-find-file-map (kbd "<left>") 'counsel-up-directory)

Please test.

@kevinji

This comment has been minimized.

Copy link
Author

commented Jan 23, 2019

Looks good to me, thanks!

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