Skip to content

How to remap enter to a different command to execute #2897

Answered by tg0h
Ultra-Code asked this question in Q&A
Discussion options

You must be logged in to vote

Have a look at https://github.com/junegunn/fzf/wiki/Examples#dnf

The example does not unbind and rebind enter. Rather, it uses a single enter command, stores the current state (whether in ctrl-e or ctrl-d mode) in a temp file and then uses that to determine what enter should do.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Ultra-Code
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants