Commit graph

18860 commits

Author SHA1 Message Date
MiguelRegueiro
f7280f458c Add elio to graphics and DnD support lists 2026-08-05 20:12:23 +02:00
MiguelRegueiro
b6a9f7e9b4 Add elio to integrations 2026-08-05 19:39:10 +02:00
Kovid Goyal
cb4cefee5a
misc layout code robustness fixes 2026-08-05 21:04:30 +05:30
Kovid Goyal
3d02563153
Update changelog 2026-08-05 20:35:57 +05:30
Kovid Goyal
3cb7bfe594
Merge branch 'fix-session-inactive-layout-state' of https://github.com/chancez/kitty 2026-08-05 20:32:37 +05:30
Chance Zibolski
1b81045008 Save the layout state of every layout a tab has used to sessions
save_as_session recorded only the state of the tab's active layout, so the state
of any layout the tab had been toggled away from was lost. Toggling a splits tab
to the stack layout and saving discarded the splits tree entirely, because Stack
has no layout_state() of its own, and switching back to splits after restoring
rebuilt the tree from scratch along the default axis.

The session file also carried no last_used_layout, so _last_used_layout was None
after a restore and toggle_layout <current layout> silently did nothing, since it
delegates to last_used_layout() which returns early when unset. The key that
produced the stack layout no longer undid it.

Tab now keeps the layouts it has used, by name, and writes their state plus
last_used_layout into the existing set_layout_state JSON rather than adding new
session commands. Older versions of kitty ignore unknown keys in that dict but
abort on unknown commands, so nesting keeps session files readable by them.

Restoring the state of a layout that is not being made current must not reorder
the window list, since only the current layout determines window order, hence
apply_to_window_list. Splits.set_layout_state also has to accept state for a
layout whose tree is still empty, which is the case for a layout that has not
laid out any windows yet.

Fixes #10320
2026-08-05 07:53:47 -07:00
Kovid Goyal
51b0993b5c
Try newer clang-format installed via pip 2026-08-05 20:15:07 +05:30
Kovid Goyal
0268bc3bce
Use newer ubuntu version in CI for newer clang-format 2026-08-05 20:07:55 +05:30
Kovid Goyal
28467b4000
... 2026-08-05 20:01:16 +05:30
Kovid Goyal
96a9fce149
Enforce formatting of C code in CI 2026-08-05 19:53:04 +05:30
Kovid Goyal
2af2d313de
autoformat c/objc code, using clang-format with left alignment for line continuation chars 2026-08-05 19:37:00 +05:30
Kovid Goyal
ffd09aad91
More C autoformat 2026-08-05 19:29:02 +05:30
Kovid Goyal
bcf5ffe73f
Ensforce Python formatting in CI 2026-08-05 19:25:27 +05:30
Kovid Goyal
f8829f44b7
... 2026-08-05 19:18:47 +05:30
Kovid Goyal
4c6467814b
autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
Kovid Goyal
f2c367301b
Ignore some more generated files 2026-08-05 19:03:39 +05:30
Kovid Goyal
0eeae156d4
Specify line length for clang format 2026-08-05 18:50:14 +05:30
Kovid Goyal
d399502eba
Proper inheritance of rules of objc 2026-08-05 17:19:52 +05:30
Kovid Goyal
a020bd0342
Force top level function definitions to have return type on separate line 2026-08-05 17:08:29 +05:30
Kovid Goyal
d057f5d77b
Dont autoformat generated .h files 2026-08-05 16:50:53 +05:30
Kovid Goyal
e27f3cd193
Allow formatting objc files via clang-format 2026-08-05 16:45:56 +05:30
Kovid Goyal
dc677d27c8
clang-format: Leave go:build pargma alone 2026-08-05 16:38:25 +05:30
Kovid Goyal
95c0a1c4e9
Allow more single line short blocks in .clang-format 2026-08-05 16:29:34 +05:30
Kovid Goyal
3642dd8191
Add bloom custom shader 2026-08-05 14:55:25 +05:30
Kovid Goyal
41fc5cb97a
Update changelog 2026-08-05 13:37:48 +05:30
Kovid Goyal
e99f6044c5
Remove NUL from paths received via OSC7
NUL is anyway not legal in paths and it causes session files saved with
such paths to fail

