From 76029e29f72d84cfda69be529c33f621144f3ef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Thu, 20 Apr 2023 00:50:00 +0300 Subject: Fix xdg-open/mimeo blocking --- dotfiles/.config/lf/lfrc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'dotfiles/.config/lf') diff --git a/dotfiles/.config/lf/lfrc b/dotfiles/.config/lf/lfrc index c6034f9..e9223b8 100644 --- a/dotfiles/.config/lf/lfrc +++ b/dotfiles/.config/lf/lfrc @@ -66,11 +66,8 @@ cmd fzf_jump ${{ cmd fzf_open ${{ res="$(find . -type d -path "*/\.*" -prune -o -not -name ".*" -type f | fzf)" if [ -e "$res" ]; then - cmd="mimeo" - else - cmd="select" + &xdg-open "$res" fi - $cmd "$res" }} # drag and drop prompt @@ -81,7 +78,7 @@ cmd dragon_drop $cp $(dragon-drop --target | sed 's/file:\/\///g') . # copy path to clipboard cmd yank-path &printf '%s' "$fx" | wl-copy -cmd open &mimeo $fx +cmd open &xdg-open $fx cmd hard_link %{{ load=$(cat ~/.local/share/lf/files) -- cgit v1.2.3