Skip to content

Dynamically resizing the float layout before preview toggle #1115

Closed Answered by ibhagwan
asmodeus812 asked this question in Q&A
Discussion options

You must be logged in to vote

Can we at least adjust toggle_preview as suggested above ?

Why would we want to redraw main when no change is required to the fzf terminal window? With native previews, the toggle happens internally inside fzf, this function doesn’t even get called for native previewers, nor does the binding for this exist for native previewers:

local keymap_tbl = {
["toggle-help"] = { module = "win", fnc = "toggle_help()" },
["toggle-fullscreen"] = { module = "win", fnc = "toggle_fullscreen()" },
}
if self.previewer_is_builtin then
-- These maps are only valid for the builtin previewer
keymap_tbl = vim.tbl_d…

Replies: 6 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@asmodeus812
Comment options

@asmodeus812
Comment options

Comment options

You must be logged in to vote
2 replies
@asmodeus812
Comment options

@asmodeus812
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by asmodeus812
Comment options

You must be logged in to vote
1 reply
@asmodeus812
Comment options

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