Updated the documentation regarding statusbar.widgets.

This commit is contained in:
Nicholas Schwab 2021-04-08 18:16:04 +02:00
parent 4bdbdea094
commit ad847be3b8
2 changed files with 10 additions and 3 deletions

View File

@ -3970,8 +3970,9 @@ Default: +pass:[always]+
[[statusbar.widgets]]
=== statusbar.widgets
List of widgets displayed in the statusbar.
In addition to the listed values there is also the possibility to add `text:foo` widgets that will display `foo`.
Type: <<types,List of String>>
Type: <<types,List of StatusbarWidget>>
Valid values:
@ -4607,6 +4608,9 @@ When setting from `config.py`, both a string or a `re.compile(...)` object are v
|ShellCommand|A shell command as a list.
See the documentation for `List`.
|StatusbarWidget|A Widget for the status bar.
Allows some predefined widgets and custom text-widgets via text:$CONTENT.
|String|A string value.
See the setting's valid values for more information on allowed values.

View File

@ -1927,10 +1927,13 @@ statusbar.widgets:
- tabs: "Current active tab, e.g. `2`."
- keypress: "Display pressed keys when composing a vi command."
- progress: "Progress bar for the current page loading."
- text: "A text widget. Currently hard coded content."
none_ok: true
default: ['keypress', 'url', 'scroll', 'history', 'tabs', 'progress']
desc: List of widgets displayed in the statusbar.
desc: >-
List of widgets displayed in the statusbar.
In addition to the listed values there is also the possibility
to add `text:foo` widgets that will display `foo`.
## tabs