rice

personal dot files and scripts for linux and macOS
Log | Files | Refs | README | LICENSE

lfrc (494B)


      1 set nodrawbox
      2 set shellopts '-eu'
      3 set ifs "\n"
      4 set scrolloff 10
      5 set period 1
      6 set nohidden
      7 set cleaner '~/.config/lf/cleaner'
      8 set previewer '~/.config/lf/scope'
      9 
     10 cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1
     11 
     12 cmd delete ${{
     13         clear
     14 	set -f
     15 	printf "%s\n\t" "$fx"
     16 	printf "delete?[y/N]"
     17 	read ans
     18 	[ $ans = "y" ] && rm -rf $fx
     19 }}
     20 
     21 cmd openshell ${{
     22 	set -f
     23 	zsh
     24 }}
     25 
     26 map D delete
     27 map r push :rename<space>
     28 map <c-r> reload
     29 map <c-s> set hidden!
     30 map <enter> shell
     31 map S openshell