Add support for displaying lf options in the ruler (#1257)
* Add support for displaying lf options in the ruler * Print escape character as plain text * Document user defined options * Change escape rules * Use reflect instead of environment table * Factor out common option map logic * Improve error message slightly * Display blank option values
This commit is contained in:
1 parent
0ac1491bfb
commit
e08eebb115
6 files changed
+54
-28
No files matched your search
+13
-8
@@ -903,14 +903,19 @@ Reverse the direction of sort.
|
||||
ruler []string (default 'acc:progress:selection:filter:ind')
|
||||
|
||||
List of information shown in status line ruler. Currently supported information
|
||||
types are 'acc', 'progress', 'selection', 'ind' and 'df'. 'acc' shows the
|
||||
pressed keys (e.g. for bindings with multiple key presses or counts given to
|
||||
bindings). 'progress' shows the progress of file operations (e.g. copying a
|
||||
large directory). 'selection' shows the number of files that are selected,
|
||||
or designated for being cut/copied. 'filter' shows 'F' if a filter is currently
|
||||
being applied. 'ind' shows the current position of the cursor as well as the
|
||||
number of files in the current directory. 'df' shows the amount of free disk
|
||||
space remaining.
|
||||
types are 'acc', 'progress', 'selection', 'filter', 'ind', 'df' and names
|
||||
starting with 'lf_'. 'acc' shows the pressed keys (e.g. for bindings with
|
||||
multiple key presses or counts given to bindings). 'progress' shows the progress
|
||||
of file operations (e.g. copying a large directory). 'selection' shows the
|
||||
number of files that are selected, or designated for being cut/copied. 'filter'
|
||||
shows 'F' if a filter is currently being applied. 'ind' shows the current
|
||||
position of the cursor as well as the number of files in the current directory.
|
||||
'df' shows the amount of free disk space remaining. Names starting with 'lf_'
|
||||
show the value of environment variables exported by lf. This is useful for
|
||||
displaying the current settings (e.g. 'lf_selmode' displays the current setting
|
||||
for the 'selmode' option). User defined options starting with 'lf_user_' are
|
||||
also supported, so it is possible to display information set from external
|
||||
sources.
|
||||
|
||||
selmode string (default 'all')
|
||||
|
||||
|
||||
Reference in new issue
Block a user