dotfiles/private_dot_config/lf/lfrc

26 lines
685 B
Plaintext
Raw Permalink Normal View History

2023-09-27 00:12:16 -04:00
set ratios 1:2:3
2022-01-08 17:30:13 -05:00
set previewer ~/.config/lf/preview
set drawbox true
set icons true
2023-03-07 22:24:22 -05:00
cmd z %{{
result="$(zoxide query --exclude $PWD $@)"
lf -remote "send $id cd $result"
}}
2022-01-08 17:30:13 -05:00
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}}
2023-03-07 22:24:22 -05:00
cmd trash %trash-put $fx
map D :trash