dotfiles/private_dot_config/lf/lfrc
array-in-a-matrix accf0dfb3a updated
2023-03-07 22:24:22 -05:00

27 lines
718 B
Plaintext

set ratios 1:2:3
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