dotfiles/.config/lf/lfrc
2021-08-28 20:15:49 +03:00

27 lines
626 B
Plaintext

set previewer ~/.config/lf/pv.sh
map i $~/.config/lf/pv.sh $f | less -R
# Trash
cmd trash %trash-put "$fx"
# Search with fzf
map f $vi $(fzf)
# Recreate open-with with lf
cmd open-with %"$@" "$fx"
map ` push :open-with<space>
# Show current directory in window title
cmd on-cd &{{
# '&' commands run silently in background (which is what we want here),
# but are not connected to stdout.
# To make sure our escape sequence still reaches stdout we pipe it to /dev/tty
printf "\033]0; $PWD\007" > /dev/tty
}}
map r reload
# Drag and drop
map <c-d> %dragon --all --and-exit "$fx"
map <c-c> &wl-copy < "$fx"