-
I've been enjoying fzf.lua and it's working really good for me. However, I can't replicate what I had with telescope. In telescope I used buttons to go up and down and when I need to focus on the search again I'd press and I can search again. I press and move back and forth again if I want. I added the following code, but it doesn't let me focus back on the search input or type a name containing those two letters ('jk').
Is this possible to do with fzf.lua in anther way? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
The below sets this up to use
require('fzf-lua').setup({
keymap = {
fzf = {
true,
["h"] = "abort",
["j"] = "down",
["k"] = "up",
["l"] = "accept",
["i"] = "unbind(h)+unbind(j)+unbind(k)+unbind(l)+unbind(i)",
["esc"] = "rebind(h)+rebind(j)+rebind(k)+rebind(l)+rebind(i)",
},
}
}) |
Beta Was this translation helpful? Give feedback.
-
FYI, after the latest commit 12ac915 you can do the below and keep your require('fzf-lua').setup({
"default-title", -- Important as we lose the prompt
keymap = {
fzf = {
true,
["h"] = "abort",
["j"] = "down",
["k"] = "up",
["l"] = "accept",
["i"] = "unbind(h)+unbind(j)+unbind(k)+unbind(l)+unbind(i)+change-prompt(> )",
["esc"] = 'transform:case "$FZF_PROMPT" in\n'
.. '*NORMAL*) echo abort;;\n'
.. '*) echo "change-prompt(NORMAL - PRESS \'I\' FOR INSERT MODE)'
.. '+rebind(h)+rebind(j)+rebind(k)+rebind(l)+rebind(i)";;'
.. '\nesac',
["start"] = "change-prompt(NORMAL - PRESS 'I' FOR INSERT MODE)"
},
}
}) |
Beta Was this translation helpful? Give feedback.
-
Thank you so much. I will try this one. |
Beta Was this translation helpful? Give feedback.
FYI, after the latest commit 12ac915 you can do the below and keep your
esc
as double purpose to abort from "normal" mode, this also changes the prompt info (e.g. "Files") to be displayed in the title since we lose the prompt: