Replace rifle with xdg-open for fuzzy file opening

rifle is going away soon with ranger being replaced by vifm in these
dotfiles. To be prepared, and make them more universal, the fuzzy file
finder uses xdg-open to open any files.
This commit is contained in:
Marty Oehme 2019-07-03 22:27:57 +02:00
parent bf28f2067d
commit 9df014fa62

View file

@ -27,9 +27,8 @@ else
fi fi
# set up fuzzy file and directory search # set up fuzzy file and directory search
# TODO still uses rifle (from ranger fm) - decide whether to keep it or not alias f="fzf -c 'find . -type f' --preview='head -$LINES {}' | xargs xdg-open"
alias f="fzf -c 'find . -type f' --preview='head -$LINES {}' | xargs rifle" alias F="fzf -c 'find ~ -type f' --preview='head -$LINES {}' | xargs xdg-open"
alias F="fzf -c 'find ~ -type f' --preview='head -$LINES {}' | xargs rifle"
alias d="fzf -c 'find . -type d' --preview='ls --color='always' {}' | cd" alias d="fzf -c 'find . -type d' --preview='ls --color='always' {}' | cd"
alias D="fzf -c 'find ~ -type d' --preview='ls --color='always' {}' --color=dark --ansi | cd" alias D="fzf -c 'find ~ -type d' --preview='ls --color='always' {}' --color=dark --ansi | cd"