Kovid Goyal
e3a4150fea
Second draw attempt has single fade edge
2022-07-29 08:15:38 +05:30
Kovid Goyal
0ce2a23af3
Allow tab title templates to use the current max title length
2022-07-29 07:43:55 +05:30
Kovid Goyal
546cdbefae
Don't expose all Tab methods in title template
...
They can have side effects so prevent user from foot shot
2022-07-26 13:13:00 +05:30
Kovid Goyal
352c07987b
Nicer fix for showing cwd in tab titles
2022-07-26 12:35:07 +05:30
Kovid Goyal
f6a1eb19d7
Only import ReferenceType when type checking
2022-07-26 11:06:19 +05:30
Kovid Goyal
c7fa6f620a
py3.8 compat
2022-07-26 08:39:33 +05:30
Kovid Goyal
04690c8c7c
Dont incur the cost of checking the cwd of a process on every tabbar update unless actually needed
2022-07-26 08:19:14 +05:30
noval
237bfc9a6e
add cwd to TabBarData
...
this option add current working directory to the tab by using active windows child directory.
2022-07-26 09:33:55 +07:00
Kovid Goyal
f95bc48f9b
kitty @ set-colors: Fix changing inactive_tab_foreground not working
...
Fixes #5214
2022-06-19 20:20:58 +05:30
Kovid Goyal
34a0218f35
Fix a regression in the previous release that broke active_tab_foreground
...
Fixes #4620
2022-02-03 18:12:42 +05:30
Kovid Goyal
a591304412
...
2022-02-01 13:39:42 +05:30
Kovid Goyal
8fffd6070a
Fix #4605
2022-02-01 12:01:08 +05:30
Kovid Goyal
9c13e8a549
Allow controlling placement of bell and activity symbols in the tab title template
...
Fixes #4581
2022-02-01 08:58:49 +05:30
pagedown
ba0f61d752
Refactor: More f-string for kitty
2022-01-29 20:17:46 +08:00
Kovid Goyal
2538e94390
Use a single SGR regex pattern cache
2022-01-16 09:46:52 +05:30
Kovid Goyal
72745dfb62
Use red fg for activity symbol by default
...
Can be overriden via template, but for backwards compat keep it red
2022-01-14 13:27:35 +05:30
Kovid Goyal
017da1159c
Allow using templates with text formatting for tab_activity_symbol
...
Fixes #4507
2022-01-14 08:18:04 +05:30
Kovid Goyal
81753706d3
oops
2021-12-15 20:30:11 +05:30
Kovid Goyal
4120be3e2d
Allow using "tab" colors in the title template
...
Fixes #4360
2021-12-15 20:09:23 +05:30
Kovid Goyal
c11da595ef
Move calculation of window render data into native code
...
There was no reason to do it in python
2021-12-05 12:21:24 +05:30
Kovid Goyal
2443dc135c
Use a faster implementation of the Color type
...
Now implemented in C
2021-10-28 11:15:13 +05:30
Kovid Goyal
c899eb4ee3
Add more type annotations
2021-10-27 13:44:12 +05:30
Kovid Goyal
4494ddd8ff
mypy: Turn on return value checks
...
Its a shame GvR is married to "return None"
https://github.com/python/mypy/issues/7511
2021-10-26 22:39:14 +05:30
Kovid Goyal
6da79ab614
Reset draw data default bg when background is changed
2021-10-25 12:40:36 +05:30
Kovid Goyal
4385acd3c6
A new option to set the tab bar margin color independently
2021-10-25 12:21:46 +05:30
Kovid Goyal
c0927a3643
Fix rendering of tab bar right margin
2021-10-25 11:39:04 +05:30
Kovid Goyal
1ab8d58bf7
Ensure right margin is drawn
2021-10-25 10:27:47 +05:30
Kovid Goyal
63e23d7fe3
Fix set-colors unable to set tab_bar_background to none
2021-10-25 10:04:25 +05:30
Kovid Goyal
c9faf5dd59
Extra update_blank_colors() call is not needed
2021-10-25 09:02:08 +05:30
Kovid Goyal
baf080f147
Tab bar left margin should be drawn in the same background color as the other margins
2021-10-25 09:00:49 +05:30
Kovid Goyal
6546c1da9b
run pyupgrade to upgrade the codebase to python3.6
2021-10-21 12:43:55 +05:30
Kovid Goyal
67fd07a92a
...
2021-10-14 09:57:35 +05:30
Kovid Goyal
5afb16ab8d
A new remote control command to change tab color
...
Fixes #1287
2021-10-12 12:48:25 +05:30
Kovid Goyal
be439cb887
When a tab_bar_background is specified it should extend to the edges of the OS window
...
Fixes #4054
2021-09-23 20:12:30 +05:30
Kovid Goyal
f6a6ead0f3
Fix active_tab_foreground ignored in slant style
...
Fixes #4053
2021-09-23 14:40:08 +05:30
Kovid Goyal
dfdd1697c5
Make the signatures of drat tab functions extendable with backwards compat
2021-08-18 10:03:50 +05:30
Kovid Goyal
a82bc6738c
A new option to draw the tab bar centered or right
...
Fixes #3946
2021-08-18 07:35:04 +05:30
Kovid Goyal
868626c79c
Allow the user to supply a custom Python function to draw tab bar
2021-08-18 07:15:03 +05:30
Kovid Goyal
ab889e2945
A new "slant" style for the tab bar
2021-08-03 08:45:55 +05:30
Kovid Goyal
4b889750db
Add a new variable `{num_window_groups}` for tab_title_template
...
See #3837
2021-07-16 19:25:24 +05:30
Kovid Goyal
bd67899943
Allow using super and sub scripts in tab titles
...
The syntax is
{sup.whatever}
works by translating enhlish letters/number to their unicode
equivalents.
Fixes #3763
2021-06-25 15:02:43 +05:30
Kovid Goyal
ec31a36fd9
Fix reloading of various settings
2021-06-07 08:27:58 +05:30
Kovid Goyal
7148f262c0
Reload for keys, fonts and colors now working
2021-06-06 14:31:22 +05:30
Kovid Goyal
a670268a6b
Add blank rects for tab bar padding
2021-06-05 09:16:24 +05:30
Kovid Goyal
bfe1952705
Merge branch 'less-contrast-for-powerline-alt-separator' of https://github.com/chipaca/kitty
2021-05-30 07:37:41 +05:30
John R. Lenton
97181a39da
Use less contrasting color for powerline alt separator
...
This change makes it so that when using powerline-style tab bars, and
if the `tab_bar_background`, `inactive_tab_background` and
`inactive_tab_foreground` are all different, the separator between
inactive tabs uses the less contrasting color between the inactive
foreground, and the tab bar background.
This fixes #3664 .
2021-05-29 16:54:51 +01:00
Kovid Goyal
c827a29a7b
Use the new get_options() function
...
Nicer than carrying around opts objects everywhere
2021-05-24 12:29:11 +05:30
Kovid Goyal
355808b0f6
Fix dynamically changing the background color in a window causing rendering artifacts in the tab bar
...
Fixes #3595
2021-05-09 11:54:51 +05:30
Kovid Goyal
162e498347
Fix @ set-colors for active_tab_foreground
2021-04-26 20:18:50 +05:30
Kovid Goyal
863fff8620
Cleanup previous PR
2021-02-24 12:32:26 +05:30