organize lfrc.example
This commit is contained in:
parent
ce25fc55ca
commit
2c70ad5fb5
@ -12,18 +12,42 @@
|
|||||||
# (e.g. non-POSIX features provided by your regular shell).
|
# (e.g. non-POSIX features provided by your regular shell).
|
||||||
set shell /bin/sh
|
set shell /bin/sh
|
||||||
|
|
||||||
|
# sets internal field seperator (IFS) to ':'
|
||||||
|
# useful for interactive use to automatically split file names in $fs and $fx
|
||||||
|
# things may behave unexpectedly so use with caution
|
||||||
|
#set ifs ':'
|
||||||
|
|
||||||
# leave some space at the top and the bottom of the screen
|
# leave some space at the top and the bottom of the screen
|
||||||
set scrolloff 10
|
set scrolloff 10
|
||||||
|
|
||||||
|
# easily toggle options
|
||||||
|
map zp set preview!
|
||||||
|
map zh set hidden!
|
||||||
|
|
||||||
|
# easily select what information to show
|
||||||
|
map zn set showinfo none
|
||||||
|
map zs set showinfo size
|
||||||
|
map zt set showinfo time
|
||||||
|
|
||||||
|
# sort files and show the corresponding info
|
||||||
|
map sn :set sortby name; set showinfo none;
|
||||||
|
map ss :set sortby size; set showinfo size;
|
||||||
|
map st :set sortby time; set showinfo time;
|
||||||
|
|
||||||
|
# common directories
|
||||||
|
map gh cd ~
|
||||||
|
map gr cd /
|
||||||
|
|
||||||
|
# use enter for shell commands
|
||||||
|
map <cr> read-shell
|
||||||
|
|
||||||
# mappings for pager and editor (change as you like)
|
# mappings for pager and editor (change as you like)
|
||||||
map i $less "$f"
|
map i $less "$f"
|
||||||
map e $vim "$f"
|
map e $vim "$f"
|
||||||
|
|
||||||
# mapping to spawn a shell in current directory
|
# mapping to spawn a shell in working directory
|
||||||
map S $$SHELL
|
# see also etc/lf.sh as an alternative workflow
|
||||||
|
map w $$SHELL
|
||||||
# use enter for shell commands
|
|
||||||
map <cr> read-shell
|
|
||||||
|
|
||||||
# execute current file (must be executable)
|
# execute current file (must be executable)
|
||||||
map x $"$f"
|
map x $"$f"
|
||||||
@ -31,7 +55,7 @@ map X !"$f"
|
|||||||
|
|
||||||
# dedicated keys for file opener actions
|
# dedicated keys for file opener actions
|
||||||
map o &mimeopen "$f"
|
map o &mimeopen "$f"
|
||||||
map m $mimeopen --ask "$f"
|
map O $mimeopen --ask "$f"
|
||||||
|
|
||||||
# `open-file` is called by `open` when current file is not a directory
|
# `open-file` is called by `open` when current file is not a directory
|
||||||
# you may want to use either file extensions or mime types with `file`
|
# you may want to use either file extensions or mime types with `file`
|
||||||
@ -59,29 +83,6 @@ cmd trash $IFS=':'; mv --backup=numbered $fx $HOME/.trash
|
|||||||
# here be dragons
|
# here be dragons
|
||||||
#map dD trash
|
#map dD trash
|
||||||
|
|
||||||
# common directories
|
|
||||||
map gh cd ~
|
|
||||||
map gr cd /
|
|
||||||
|
|
||||||
# easily toggle options
|
|
||||||
map zp set preview!
|
|
||||||
map zh set hidden!
|
|
||||||
|
|
||||||
# easily select what information to show
|
|
||||||
map zn set showinfo none
|
|
||||||
map zs set showinfo size
|
|
||||||
map zt set showinfo time
|
|
||||||
|
|
||||||
# sort files and show the corresponding info
|
|
||||||
map sn :set sortby name; set showinfo none;
|
|
||||||
map ss :set sortby size; set showinfo size;
|
|
||||||
map st :set sortby time; set showinfo time;
|
|
||||||
|
|
||||||
# sets internal field seperator (IFS) to ':'
|
|
||||||
# useful for interactive use to automatically split file names in $fs and $fx
|
|
||||||
# things may behave unexpectedly so use with caution
|
|
||||||
#set ifs ':'
|
|
||||||
|
|
||||||
# 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 ${{
|
||||||
|
Loading…
Reference in New Issue
Block a user