use spaces for indentation in documentation

This commit is contained in:
Gokcehan 2017-03-10 16:15:16 +03:00
parent 20f38b96f1
commit 0969514f10
2 changed files with 194 additions and 184 deletions

21
doc.go
View File

@ -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: The following options can be used to customize the behavior of lf:
dirfirst bool (default on) dirfirst boolean (default on)
hidden bool (default off) hidden boolean (default off)
preview bool (default on) preview boolean (default on)
reverse bool (default off) reverse boolean (default off)
scrolloff int (default 0) scrolloff integer (default 0)
tabstop int (default 8) tabstop integer (default 8)
filesep string (default ":") filesep string (default ":")
ifs string (default "") (not exported if empty) ifs string (default "") (not exported if empty)
previewer string (default "") (not filtered 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 hidden! # boolean toggle
set scrolloff 10 # integer value set scrolloff 10 # integer value
set sortby time # string value w/o quotes 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, "map" is used to bind a key to a command which could be built-in command,
custom command, or shell 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 ${{ cmd open-file ${{
case $(file --mime-type "$f" -b) in case $(file --mime-type "$f" -b) in
text/*) IFS=':'; vim $fx;; text/*)
*) IFS=':'; for f in $fx; do xdg-open "$f" > /dev/null 2> /dev/null & done;; IFS=':'; vim $fx;;
*)
IFS=':'; for f in $fx; do
xdg-open "$f" > /dev/null 2> /dev/null &
done;;
esac esac
}} }}

View File

@ -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: The following options can be used to customize the behavior of lf:
dirfirst bool (default on) dirfirst boolean (default on)
hidden bool (default off) hidden boolean (default off)
preview bool (default on) preview boolean (default on)
reverse bool (default off) reverse boolean (default off)
scrolloff int (default 0) scrolloff integer (default 0)
tabstop int (default 8) tabstop integer (default 8)
filesep string (default ":") filesep string (default ":")
ifs string (default "") (not exported if empty) ifs string (default "") (not exported if empty)
previewer string (default "") (not filtered 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 hidden! # boolean toggle
set scrolloff 10 # integer value set scrolloff 10 # integer value
set sortby time # string value w/o quotes 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, "map" is used to bind a key to a command which could be built-in command,
custom command, or shell command: custom command, or shell command:
@ -356,8 +357,12 @@ command:
cmd open-file ${{ cmd open-file ${{
case $(file --mime-type "$f" -b) in case $(file --mime-type "$f" -b) in
text/*) IFS=':'; vim $fx;; text/*)
*) IFS=':'; for f in $fx; do xdg-open "$f" > /dev/null 2> /dev/null & done;; IFS=':'; vim $fx;;
*)
IFS=':'; for f in $fx; do
xdg-open "$f" > /dev/null 2> /dev/null &
done;;
esac esac
}} }}