junegunn / fzf

:cherry_blossom: A command-line fuzzy finder
https://junegunn.github.io/fzf/
MIT License
63.9k stars 2.37k forks source link

shortcut to switch preview on/off #676

Closed nkh closed 7 years ago

nkh commented 7 years ago

preview is indeed very practical in many cases but when the file name is very long, it is hidden by the preview pane. an "online" key shortcut to switch the pane on/off would greatly help

DanielFGray commented 7 years ago

I think --bind='F2:toggle-preview' is what you're looking for. You can of course substitute F2 for whatever key (or key combo) you like.

toggle-preview is listed under ACTIONS in the KEY BINDINGS section of the man page.

nkh commented 7 years ago

Works like a charm. Thank you.