dotfiles/private_dot_config/lf/lfrc
array-in-a-matrix f7ffa4de41 update
2023-08-10 12:19:23 -04:00

26 lines
701 B
Plaintext

set previewer ~/.config/lf/preview
set cleaner ~/.config/lf/cleaner
set drawbox true
set icons true
cmd z %{{
result="$(zoxide query --exclude $PWD $@)"
lf -remote "send $id cd $result"
}}
cmd git_branch ${{
git branch | fzf | xargs git checkout
pwd_shell=$(pwd)
lf -remote "send $id updir"
lf -remote "send $id cd \"$pwd_shell\""
}}
map gb :git_branch
map gp ${{clear; git pull --rebase || true; echo "press ENTER"; read ENTER}}
map gs ${{clear; git status; echo "press ENTER"; read ENTER}}
map gl ${{clear; git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit}}
cmd trash %trash-put $fx
map D :trash