You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a wrapper for fzf to show list of my most frequently edited files like dotfiles and explicitly use ~ to make it visually cleaner to see the entries (vs. /home/rieje). with --preview='less {}' I get: ~/path/to/file: No such file or directory. Is it possible for the previewer to expand ~ as you would expect?
I would much prefer not having to parse the selected item to convert it back to /home/rieje/path/to/file.
Also, is there a way have results show paths with ~ but on selection expand it for an arbitrary command? For example selecting ~/path.txt for vim to run as /home/rieje. I could write a wrapper script to translate it manually onl selection before passing it to vim, but this cannot be done for e.g. fzf's default Ctrl-T AFAIK.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a wrapper for fzf to show list of my most frequently edited files like dotfiles and explicitly use
~
to make it visually cleaner to see the entries (vs./home/rieje
). with--preview='less {}'
I get:~/path/to/file: No such file or directory
. Is it possible for the previewer to expand~
as you would expect?I would much prefer not having to parse the selected item to convert it back to
/home/rieje/path/to/file
.Also, is there a way have results show paths with
~
but on selection expand it for an arbitrary command? For example selecting~/path.txt
for vim to run as/home/rieje
. I could write a wrapper script to translate it manually onl selection before passing it to vim, but this cannot be done for e.g. fzf's default Ctrl-T AFAIK.Beta Was this translation helpful? Give feedback.
All reactions