I can launch a file after searching through fzf
by doing xdg-open (fzf)
(I'm using fish) or fzf | xargs xdg-open
. But these do not work if I try to create a shortcut for opening a terminal and executing this.
If I launch alacritty -e xdg-open (fzf)
or alacritty -e fzf | xargs xdg-open
, nothing happens. Same with mimeopen
. It doesn't work if I do xargs -I {} xdg-open {}
either. Please help.
alacritty -e fzf | xargs xdg-open
the command will be split at the pipe symbol, so it will runalacritty -e fzf
and feed the output of that into xdg-open. Tryalacritty -e sh -c 'fzf | xargs xdg-open'
(untested).