From d70519627900defb0b5810cb3494fed90ac3db67 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Sun, 18 Jun 2023 18:59:26 +0200 Subject: [PATCH] update lf keybinds --- .config/lf/lfrc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 602a08d..aee144d 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -19,7 +19,7 @@ cmd open ${{ cmd mkdir $mkdir -p "$(echo $* | tr ' ' '\ ')" -cmd edit !{{ +cmd edit ${{ clear if [ -w $f ]; then $EDITOR $f @@ -149,11 +149,10 @@ map x $$f map X !$f map o &mimeopen $f map O $mimeopen -a $f -map A rename # at the very end -map a push A # at the very beginning -map I push A # after extension -map i push A # before extension -map c push A # new rename +map a :rename; cmd-home # rename from beginning +map r :rename; cmd-end # rename from end +map i :rename # before extension +map c push r # new rename map B bulkrename map b dupe map u :clear; unselect