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
@@ -224,6 +224,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:
|
||||
|
||||
@@ -1090,6 +1091,12 @@ Width/Height of the terminal.
|
||||
|
||||
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