blob: b0ca22842b4b48396e57559c700b34ac27605e77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# maybe useful:
# /usr/share/doc/lf/lfrc.example
# `man lf`
# - ENVIRONMENT VARIABLES section
# - PREVIEWING FILES section
# https://github.com/LukeSmithxyz/voidrice/tree/master/.config/lf
set hidden
# not using it because security concerns, see: https://wiki.archlinux.org/title/Lf#Sandboxing_previews
# I moved previewer script to public_archive_codes
# previewer use highlight which can show tab as 4 spaces
#set previewer ~/.config/lf/previewer
#map e $LESSOPEN='| ~/.config/lf/previewer %s' less -+F $f
# change come default keybindings to my like
# see `man lf` PREFIXES section, $ at the beginning indicate it is shell command?
# also see "The following commands/keybindings are provided by default:" section
# I use -F in LESS env, need -+F to reset to default so no quit if one screen
map e $$PAGER -+F "$f"
# or wait for key press use ! prefix
#map e !$PAGER "$f"
map v $$EDITOR "$f"
map i invert
|