add user defined options (#865)

This commit is contained in:
Christian Zangl authored and GitHub committed 2022-10-15 15:50:21 +03:00
1 parent 62621736b3
commit a2fed6d16e
6 files changed
+36 -1

No files matched your search

+9
View File
@@ -164,6 +164,7 @@ The following options can be used to customize the behavior of lf:
waitmsg string (default 'Press any key to continue')
wrapscan bool (default on)
wrapscroll bool (default off)
user_{key} string (default none)
The following environment variables are exported for shell commands:
@@ -179,6 +180,7 @@ The following environment variables are exported for shell commands:
PAGER
SHELL
lf_{option}
lf_user_{key}
The following special shell commands are used to customize the behavior of
lf when defined:
@@ -867,6 +869,13 @@ Searching can wrap around the file list.
Scrolling can wrap around the file list.
user_{key} string (default none)
Any option that is prefixed with 'user_' is a user defined option and can be
set to any string. Inside a user defined command the value will be provided
in the 'lf_user_{key}' environment variable. These options are not used by
lf and are not persisted.
Environment Variables