From 7b59554e7c97c6d15b0610fac93c9de80dfdefaa Mon Sep 17 00:00:00 2001 From: _N0x Date: Sat, 20 Jan 2024 11:59:21 +0100 Subject: [PATCH] fixed some lfrc issues with fish-shell --- lf/.config/lf/lfrc | 39 ++------------------------------------- 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/lf/.config/lf/lfrc b/lf/.config/lf/lfrc index cc8f4da..c2f3de8 100644 --- a/lf/.config/lf/lfrc +++ b/lf/.config/lf/lfrc @@ -45,46 +45,11 @@ cmd open ${{ end }} -cmd bulkrename ${{ - set tmpfile_old (mktemp) - set tmpfile_new (mktemp) - - if test -n "$fs" - set fs (basename -a $fs) - else - set fs (ls) - end - - echo "$fs" > "$tmpfile_old" - echo "$fs" > "$tmpfile_new" - $EDITOR "$tmpfile_new" - - if test (wc -l < "$tmpfile_old") -eq (wc -l < "$tmpfile_new") - paste "$tmpfile_old" "$tmpfile_new" | while IFS="$(printf '\t')" read -r src dst - if test "$src" = "$dst" -o -e "$dst" - mv -- "$src" "$dst" - end - end - else - rm -f "$tmpfile_old" "$tmpfile_new" - exit 1 - end - - rm -f "$tmpfile_old" "$tmpfile_new" - lf -remote "send $id unselect" -}} - -cmd move-parent &{{ - - set dironly "setlocal (dirname "$PWD") dironly" - lf -remote "send $id :updir; $dironly true; $argv; $dironly false; open" -}} ### Mappings and stuff ### map C edit-config -map J move-parent down -map K move-parent up +map J :updir; set dironly true; down; set dironly false; open +map K :updir; set dironly true; up; set dironly false; open map o open; map set hidden! -map B bulkrename