atweiden / fzf-extras

Key bindings from fzf wiki
MIT License
192 stars 23 forks source link

Add preview window toggle #16

Closed u1and0 closed 3 years ago

u1and0 commented 4 years ago

Add preview window toggle keybind as Ctrl+V @fzf-extra.sh/zd ()

@zd() zdf() e() fe() Export $FZF_PREVIEW_CMD for preview file, which depends on sharkdp/bat or python-pygments for syntax highlight file preview like ...

fzf --preview="${FZF_PREVIEW_CMD}"

@zd() zdd() zda() zdr() zst() zz() For preview directory structure, use tree -C command like...

fzf --preview 'tree -C {} | head -n $FZF_PREVIEW_LINES'
atweiden commented 4 years ago

see https://github.com/atweiden/fzf-extras/commit/f94aa01f4b122e194689fca55da88d3a825f4541

atweiden commented 3 years ago

Thanks for your PR. I've credited you to the extent possible given the rebase.