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