From 9df014fa62a69a0719fe755e6327851a38805a6e Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 3 Jul 2019 22:27:57 +0200 Subject: [PATCH] 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. --- .config/shell/rc.d/fuzzy-finding.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.config/shell/rc.d/fuzzy-finding.sh b/.config/shell/rc.d/fuzzy-finding.sh index e8fbebd..98ecd34 100644 --- a/.config/shell/rc.d/fuzzy-finding.sh +++ b/.config/shell/rc.d/fuzzy-finding.sh @@ -27,9 +27,8 @@ else fi # 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 rifle" -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 xdg-open" 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"