mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-14 14:23:47 -05:00
Make it possible to change one-time preview window
This commit is contained in:
@@ -5662,7 +5662,10 @@ func (t *Terminal) Loop() error {
|
|||||||
// Preview command can be running in the background if the size of
|
// Preview command can be running in the background if the size of
|
||||||
// the preview window is 0 but not 'hidden'
|
// the preview window is 0 but not 'hidden'
|
||||||
wasHidden := currentPreviewOpts.hidden
|
wasHidden := currentPreviewOpts.hidden
|
||||||
updatePreviewWindow(false)
|
|
||||||
|
// FIXME: One-time preview window can't reappear once hidden
|
||||||
|
// fzf --bind space:preview:ls --bind 'enter:change-preview-window:down|left|up|hidden|'
|
||||||
|
updatePreviewWindow(t.hasPreviewWindow() && !t.activePreviewOpts.hidden)
|
||||||
if wasHidden && t.hasPreviewWindow() {
|
if wasHidden && t.hasPreviewWindow() {
|
||||||
// Restart
|
// Restart
|
||||||
refreshPreview(t.previewOpts.command)
|
refreshPreview(t.previewOpts.command)
|
||||||
|
|||||||
Reference in New Issue
Block a user