Export mode for use in scripting keybindings (#1594)
* Export mode * Add pipe mode * Add documentation
This commit is contained in:
1 parent
ab54329570
commit
cf996263bb
5 files changed
+64
-1
No files matched your search
@@ -214,6 +214,7 @@ The following environment variables are exported for shell commands:
|
||||
lf_width
|
||||
lf_height
|
||||
lf_count
|
||||
lf_mode
|
||||
|
||||
The following special shell commands are used to customize the behavior
|
||||
of lf when defined:
|
||||
@@ -1201,6 +1202,13 @@ lf_count
|
||||
|
||||
Value of the count associated with the current command.
|
||||
|
||||
lf_mode
|
||||
|
||||
Current mode that lf is operating in. This is useful for customizing
|
||||
keybindings depending on what the current mode is. Possible values are
|
||||
delete, rename, filter, find, mark, search, command, shell, pipe (when
|
||||
running a shell-pipe command), normal, and unknown.
|
||||
|
||||
SPECIAL COMMANDS
|
||||
|
||||
This section shows information about special shell commands.
|
||||
|
||||
Reference in new issue
Block a user