summaryrefslogtreecommitdiffstats
path: root/.config/lf/lfrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/lf/lfrc')
-rw-r--r--.config/lf/lfrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
index c571724..b05d511 100644
--- a/.config/lf/lfrc
+++ b/.config/lf/lfrc
@@ -29,6 +29,15 @@ cmd open ${{
cmd mkdir $mkdir -p "$(echo $* | tr ' ' '\ ')"
+cmd extract ${{
+ clear; tput cup $(($(tput lines)/3)); tput bold
+ set -f
+ printf "%s\n\t" "$fx"
+ printf "extract?[y/N]"
+ read ans
+ [ $ans = "y" ] && ext $fx
+}}
+
cmd delete ${{
clear; tput cup $(($(tput lines)/3)); tput bold
set -f
@@ -69,10 +78,12 @@ map J $lf -remote "send $id cd $(cut -d' ' -f2 ${XDG_CONFIG_HOME:-$HOME/.config}
map gh
map g top
map D delete
+map E extract
map C copyto
map M moveto
map <c-n> push :mkdir<space>
map <c-r> reload
+map <c-s> set hidden!
map <enter> shell
map x $$f
map X !$f