Header action shortcuts not visible enough #1620
Replies: 2 comments 8 replies
-
You can press F1 to see help for all the mappings (customizable): If you run Also play with the F4/F5/F6 to hide / rotate the preview, it should help in this case.
Ty for the kind words friend :) |
Beta Was this translation helpful? Give feedback.
-
@ibhagwan suggestion: instead of making interactive headers the default, what about making a single, simple static Happy to take a stab at a PR if you think this is a good idea? For reference this is what I have set up for mine: Note I'm using 3 keymaps because I'm experimenting to find the most natural for me. I use a corne keyboard due to RSI and my fn keys are on the 3rd layer 'cause I rarely use them, so the default F1 is a bit cumbersome for me. Here's my code if anyone is interested: function(_, opts)
local fzf_utils = require("fzf-lua.utils")
local fzf_highlights = require("fzf-lua.config").defaults.__HLS
LazyVim.merge(opts, {
winopts = {
-- border = "none",
height = 0.5,
width = 1,
row = 1,
col = 0,
},
keymap = {
builtin = {
true,
["<C-h>"] = "toggle-help",
["<C-/>"] = "toggle-help",
},
},
defaults = {
RIPGREP_CONFIG_PATH = vim.env.RIPGREP_CONFIG_PATH,
header = string.format(
"%s%s%s%s%s%s%s\n\n",
fzf_utils.ansi_from_hl(fzf_highlights.header_bind, "<C-h>"),
fzf_utils.ansi_from_hl(fzf_highlights.header_text, ", "),
fzf_utils.ansi_from_hl(fzf_highlights.header_bind, "<C-/>"),
fzf_utils.ansi_from_hl(fzf_highlights.header_text, " or "),
fzf_utils.ansi_from_hl(fzf_highlights.header_bind, "<F1>"),
fzf_utils.ansi_from_hl(fzf_highlights.header_text, " for "),
fzf_utils.ansi_from_hl(fzf_highlights.header_bind, "help")
),
},
grep = {
rg_glob = true,
},
})
end |
Beta Was this translation helpful? Give feedback.
-
So I've tried doing a few searches here to see if I can find a way to get access to the header (mappings):
The problem is that at least for me they will trim so it's not very useful and I could not find a way to show the full header... With telescope you can hit one of these two and it will show you all the possible combinations:
To split vertically, horizontally, ctrl+g,.... I think it would be nice because I feel like I'm missing some mappings so I find my self reading on reddit to see how people are using the plugin lol
I've been using this for a week and I'm impressed, such a piece of art @ibhagwan ! Congrats for making such an amazing tool ;)
Beta Was this translation helpful? Give feedback.
All reactions