feat(fish): add preview window for the fzf-zoxide function

This commit is contained in:
Sergio Laín 2024-08-24 01:54:26 +02:00
parent bff9c54e94
commit 62ee3822ba
No known key found for this signature in database
GPG key ID: 8429B2EE312F8150

View file

@ -74,9 +74,9 @@ set -xg FZF_DEFAULT_OPTS "--height=90% --layout=reverse --info=inline --border r
--bind 'ctrl-u:preview-half-page-up' --bind 'ctrl-u:preview-half-page-up'
--bind 'ctrl-d:preview-half-page-down' --bind 'ctrl-d:preview-half-page-down'
--bind 'ctrl-y:execute-silent(printf {} | cut -f 2- | wl-copy --trim-newline)'" --bind 'ctrl-y:execute-silent(printf {} | cut -f 2- | wl-copy --trim-newline)'"
set -xg _ZO_FZF_OPTS $FZF_DEFAULT_OPTS
set -xg fzf_preview_dir_cmd eza --long --header --icons --all --color=always --group-directories-first --hyperlink set -xg fzf_preview_dir_cmd eza --long --header --icons --all --color=always --group-directories-first --hyperlink
set -xg fzf_fd_opts --hidden --color=always set -xg fzf_fd_opts --hidden --color=always
set -xg _ZO_FZF_OPTS $FZF_DEFAULT_OPTS '--preview "{$fzf_preview_dir_cmd} {2}"'
# Other # Other
if type -q vivid if type -q vivid