From 9ad2be86a9d2d04c61d1cb31d37b18eddcd68fed Mon Sep 17 00:00:00 2001 From: krisdoodle45 <86745210+krisdoodle45@users.noreply.github.com> Date: Wed, 1 Sep 2021 10:44:11 +0200 Subject: [PATCH] Only match "$HOME" instead of "-" This could cause issues with bm-dirs containing a dash in their file name. --- .config/lf/lfrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 870ae324..fb236256 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -75,7 +75,7 @@ cmd bulkrename $vidir # Bindings map $lf -remote "send $id select '$(fzf)'" -map J $lf -remote "send $id cd $(awk '{ gsub(/#.*/, ""); } !/^$/ { print $2 }' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf | sed "s/\${.*-// ; s/}//" | envsubst)" +map J $lf -remote "send $id cd $(awk '{ gsub(/#.*/, ""); } !/^$/ { print $2 }' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf | sed "s/.*\$HOME/\$HOME/ ; s/}//" | envsubst)" map gh map g top map D delete