-
How can I naviage up/down with j/k and also hide the search bar from here? buffers = {
prompt = " ",
no_header = true,
fzf_opts = { ["--delimiter"] = " ", ["--with-nth"] = "-1.." },
winopts = {
title = " Switch Buffer ",
preview = { hidden = "hidden" },
title_pos = "center",
width = 0.60,
height = 0.80,
},
} |
Beta Was this translation helpful? Give feedback.
Answered by
ibhagwan
Dec 21, 2024
Replies: 2 comments 13 replies
-
i have added this for navigate: keymap = {
fzf = {
["h"] = "abort",
["j"] = "down",
["k"] = "up",
["l"] = "accept",
},
} But, is there any way to hide the search bar? |
Beta Was this translation helpful? Give feedback.
13 replies
-
From #1653 (comment) 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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think I understand what you want now, to hide the entire search input line, not just the cursor.
A bit hardly but possible junegunn/fzf#2890 (comment)