zoxide icon indicating copy to clipboard operation
zoxide copied to clipboard

Allow customization of directory preview

Open mawkler opened this issue 3 years ago • 2 comments

I would like to use exa instead of ls for the previewer. I also kinda preferred having the preview on the right instead of the bottom, which was recently changed. It would be sweet if the arguments passed to Fzf's --preview (and perhaps also --preview-window) could be customized by the user.

mawkler avatar Aug 24 '22 11:08 mawkler

@melkster Based on f628845fb74e7f96d30ced3550af09b9e4831e28, you will need to set this environment variable.

export _ZO_FZF_OPTS="--no-sort --keep-right --height=50% --info=inline --layout=reverse --exit-0 --select-1 --bind=ctrl-z:ignore --preview='\command exa {2..}' --preview-window=right"

This sets the command to exa, and moves the preview back to the right.

arctic-penguin avatar Sep 01 '22 15:09 arctic-penguin

Thank you, that works!

mawkler avatar Sep 07 '22 20:09 mawkler

Closing as fixed. zoxide provides a bunch of default options for fzf, it's hard to provide customizability for every one of them.

ajeetdsouza avatar Sep 17 '22 19:09 ajeetdsouza