update doc
This commit is contained in:
parent
673dad9f07
commit
fea4ededb6
2
doc.go
2
doc.go
@ -1103,7 +1103,7 @@ You can use the following example as a starting point:
|
|||||||
elif [ $mode = 'move' ]; then
|
elif [ $mode = 'move' ]; then
|
||||||
mv $list .
|
mv $list .
|
||||||
fi
|
fi
|
||||||
rm ~/.local/share/lf/files
|
rm ~/.local/share/lf/files
|
||||||
lf -remote 'send clear'
|
lf -remote 'send clear'
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
36
docstring.go
36
docstring.go
@ -568,12 +568,12 @@ Show only directories.
|
|||||||
|
|
||||||
dirtyfiles []string (default '!*')
|
dirtyfiles []string (default '!*')
|
||||||
|
|
||||||
List of dirty file glob patterns. These files won't have 'cleaner' called
|
List of dirty file glob patterns. These files won't have 'cleaner' executed
|
||||||
before previewing them. Patterns can be given as relative or
|
before previewing them. Patterns can be given as relative or absolute paths.
|
||||||
absolute paths. Globbing supports the usual special characters, '*' to match
|
Globbing supports the usual special characters, '*' to match any sequence,
|
||||||
any sequence, '?' to match any character, and '[...]' or '[^...] to match
|
'?' to match any character, and '[...]' or '[^...] to match character sets
|
||||||
character sets or ranges. In addition, if a pattern starts with '!', then
|
or ranges. In addition, if a pattern starts with '!', then its matches are
|
||||||
its matches are excluded from dirty files.
|
excluded from dirty files.
|
||||||
|
|
||||||
drawbox bool (default off)
|
drawbox bool (default off)
|
||||||
|
|
||||||
@ -1208,18 +1208,18 @@ This is a special command that is called when it is defined instead of the
|
|||||||
builtin implementation. You can use the following example as a starting
|
builtin implementation. You can use the following example as a starting
|
||||||
point:
|
point:
|
||||||
|
|
||||||
cmd paste %{{
|
cmd paste %{{
|
||||||
load=$(cat ~/.local/share/lf/files)
|
load=$(cat ~/.local/share/lf/files)
|
||||||
mode=$(echo "$load" | sed -n '1p')
|
mode=$(echo "$load" | sed -n '1p')
|
||||||
list=$(echo "$load" | sed '1d')
|
list=$(echo "$load" | sed '1d')
|
||||||
if [ $mode = 'copy' ]; then
|
if [ $mode = 'copy' ]; then
|
||||||
cp -R $list .
|
cp -R $list .
|
||||||
elif [ $mode = 'move' ]; then
|
elif [ $mode = 'move' ]; then
|
||||||
mv $list .
|
mv $list .
|
||||||
fi
|
fi
|
||||||
rm ~/.local/share/lf/files
|
rm ~/.local/share/lf/files
|
||||||
lf -remote 'send clear'
|
lf -remote 'send clear'
|
||||||
}}
|
}}
|
||||||
|
|
||||||
Some useful things to be considered are to use the backup ('--backup')
|
Some useful things to be considered are to use the backup ('--backup')
|
||||||
and/or preserve attributes ('-a') options with 'cp' and 'mv' commands if
|
and/or preserve attributes ('-a') options with 'cp' and 'mv' commands if
|
||||||
|
38
lf.1
38
lf.1
@ -124,6 +124,7 @@ The following options can be used to customize the behavior of lf:
|
|||||||
dircounts bool (default off)
|
dircounts bool (default off)
|
||||||
dirfirst bool (default on)
|
dirfirst bool (default on)
|
||||||
dironly bool (default off)
|
dironly bool (default off)
|
||||||
|
dirtyfiles []string (default '!*')
|
||||||
drawbox bool (default off)
|
drawbox bool (default off)
|
||||||
errorfmt string (default "\e033[7;31;47m%s\e033[0m")
|
errorfmt string (default "\e033[7;31;47m%s\e033[0m")
|
||||||
filesep string (default "\en")
|
filesep string (default "\en")
|
||||||
@ -131,7 +132,6 @@ The following options can be used to customize the behavior of lf:
|
|||||||
globsearch bool (default off)
|
globsearch bool (default off)
|
||||||
hidden bool (default off)
|
hidden bool (default off)
|
||||||
hiddenfiles []string (default '.*')
|
hiddenfiles []string (default '.*')
|
||||||
dirtyfiles []string (default '!*')
|
|
||||||
icons bool (default off)
|
icons bool (default off)
|
||||||
ifs string (default '')
|
ifs string (default '')
|
||||||
ignorecase bool (default on)
|
ignorecase bool (default on)
|
||||||
@ -663,6 +663,12 @@ Show directories first above regular files.
|
|||||||
.PP
|
.PP
|
||||||
Show only directories.
|
Show only directories.
|
||||||
.PP
|
.PP
|
||||||
|
.EX
|
||||||
|
dirtyfiles []string (default '!*')
|
||||||
|
.EE
|
||||||
|
.PP
|
||||||
|
List of dirty file glob patterns. These files won't have 'cleaner' executed before previewing them. Patterns can be given as relative or absolute paths. Globbing supports the usual special characters, '*' to match any sequence, '?' to match any character, and '[...]' or '[^...] to match character sets or ranges. In addition, if a pattern starts with '!', then its matches are excluded from dirty files.
|
||||||
|
.PP
|
||||||
.EX
|
.EX
|
||||||
drawbox bool (default off)
|
drawbox bool (default off)
|
||||||
.EE
|
.EE
|
||||||
@ -705,12 +711,6 @@ Show hidden files. On unix systems, hidden files are determined by the value of
|
|||||||
.PP
|
.PP
|
||||||
List of hidden file glob patterns. Patterns can be given as relative or absolute paths. Globbing supports the usual special characters, '*' to match any sequence, '?' to match any character, and '[...]' or '[^...] to match character sets or ranges. In addition, if a pattern starts with '!', then its matches are excluded from hidden files.
|
List of hidden file glob patterns. Patterns can be given as relative or absolute paths. Globbing supports the usual special characters, '*' to match any sequence, '?' to match any character, and '[...]' or '[^...] to match character sets or ranges. In addition, if a pattern starts with '!', then its matches are excluded from hidden files.
|
||||||
.PP
|
.PP
|
||||||
.EX
|
|
||||||
dirtyfiles []string (default '!*')
|
|
||||||
.EE
|
|
||||||
.PP
|
|
||||||
List of dirty file glob patterns. Those files won't have 'cleaner' executed before previewing them. Patterns can be given as relative or absolute paths. Globbing supports the usual special characters, '*' to match any sequence, '?' to match any character, and '[...]' or '[^...] to match character sets or ranges. In addition, if a pattern starts with '!', then its matches are excluded from dirty files.
|
|
||||||
.PP
|
|
||||||
.EX
|
.EX
|
||||||
icons bool (default off)
|
icons bool (default off)
|
||||||
.EE
|
.EE
|
||||||
@ -1264,18 +1264,18 @@ File operations can be performed on the current selected file or alternatively o
|
|||||||
You can customize copy and move operations by defining a 'paste' command. This is a special command that is called when it is defined instead of the builtin implementation. You can use the following example as a starting point:
|
You can customize copy and move operations by defining a 'paste' command. This is a special command that is called when it is defined instead of the builtin implementation. You can use the following example as a starting point:
|
||||||
.PP
|
.PP
|
||||||
.EX
|
.EX
|
||||||
cmd paste %{{
|
cmd paste %{{
|
||||||
load=$(cat ~/.local/share/lf/files)
|
load=$(cat ~/.local/share/lf/files)
|
||||||
mode=$(echo "$load" | sed -n '1p')
|
mode=$(echo "$load" | sed -n '1p')
|
||||||
list=$(echo "$load" | sed '1d')
|
list=$(echo "$load" | sed '1d')
|
||||||
if [ $mode = 'copy' ]; then
|
if [ $mode = 'copy' ]; then
|
||||||
cp -R $list .
|
cp -R $list .
|
||||||
elif [ $mode = 'move' ]; then
|
elif [ $mode = 'move' ]; then
|
||||||
mv $list .
|
mv $list .
|
||||||
fi
|
fi
|
||||||
rm ~/.local/share/lf/files
|
rm ~/.local/share/lf/files
|
||||||
lf -remote 'send clear'
|
lf -remote 'send clear'
|
||||||
}}
|
}}
|
||||||
.EE
|
.EE
|
||||||
.PP
|
.PP
|
||||||
Some useful things to be considered are to use the backup ('--backup') and/or preserve attributes ('-a') options with 'cp' and 'mv' commands if they support it (i.e. GNU implementation), change the command type to asynchronous, or use 'rsync' command with progress bar option for copying and feed the progress to the client periodically with remote 'echo' calls.
|
Some useful things to be considered are to use the backup ('--backup') and/or preserve attributes ('-a') options with 'cp' and 'mv' commands if they support it (i.e. GNU implementation), change the command type to asynchronous, or use 'rsync' command with progress bar option for copying and feed the progress to the client periodically with remote 'echo' calls.
|
||||||
|
Loading…
Reference in New Issue
Block a user