How to add action to reload fzf with different input? #1459
-
I'm trying to add some functionality where my default f pulls up fzf.files and then I can switch to a different mode with actions (Ctrl-m to switch to git modified files). I want to keep all the defaults of the normal fzf.files call, but be able to switch to a different provider on some key map. Is there an easy way to achieve that? I tried the following and it works whenever I hit Ctrl-m, but now when I hit Enter it also opens up the thing I mapped to Ctrl-m (not sure why?). in fzf lua config:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Use |
Beta Was this translation helpful? Give feedback.
The reason this happens is because
ctrl-m
is the same as enter (try it in the shell), similarlyctrl-i
is tab, etc, switching to a different bind that doesn’t conflict will work, e.g.ctrl-g
.Btw, I would also add F1 help string (desc) and header hint: