jethrokuan / fzf

Ef-🐟-ient fish keybindings for fzf
MIT License
861 stars 66 forks source link

Adding preview option to fzf_open #79

Closed dpayne closed 6 years ago

dpayne commented 6 years ago

This adds a preview option to the open command. I default to using head -100 as the preview option but I also added support for specifying the pager. For example, bind \cp '__fzf_open --editor --preview="bat --color always {}"' would make use of bat to show a nice preview window. I also added used ls -al for showing directories, this is mostly to show something reasonable for directories.

fzf_open with preview