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 push :mkdir map reload +map set hidden! map shell map x $$f map X !$f