Browse Source

[lf] Add lf as a proper ranger alternative. God I hate rangers config

main
Sebastian Schulze 6 months ago
parent
commit
6ddaf11c89
Failed to generate hash of commit
  1. 0
      dot_config/lf/.keep
  2. 21
      dot_config/lf/lfrc
  3. 4
      dot_zshrc.tmpl

0
dot_config/lf/.keep

21
dot_config/lf/lfrc

@ -0,0 +1,21 @@
set drawbox true
set icons true
set mouse true
map f $vi $(fzf)
set previewer ~/bin/preview
set cleaner /home/bascht/Downloads/lfimg/cleaner
cmd fasd_dir ${{
res="$(fasd -dl | grep -iv cache | fzf 2>/dev/tty | sed 's/\\/\\\\/g;s/"/\\"/g')"
if [ -d "$res" ]; then
cmd="cd"
else
cmd="select"
fi
lf -remote "send $id $cmd \"$res\""
}}
map go :fasd_dir
cmd dragon &dragon $fx
map D :dragon

4
dot_zshrc.tmpl

@ -111,6 +111,10 @@ export FZF_DEFAULT_OPTS='
--color=fg:#696c77,header:#4078f2,info:#c18401,pointer:#0184bc
--color=marker:#0184bc,fg+:#202227,prompt:#c18401,hl+:#4078f2
'
# Pretty icons in lf
export LF_ICONS="tw=:st=:ow=:dt=:di=:fi=:ln=:or=:ex=:*.c=:*.cc=:*.clj=:*.coffee=:*.cpp=:*.css=:*.go=:*.h=:*.hh=:*.hpp=:*.html=:*.js=:*.json=:*.md=:*.php=:*.py=:*.rb=:*.rs=:*.ts=:*.vim=:*.cmd=:*.ps1=:*.sh=:*.bash=:*.zsh=:*.fish=:*.tar=:*.tgz=:*.arc=:*.arj=:*.taz=:*.lha=:*.lz4=:*.lzh=:*.lzma=:*.tlz=:*.txz=:*.tzo=:*.t7z=:*.zip=:*.z=:*.dz=:*.gz=:*.lrz=:*.lz=:*.lzo=:*.xz=:*.zst=:*.tzst=:*.bz2=:*.bz=:*.tbz=:*.tbz2=:*.tz=:*.deb=:*.rpm=:*.jar=:*.war=:*.ear=:*.sar=:*.rar=:*.alz=:*.ace=:*.zoo=:*.cpio=:*.7z=:*.rz=:*.cab=:*.wim=:*.swm=:*.dwm=:*.esd=:*.jpg=:*.jpeg=:*.mjpg=:*.mjpeg=:*.gif=:*.bmp=:*.pbm=:*.pgm=:*.ppm=:*.tga=:*.xbm=:*.xpm=:*.tif=:*.tiff=:*.png=:*.svg=:*.svgz=:*.mng=:*.pcx=:*.mov=:*.mpg=:*.mpeg=:*.m2v=:*.mkv=:*.webm=:*.ogm=:*.mp4=:*.m4v=:*.mp4v=:*.vob=:*.qt=:*.nuv=:*.wmv=:*.asf=:*.rm=:*.rmvb=:*.flc=:*.avi=:*.fli=:*.flv=:*.gl=:*.dl=:*.xcf=:*.xwd=:*.yuv=:*.cgm=:*.emf=:*.ogv=:*.ogx=:*.aac=:*.au=:*.flac=:*.m4a=:*.mid=:*.midi=:*.mka=:*.mp3=:*.mpc=:*.ogg=:*.ra=:*.wav=:*.oga=:*.opus=:*.spx=:*.xspf=:*.pdf=:*.nix=:"
# Via @dohq
# https://gist.github.com/dohq/1dc702cc0b46eb62884515ea52330d60
function fzf-ssh () {

Loading…
Cancel
Save