This commit is contained in:
committer
2024-05-27 19:57:35 -05:00
parent 1a1f080139
commit 366645c6d3

View File

@@ -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 <enter> shell
# --------------------
# map
# --------------------
# show the result of execution of previous commands
map ` !true
# execute current file (must be executable)
map x $$f
map <delete> trash # use '<delete>' key for 'trash'
map <enter> shell # use enter for shell commands
map ` !true # show the result of execution of previous commands
map a :push %mkdir<space> # 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<space>
# define a custom 'rename' command without prompt for overwrite
# cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1
# map r push :rename<space>
@@ -60,9 +65,6 @@ map a :push %mkdir<space>
# $f: single file, $fx: multiple files
cmd trash %trash-put $fx
# use '<delete>' key for 'trash'
map <delete> 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