update doc

cc #614 #770
This commit is contained in:
Gokcehan 2022-03-18 23:21:51 +03:00
parent 12f0f0da68
commit 076ab8ea9d
3 changed files with 173 additions and 0 deletions

52
doc.go
View File

@ -164,6 +164,16 @@ The following environment variables are exported for shell commands:
SHELL
lf_{option}
The following special shell commands are used to customize the behavior of lf when defined:
open
paste
rename
delete
pre-cd
on-cd
on-quit
The following commands/keybindings are provided by default:
unix windows
@ -826,6 +836,48 @@ If this variable is set in the environment, use the same value, otherwise set th
Value of the {option}.
Special Commands
open
This shell command can be defined to override the default 'open' command when the current file is not a directory.
(See also 'OPENER' variable and 'Opening Files' section)
paste
This shell command can be defined to override the default 'paste' command.
(See also 'File Operations' section)
rename
This shell command can be defined to override the default 'paste' command.
(See also 'File Operations' section)
delete
This shell command can be defined to override the default 'delete' command.
(See also 'File Operations' section)
pre-cd
This shell command can be defined to be executed before changing a directory.
(See also 'Changing Directory' section)
on-cd
This shell command can be defined to be executed after changing a directory.
(See also 'Changing Directory' section)
on-quit
This shell command can be defined to be executed before quit.
Prefixes
The following command prefixes are used by lf:

View File

@ -168,6 +168,17 @@ The following environment variables are exported for shell commands:
SHELL
lf_{option}
The following special shell commands are used to customize the behavior of
lf when defined:
open
paste
rename
delete
pre-cd
on-cd
on-quit
The following commands/keybindings are provided by default:
unix windows
@ -893,6 +904,50 @@ set the value to 'sh' on unix, 'cmd' in Windows.
Value of the {option}.
Special Commands
open
This shell command can be defined to override the default 'open' command
when the current file is not a directory.
(See also 'OPENER' variable and 'Opening Files' section)
paste
This shell command can be defined to override the default 'paste' command.
(See also 'File Operations' section)
rename
This shell command can be defined to override the default 'paste' command.
(See also 'File Operations' section)
delete
This shell command can be defined to override the default 'delete' command.
(See also 'File Operations' section)
pre-cd
This shell command can be defined to be executed before changing a
directory.
(See also 'Changing Directory' section)
on-cd
This shell command can be defined to be executed after changing a directory.
(See also 'Changing Directory' section)
on-quit
This shell command can be defined to be executed before quit.
Prefixes

66
lf.1
View File

@ -187,6 +187,18 @@ The following environment variables are exported for shell commands:
lf_{option}
.EE
.PP
The following special shell commands are used to customize the behavior of lf when defined:
.PP
.EX
open
paste
rename
delete
pre-cd
on-cd
on-quit
.EE
.PP
The following commands/keybindings are provided by default:
.PP
.EX
@ -1017,6 +1029,60 @@ If this variable is set in the environment, use the same value, otherwise set th
.EE
.PP
Value of the {option}.
.SH SPECIAL COMMANDS
.PP
.EX
open
.EE
This shell command can be defined to override the default 'open' command when the current file is not a directory.
.PP
(See also 'OPENER' variable and 'Opening Files' section)
.PP
.EX
paste
.EE
.PP
This shell command can be defined to override the default 'paste' command.
.PP
(See also 'File Operations' section)
.PP
.EX
rename
.EE
.PP
This shell command can be defined to override the default 'paste' command.
.PP
(See also 'File Operations' section)
.PP
.EX
delete
.EE
.PP
This shell command can be defined to override the default 'delete' command.
.PP
(See also 'File Operations' section)
.PP
.EX
pre-cd
.EE
.PP
This shell command can be defined to be executed before changing a directory.
.PP
(See also 'Changing Directory' section)
.PP
.EX
on-cd
.EE
.PP
This shell command can be defined to be executed after changing a directory.
.PP
(See also 'Changing Directory' section)
.PP
.EX
on-quit
.EE
.PP
This shell command can be defined to be executed before quit.
.SH PREFIXES
The following command prefixes are used by lf:
.PP