Fzf: shortcut to switch preview on/off

Created on 27 Sep 2016  路  2Comments  路  Source: junegunn/fzf

  • Category

    • [x ] fzf binary

    • [ ] fzf-tmux script

    • [ ] Key bindings

    • [ ] Completion

    • [ ] Vim

    • [ ] Neovim

    • [ ] Etc.

  • OS

    • [ ] Linux

    • [ ] Mac OS X

    • [ ] Windows

    • [ ] Etc.

  • Shell

    • [x ] bash

    • [ ] zsh

    • [ ] fish

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

Most helpful comment

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.

All 2 comments

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.

Works like a charm. Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lbeier picture lbeier  路  3Comments

leonklingele picture leonklingele  路  3Comments

fenuks picture fenuks  路  3Comments

sassanh picture sassanh  路  3Comments

ahmedelgabri picture ahmedelgabri  路  3Comments