diff --git a/dots/lf/lfrc b/dots/lf/lfrc index 38d06a2..74ae46b 100644 --- a/dots/lf/lfrc +++ b/dots/lf/lfrc @@ -1,5 +1,9 @@ # klevstul +# -------------------- +# set +# -------------------- + # set '-eu' options for shell commands # These options are used to have safer shell commands. Option '-e' is used to # exit on error and option '-u' is used to give error for unset variables. @@ -22,19 +26,23 @@ set scrolloff 10 # Use the `dim` attribute instead of underline for the cursor in the preview pane set cursorpreviewfmt "\033[7;2m" -# use enter for shell commands -map shell +# -------------------- +# map +# -------------------- -# show the result of execution of previous commands -map ` !true - -# execute current file (must be executable) -map x $$f +map trash # use '' key for 'trash' +map shell # use enter for shell commands +map ` !true # show the result of execution of previous commands +map a :push %mkdir # mkdir command. See wiki if you want it to select created dir +map b dragon +map o &mimeopen $f # dedicated keys for file opener actions +map O $mimeopen --ask $f +map x $$f # execute current file (must be executable) map X !$f -# dedicated keys for file opener actions -map o &mimeopen $f -map O $mimeopen --ask $f +# -------------------- +# cmd +# -------------------- # define a custom 'open' command # This command is called when current file is not a directory. You may want to @@ -47,9 +55,6 @@ cmd open &{{ esac }} -# mkdir command. See wiki if you want it to select created dir -map a :push %mkdir - # define a custom 'rename' command without prompt for overwrite # cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1 # map r push :rename @@ -60,9 +65,6 @@ map a :push %mkdir # $f: single file, $fx: multiple files cmd trash %trash-put $fx -# use '' key for 'trash' -map trash - # extract the current file with the right command # (xkcd link: https://xkcd.com/1168/) cmd extract ''${{ @@ -107,8 +109,6 @@ cmd dragon %dragon-drop --all --and-exit "$fx" cmd dragon-stay %dragon-drop --all "$fx" cmd dragon-individual %dragon-drop "$fx" -map b dragon - # change dir cmd cda :cd /home/poq/syncDir/antijantepodden cmd cdd :cd /home/poq/syncDir/0_downloads