Skip to content
Myr

Make it possible to change one-time preview window

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 32eb8c1 · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:src/terminal.go+4 added-1 removed
5660 unmodified lines
5661 case previewOptsDifferentLayout:5662 // Preview command can be running in the background if the size of5663 // the preview window is 0 but not 'hidden'5664 wasHidden := currentPreviewOpts.hidden5665 updatePreviewWindow(false)56655666 // FIXME: One-time preview window can't reappear once hidden5667 // fzf --bind space:preview:ls --bind 'enter:change-preview-window:down|left|up|hidden|'5668 updatePreviewWindow(t.hasPreviewWindow() && !t.activePreviewOpts.hidden)5669 if wasHidden && t.hasPreviewWindow() {5670 // Restart5671 refreshPreview(t.previewOpts.command)5672 } else if t.activePreviewOpts.hidden {
324 unmodified lines