dotfiles/private_dot_config/lf/lfrc

51 lines
1.5 KiB
Text

# interpreter for shell commands
set shell sh
# set '-eu' options for shell commands
# These options are used to have safer shell commands. Option '-e' is used to
# exit on error and option '-u' is used to give error for unset variables.
# Option '-f' disables pathname expansion which can be useful when $f, $fs, and
# $fx variables contain names with '*' or '?' characters. However, this option
# is used selectively within individual commands as it can be limiting at
# times.
set shellopts '-eu'
# set internal field separator (IFS) to "\n" for shell commands
# This is useful to automatically split file names in $fs and $fx properly
# since default file separator used in these variables (i.e. 'filesep' option)
# is newline. You need to consider the values of these options and create your
# commands accordingly.
set ifs "\n"
# leave some space at the top and the bottom of the screen
set scrolloff 10
# Use the `dim` attribute instead of underline for the cursor in the preview pane
set cursorpreviewfmt "\033[7;2m"
# use enter for shell commands
map <enter> shell
# show the result of execution of previous commands
map ` !true
# mkdir command. See wiki if you want it to select created dir
map a :push %mkdir<space>""<c-b>
# use '<delete>' key for 'delete' command
map <delete> delete
set drawbox true
set info size
set dircounts
# preview script from ranger
set previewer ~/.config/lf/scopelf.sh
map i $~/.config/lf/scopelf.sh $f | less -R
# use S for opening a shell
map S $zsh
# clear mark from files after pasting
map p : paste; clear