Closed Halem998 closed 1 year ago
I do not use zsh and would not be able to come up with a working solution. If you or someone else has a working code for zsh, please write it here and I will add it to the README. A simple starting point is the code
ag -U -g ".pdf$" | fast-p | fzf --read0 --reverse -e -d $'\t' --preview 'echo -e {1}; echo -e {2}'.
Good to hear it worked out. Your code is missing highlighting of the search query terms in the preview window compared to the bash version. This is what
v=$(echo {q} | tr " " "|");
echo -e {1}"\n"{2} | grep -E "^|$v" -i --color=always
in the bash snippet from the README is about.
I actually forgot to source it the very first time I put your snippet into zsh. It worked all along!
I put the mentioned code snippet into my .bashrc but in fact my default shell is zsh [...] In order to make the
p
command work, i have to instantiate a bash session.how can I get all this going in Zsh as well?
Thanks alot