mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
add cwd to TabBarData
this option add current working directory to the tab by using active windows child directory.
This commit is contained in:
@@ -1164,13 +1164,13 @@ optional symbols for bell and activity. If you wish to include the tab-index as
|
||||
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,
|
||||
use :code:`{sup.index}`. In addition you can use :code:`{layout_name}` for the
|
||||
current layout name, :code:`{num_windows}` for the number of windows in the tab
|
||||
and :code:`{num_window_groups}` for the number of window groups (not counting
|
||||
overlay windows) in the tab. 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 letters of the
|
||||
layout name, upper-cased. If you want to style the text, you can use styling
|
||||
directives, for example:
|
||||
current layout name, :code:`{num_windows}` for the number of windows in the tab,
|
||||
:code:`{num_window_groups}` for the number of window groups (not counting
|
||||
overlay windows) in the tab, and {cwd} for current working directory.
|
||||
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
|
||||
letters of the layout name, upper-cased. If you want to style the text, you can
|
||||
use styling directives, for example:
|
||||
``{fmt.fg.red}red{fmt.fg.tab}normal{fmt.bg._00FF00}greenbg{fmt.bg.tab}``.
|
||||
Similarly, for bold and italic:
|
||||
``{fmt.bold}bold{fmt.nobold}normal{fmt.italic}italic{fmt.noitalic}``.
|
||||
|
||||
Reference in New Issue
Block a user