Kovid Goyal
c274d28ed1
Fix #8991
2025-09-20 09:55:16 +05:30
Kovid Goyal
e7514c68ae
Fix updating panel configuration on visibility toggle and via remote control not working
...
Fixes #8984
2025-09-20 05:15:50 +05:30
Kovid Goyal
aa89e696ae
Make CodeQL happy
2025-09-14 20:24:03 +05:30
Kovid Goyal
68eee50aee
Make scrollbar wider when mouse hovers over it
2025-09-14 19:20:10 +05:30
Kovid Goyal
e397239076
Change mouse cursor shape while dragging scrollbar
2025-09-14 19:13:12 +05:30
Kovid Goyal
80260e6eb1
Move back to individual settings for scrollbar
...
We need to split out the color settings so that they can be set in
themes anyway, so ...
2025-09-14 17:48:59 +05:30
Kovid Goyal
6caa550efd
DRYer
2025-09-14 14:56:02 +05:30
Kovid Goyal
939e8e2047
Finish documenting the scrollbar settings
2025-09-14 14:40:14 +05:30
Kovid Goyal
efccfd51b3
Refactor scrollbar mouse handlers into a block
2025-09-14 13:26:04 +05:30
Kovid Goyal
4e560fb432
Fix dragging onto last cell not working because of scrollbar
2025-09-14 13:19:10 +05:30
Kovid Goyal
a78fb1a655
Increase default radius slightly
2025-09-14 13:11:09 +05:30
Kovid Goyal
03537ee902
Use the new scrollbar settings
2025-09-14 13:02:40 +05:30
Kovid Goyal
1e13050fda
Nicer debug output for scrollbar option
2025-09-14 12:26:25 +05:30
Kovid Goyal
77e22523ec
Start work on consolidating scrollbar settings into one option
2025-09-14 12:14:27 +05:30
Kovid Goyal
a6e64845ef
Merge branch 'master' of https://github.com/lxe/kitty into scrollbar
2025-09-14 09:48:08 +05:30
Kovid Goyal
fe22312602
Make mypy happy
2025-09-13 07:21:31 +05:30
Aleksey Smolenchuk
65a4d89282
Interactive scrollbar implementation
2025-09-08 11:33:15 -07:00
Alexis (Poliorcetics) Bourget
4cccf929eb
fix: when parsing python_strings options, don't fail if ' is last
...
Previously, if the last character was `'` parsing would fail: from `abc'`
it would produce the literal `'''abc''''`, which has one too many
unescaped single quote at the end.
This also fixes the issue for solo `'''`, where before it would produce
`''''\\'''''`, again with one too many single quote at the end.
I added tests for both cases.
2025-09-06 20:33:15 +02:00
Kovid Goyal
b7c4f42e96
Move preservation of OpenGL context into glfw
...
Allows us to avoid creating an extra hidden window.
2025-09-05 15:29:06 +05:30
Kovid Goyal
b241811a74
Make the Apple context preserving window 1x1
2025-09-05 14:42:01 +05:30
Kovid Goyal
ce4c511fdc
Use a 16bit per channel texture for intermediate output rather than 8bit per channel
...
This doubles VRAM consumption, but is needed for accurate color
blending of the intermediate layers. 16bits is mostly enough, though for
perfect accuracy 32 bits is required. Use 16 as a compromise.
Fixes #8953
2025-09-05 08:47:53 +05:30
Kovid Goyal
574386f45b
Fix rendering of underlines when using larger text sizes with the space and en-space characters
...
Fixes #8950
2025-09-04 20:44:35 +05:30
Kovid Goyal
315562d73d
Cleanup previous PR
2025-09-03 21:46:47 +05:30
Tim Culverhouse
0760733bd1
options: add copy_or_noop, make default
...
Add a "copy_or_noop" option which copies the text, and if there is no
selected text passes through the key. This allows applications to
implement native text selection but also have cmd+c still function as a
copy key since they can now receive it.
Make this the default on macos. This should have very little impact on
users because when no text is selected, the application can
(potentially) handle the key.
2025-09-03 11:01:57 -05:00
Kovid Goyal
e1d8565fb6
Add os_window_title to sessions
2025-09-01 19:30:50 +05:30
Kovid Goyal
ab4e86dfec
Avoid a copy when custom function is not used
2025-08-30 09:03:34 +05:30
Kovid Goyal
1544830307
Allow using a custom python function in tab_title_template
...
Makes it easier to do complex processing
2025-08-30 09:02:39 +05:30
Kovid Goyal
720319ec8c
Document the _with_cwd actions as adding to active session
2025-08-27 06:03:08 +05:30
Kovid Goyal
44b5d8f656
Dont use negative numbers in multi cursor protocol
...
There are apparently many parsers out there that cant handle them.
2025-08-26 21:43:37 +05:30
Kovid Goyal
e76f4c630f
Implement displaying of extra cursor color
2025-08-26 21:27:13 +05:30
Kovid Goyal
6c44eadf77
Directly operate on vec3 for linear2srgb
2025-08-26 19:14:06 +05:30
Kovid Goyal
0307ae061e
step one to calculating extra cursor colors
2025-08-26 18:56:31 +05:30
Kovid Goyal
6d9dcc3171
Pass extra cursor colors to shader
2025-08-26 18:56:31 +05:30
Kovid Goyal
b38be3005c
Add dynamic color enum defines to shader
2025-08-26 18:56:31 +05:30
Kovid Goyal
c18018cbad
Use DynamicColor to store extra cursor colors
2025-08-26 18:56:31 +05:30
Kovid Goyal
5bb842c34c
DRYer
2025-08-26 18:56:31 +05:30
Kovid Goyal
77d9647e03
More descriptive name
2025-08-26 18:56:31 +05:30
Kovid Goyal
f8dac2c136
Write foreground output only at end of shader
2025-08-26 18:56:31 +05:30
Kovid Goyal
da641982e2
Start work on specifying a color for extra cursors
2025-08-26 18:56:31 +05:30
Julian Prein
3e26d90648
Make detached-log line buffered
...
After redirecting stdout and stderr to the log file, they become block
buffered. This results in a (temporarily) incomplete log and becomes
particularly annoying when kitty crashes/hangs and has to be killed, as
the error messages are not flushed then and thus lost.
2025-08-26 15:08:52 +02:00
Kovid Goyal
518e06cfa4
Also report -2 in query response
2025-08-25 15:30:36 +05:30
Kovid Goyal
14741b1b29
Implement rendering of blinking text
...
Fixes #8551
2025-08-25 13:55:23 +05:30
Kovid Goyal
24049a1a5a
Implement round tripping of SGR blink (5/25)
2025-08-25 12:34:38 +05:30
Kovid Goyal
67763029fc
Store SGR attributes in a sub struct of Cursor
...
Makes various operations like clearing text attributes, copying text
attributes etc. faster and less code.
2025-08-25 11:12:35 +05:30
Kovid Goyal
d74fd5c94a
Validate rect co-ords
2025-08-25 10:29:37 +05:30
Kovid Goyal
574e5ab1d5
Make CodeQL happy
2025-08-25 10:26:41 +05:30
Kovid Goyal
0772a01779
More docs for extra cursors
2025-08-24 21:11:25 +05:30
Kovid Goyal
1c9a2dae86
Start work on documenting the multi cursor protocol
2025-08-24 20:14:15 +05:30
Kovid Goyal
c393c1679e
Implement rendering of multi cursors in the shaders
2025-08-24 20:14:15 +05:30
Kovid Goyal
b2f543f9bd
Refactor cell shader to take cursor shape as input
...
Less code for one const array lookup per vertex. And will
allow implementation of multiple cursors more easily.
2025-08-24 20:14:15 +05:30