mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Allow leading/trailing spaces in tab_activity_symbol
This commit is contained in:
@@ -58,6 +58,8 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
|
||||
is meant to match over line breaks, you will need to match over both.
|
||||
(:iss:`3845`)
|
||||
|
||||
- Allow leading or trailing spaces in :opt:`tab_activity_symbol`
|
||||
|
||||
|
||||
0.21.2 [2021-06-28]
|
||||
----------------------
|
||||
|
||||
@@ -932,7 +932,8 @@ opt('tab_activity_symbol', 'none',
|
||||
option_type='tab_activity_symbol',
|
||||
long_text='''
|
||||
Some text or a unicode symbol to show on the tab if a window in the tab that
|
||||
does not have focus has some activity.
|
||||
does not have focus has some activity. If you want to use leading or trailing spaces
|
||||
surround the text with quotes.
|
||||
'''
|
||||
)
|
||||
|
||||
|
||||
@@ -614,7 +614,7 @@ def tab_fade(x: str) -> Tuple[float, ...]:
|
||||
def tab_activity_symbol(x: str) -> Optional[str]:
|
||||
if x == 'none':
|
||||
return None
|
||||
return x or None
|
||||
return tab_title_template(x) or None
|
||||
|
||||
|
||||
def tab_title_template(x: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user