Closed cibinmathew closed 3 years ago
While I haven't tested this you should be able to set @extrakto_fzf_tool
to "fzf --preview 'cat {}'"
.
This didnt work because of it checking for the fzf path with the entire string I guess. I tried with a new variable but it failed in picking it.
Yes, it fails because bash expands '
in a strange way.
You can put fzf --preview 'cat {}' "$@"
into a script file and then point @extrakto_fzf_tool
to it. Not sure if that is what you want but it can preview absolute paths.
Closing as well.
Add env variable to provide fzf options eg:
set -g @extrakto_fzf_options "--preview 'cat {}'"