mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-13 12:09:35 +03:00
Allow leading/trailing spaces in tab_activity_symbol
This commit is contained in:
parent
8f214c51c0
commit
e48adf7a07
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user