We dont remove other control codes since they are actually legal in
paths.

Fixes #10321
2026-08-05 13:36:18 +05:30
Kovid Goyal
d01db1f6c7
Add TFT custom shader
Some checks failed
CI / Linux (python=3.14 cc=clang sanitize=1) (push) Has been cancelled
CI / Linux (python=3.12 cc=gcc sanitize=0) (push) Has been cancelled
CI / Linux (python=3.13 cc=gcc sanitize=1) (push) Has been cancelled
CI / Linux package (push) Has been cancelled
CI / Bundle test (macos-latest) (push) Has been cancelled
CI / Bundle test (ubuntu-latest) (push) Has been cancelled
CI / macOS Brew (push) Has been cancelled
CI / Test ./dev.sh and benchmark (push) Has been cancelled
2026-08-05 09:17:11 +05:30
Kovid Goyal
ef8f129783
Use UV coords for viewport definition
Composes better with standard GL conventions
2026-08-05 08:52:37 +05:30
Kovid Goyal
0272238271
Use MD5 for keying 2026-08-05 08:20:40 +05:30
Kovid Goyal
ed025b37af
fix specialisation not working 2026-08-05 08:17:05 +05:30
Kovid Goyal
d6712dc695
... 2026-08-05 08:05:40 +05:30
Kovid Goyal
5c5a4c9d1d
Allow specialisation with vector variables 2026-08-05 07:55:49 +05:30
Kovid Goyal
52d649ad18
If pipeline is specified without any groups create a default group consisting of a single shader using the pipeline name 2026-08-05 07:43:54 +05:30
Kovid Goyal
c0c41fe4f4
Add optional tint to CRT shader 2026-08-05 07:37:48 +05:30
Kovid Goyal
11abd945a8
add a clang format style that minimises changes from existing style 2026-08-05 07:18:34 +05:30
Kovid Goyal
dd2c59d255
autoformat 2026-08-05 07:16:05 +05:30
Kovid Goyal
7d6d064ea2
load shaders from parent dir of pipeline first 2026-08-05 07:09:18 +05:30
Kovid Goyal
d2cab32fe1
CRT effect custom shader 2026-08-05 06:54:32 +05:30
Kovid Goyal
4aa5579c3c
Document parameters passed to fragment_main 2026-08-05 06:09:19 +05:30
Kovid Goyal
be3dfde173
Add a frame counter uniform 2026-08-05 06:04:04 +05:30
Kovid Goyal
81e7d4f1a7
Test to insure that custom shader compilation uses its cache 2026-08-05 05:33:00 +05:30
Kovid Goyal
ae347ec014
allow specialisation of custom shaders at link time 2026-08-05 05:32:59 +05:30
Kovid Goyal
3a93a9a311
... 2026-08-05 05:32:59 +05:30
Kovid Goyal
836db2a78d
... 2026-08-05 05:32:59 +05:30
Kovid Goyal
f106b0b800
Allow running simple custom shaders without a pipeline file 2026-08-05 05:32:59 +05:30
Kovid Goyal
f34af7ca4a
Always do a full rebuild when the types module changes 2026-08-05 05:32:59 +05:30
Kovid Goyal
0f389ad4f4
... 2026-08-05 05:32:59 +05:30
Kovid Goyal
4b0e6bb49c
... 2026-08-05 05:32:59 +05:30
Kovid Goyal
f64d460bfa
Timestamps should be ms precision as thats all float can hold 2026-08-05 05:32:59 +05:30
Kovid Goyal
3232d227ee
Add fg/bg colors to uniform data for custom shaders 2026-08-05 05:32:59 +05:30