use spaces for indentation in documentation
This commit is contained in:
parent
20f38b96f1
commit
0969514f10
21
doc.go
21
doc.go
@ -48,12 +48,12 @@ The following commands are provided by lf without default keybindings:
|
||||
|
||||
The following options can be used to customize the behavior of lf:
|
||||
|
||||
dirfirst bool (default on)
|
||||
hidden bool (default off)
|
||||
preview bool (default on)
|
||||
reverse bool (default off)
|
||||
scrolloff int (default 0)
|
||||
tabstop int (default 8)
|
||||
dirfirst boolean (default on)
|
||||
hidden boolean (default off)
|
||||
preview boolean (default on)
|
||||
reverse boolean (default off)
|
||||
scrolloff integer (default 0)
|
||||
tabstop integer (default 8)
|
||||
filesep string (default ":")
|
||||
ifs string (default "") (not exported if empty)
|
||||
previewer string (default "") (not filtered if empty)
|
||||
@ -115,6 +115,7 @@ There are three special commands for configuration.
|
||||
set hidden! # boolean toggle
|
||||
set scrolloff 10 # integer value
|
||||
set sortby time # string value w/o quotes
|
||||
set sortby 'time' # string value with quotes
|
||||
|
||||
"map" is used to bind a key to a command which could be built-in command,
|
||||
custom command, or shell command:
|
||||
@ -339,8 +340,12 @@ You may want to use either file extensions or mime types from "file" command:
|
||||
|
||||
cmd open-file ${{
|
||||
case $(file --mime-type "$f" -b) in
|
||||
text/*) IFS=':'; vim $fx;;
|
||||
*) IFS=':'; for f in $fx; do xdg-open "$f" > /dev/null 2> /dev/null & done;;
|
||||
text/*)
|
||||
IFS=':'; vim $fx;;
|
||||
*)
|
||||
IFS=':'; for f in $fx; do
|
||||
xdg-open "$f" > /dev/null 2> /dev/null &
|
||||
done;;
|
||||
esac
|
||||
}}
|
||||
|
||||
|
21
docstring.go
21
docstring.go
@ -52,12 +52,12 @@ The following commands are provided by lf without default keybindings:
|
||||
|
||||
The following options can be used to customize the behavior of lf:
|
||||
|
||||
dirfirst bool (default on)
|
||||
hidden bool (default off)
|
||||
preview bool (default on)
|
||||
reverse bool (default off)
|
||||
scrolloff int (default 0)
|
||||
tabstop int (default 8)
|
||||
dirfirst boolean (default on)
|
||||
hidden boolean (default off)
|
||||
preview boolean (default on)
|
||||
reverse boolean (default off)
|
||||
scrolloff integer (default 0)
|
||||
tabstop integer (default 8)
|
||||
filesep string (default ":")
|
||||
ifs string (default "") (not exported if empty)
|
||||
previewer string (default "") (not filtered if empty)
|
||||
@ -122,6 +122,7 @@ There are three special commands for configuration.
|
||||
set hidden! # boolean toggle
|
||||
set scrolloff 10 # integer value
|
||||
set sortby time # string value w/o quotes
|
||||
set sortby 'time' # string value with quotes
|
||||
|
||||
"map" is used to bind a key to a command which could be built-in command,
|
||||
custom command, or shell command:
|
||||
@ -356,8 +357,12 @@ command:
|
||||
|
||||
cmd open-file ${{
|
||||
case $(file --mime-type "$f" -b) in
|
||||
text/*) IFS=':'; vim $fx;;
|
||||
*) IFS=':'; for f in $fx; do xdg-open "$f" > /dev/null 2> /dev/null & done;;
|
||||
text/*)
|
||||
IFS=':'; vim $fx;;
|
||||
*)
|
||||
IFS=':'; for f in $fx; do
|
||||
xdg-open "$f" > /dev/null 2> /dev/null &
|
||||
done;;
|
||||
esac
|
||||
}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user