List the available data names for tab_title_template in commented conf

List syntax starting with * becomes a block of text in the commented
configuration file.
This commit is contained in:
pagedown 2022-08-18 17:05:24 +08:00
parent 0f4cb1955f
commit 4476251b76
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB

View File

@ -1165,13 +1165,21 @@ well, use something like: :code:`{index}:{title}`. Useful if you have shortcuts
mapped for :code:`goto_tab N`. If you prefer to see the index as a superscript, mapped for :code:`goto_tab N`. If you prefer to see the index as a superscript,
use :code:`{sup.index}`. All data available is: use :code:`{sup.index}`. All data available is:
* :code:`title` - the current tab title :code:`title`
* :code:`index` - the tab index useable with :code:`goto_tab N` shortcuts The current tab title.
* :code:`layout_name` - the current layout name :code:`index`
* :code:`num_windows` - the number of windows in the tab The tab index useable with :ac:`goto_tab N <goto_tab>` shortcuts.
* :code:`num_window_groups` - the number of window groups (not counting overlay windows) in the tab :code:`layout_name`
* :code:`tab.active_wd` - the working directory of the currently active window in the tab (expensive, requires syscall) The current layout name.
* :code:`max_title_length` - the maximum title length available :code:`num_windows`
The number of windows in the tab.
:code:`num_window_groups`
The number of window groups (not counting overlay windows) in the tab.
:code:`tab.active_wd`
The working directory of the currently active window in the tab (expensive,
requires syscall).
:code:`max_title_length`
The maximum title length available.
Note that formatting is done by Python's string formatting machinery, so you can Note that formatting is done by Python's string formatting machinery, so you can
use, for instance, :code:`{layout_name[:2].upper()}` to show only the first two use, for instance, :code:`{layout_name[:2].upper()}` to show only the first two