From a9e4e2b953e103a6733d2a7871dc0343c5fafcbf Mon Sep 17 00:00:00 2001 From: Ryan Wilson Date: Sun, 7 Mar 2021 12:02:37 -0400 Subject: [PATCH] Extract, Set Hidden shortcuts --- .config/lf/lfrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index c5717243..b05d5114 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 push :mkdir map reload +map set hidden! map shell map x $$f map X !$f