Commit Graph

16729 Commits

Author SHA1 Message Date
Kovid Goyal
7b2ac01b41 Merge branch 'patch-1' of https://github.com/ShalokShalom/kitty 2025-11-02 21:48:59 +05:30
ShalokShalom
932fd1a886 Add flow control
Forgot to add with the previous commit :)
2025-11-02 16:29:37 +01:00
ShalokShalom
b8f4760f60 Add TuiOS and bubbletea to docs
This adds TuiOS and bubbletea to the documentation
2025-11-02 16:25:33 +01:00
Kovid Goyal
97b030edf7 Dont scan grype itself with grype 2025-11-02 15:41:01 +05:30
Kovid Goyal
49f730c03a Merge branch 'inner-corner' of https://github.com/bea4dev/kitty 2025-11-02 14:40:22 +05:30
bea4dev
a5848151e0 fix inner_corner 2025-11-02 16:46:08 +09:00
Kovid Goyal
6d50da1f48 Merge branch 'chore/gopsutil-v4' of https://github.com/Juneezee/kitty 2025-10-31 20:56:49 +05:30
Eng Zer Jun
d5455ab072 Update github.com/shirou/gopsutil to v4
v4 is the latest version with bug fixes and enhancements, notably the
removal of CGO implementations on Darwin in v4.24.9 [1].

Note: Due to the library's versioning policy, v4.24.5 is the first v4
release [2].

[1]: https://github.com/shirou/gopsutil/releases/tag/v4.24.9
[2]: https://github.com/shirou/gopsutil/releases/tag/v4.24.5

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2025-10-31 23:14:38 +08:00
Kovid Goyal
1b07f5348f Bump version of go toolchain for some CVEs 2025-10-31 10:02:34 +05:30
Kovid Goyal
666054955b macOS: Add an item to the global menu to Cycle through OS windows 2025-10-31 09:31:24 +05:30
Kovid Goyal
fde16d16e9 ... 2025-10-27 22:17:42 +05:30
Kovid Goyal
1bed965115 Merge branch 'fix-wait-for-child-overlay' of https://github.com/jackielii/kitty 2025-10-27 21:58:38 +05:30
Jackie Li
9b4bd01148 Fix --wait-for-child-to-exit not working with overlay windows
The issue was a closure problem where the on_child_death callback
referenced a responder variable that was created after do_launch()
was called. This caused the callback to fail when the child process
exited because responder didn't exist in the callback's closure.

The fix creates the responder before defining the callback and adds
a null check in the callback to ensure it exists before using it.

This allows commands like:
  kitten @ launch --type=overlay --wait-for-child-to-exit bash -c "echo test"
to properly wait for the child process to exit and return the exit code.
2025-10-27 13:04:05 +00:00
Kovid Goyal
6020eebea3 Merge branch 'match-state-focused-os-window' of https://github.com/jackielii/kitty 2025-10-27 15:06:34 +05:30
Jackie Li
c324018969 make it work on tabs matching as well 2025-10-27 08:27:24 +00:00
Kovid Goyal
422bcf1328 Merge branch 'match-state-focused-os-window' of https://github.com/jackielii/kitty 2025-10-27 13:56:20 +05:30
Jackie Li
ae29085e5c add state:focused_os_window to match window 2025-10-27 08:22:53 +00:00
Kovid Goyal
5e366cb5a3 Merge branch 'feature-save-as-session' of https://github.com/jackielii/kitty 2025-10-27 08:39:31 +05:30
Kovid Goyal
9e94ff28f6 Merge branch 'setuservar-autocmd' of https://github.com/phanen/kitty 2025-10-27 08:35:36 +05:30
Kovid Goyal
e61eb59ff5 Merge branch 'patch-1' of https://github.com/zakj/kitty 2025-10-27 08:34:47 +05:30
phanium
16104cf077 Fix nvim SetUsrVar autocmd for --remote-ui 2025-10-27 09:41:00 +08:00
Zak Johnson
edf532b8ee Fix typo in launch docs 2025-10-26 13:00:10 -07:00
Jackie Li
eedd56ff93 cleanup + keep it simple 2025-10-26 17:47:58 +00:00
Jackie Li
2201b99e15 Merge remote-tracking branch 'upstream/master' into feature-save-as-session 2025-10-26 17:34:05 +00:00
Jackie Li
2a129f2b3b remove --focus-tab and add docs 2025-10-26 17:32:23 +00:00
Kovid Goyal
1866ffe99e Merge branch 'session-add-focus-tab' of https://github.com/jackielii/kitty 2025-10-26 18:32:16 +05:30
Jackie Li
47b4c94c61 implement --base-dir and --focus-tab to save_as_session 2025-10-26 11:08:43 +00:00
Jackie Li
75537187a8 support search_syntax in focus_tab 2025-10-26 09:44:29 +00:00
Jackie Li
e0bea0cac4 add doc + changelog 2025-10-26 09:44:29 +00:00
Jackie Li
c9645378f7 add focus-tab command to session file 2025-10-26 09:44:04 +00:00
Kovid Goyal
a54f30ab3d Fix incorrect calculation of tab bar margins
Fixes #9154
2025-10-26 08:51:41 +05:30
Kovid Goyal
84d7c411bf Merge branch 'fix/desktop-portal-fallback' of https://github.com/azertyfun/kitty 2025-10-24 21:45:12 +05:30
Nathan Monfils
ff7e1a90a8 Fix: Make portals.conf fallback (Fixes #9144) 2025-10-24 18:02:57 +02:00
Kovid Goyal
c2be527d3d Merge branch 'utf-8-simd-parser-fix' of https://github.com/Wukuyon/kitty 2025-10-24 14:49:58 +05:30
Wukuyon
9d336be0d3 Combine ascii_mask/counts check with errors vector in simd-string-impl.h
Initialize errors by xoring ascii_mask with the movemask result and
setting the scalar mismatch into the chunk_is_invalid vector.

Removes another conditional branch.
Improves unicode benchmark performance by about 3%.
2025-10-23 22:37:33 -06:00
Wukuyon
1c869d3629 Refine test for overlapping UTF-8 sequences in simd-string-impl.h
Replace a shift_right_by_one_byte call with comparison operations.
Improves unicode benchmark performance by about 1%.
2025-10-23 22:37:33 -06:00
Wukuyon
65890de60d Fix UTF-8 overlong and special range checks in simd-string-impl.h
Modified `start_classification` in `utf8_decode_to_esc` in `simd-string-impl.h`, which now:

Rejects `0xC0`, `0xC1` and `0xF5..0xFF` lead bytes in UTF-8 subsequences.

Enforces special ranges for the second subsequence bytes after `0xE0`, `0xED`, `0xF0` and `0xF4` bytes to prevent overlong sequences, surrogates, and code points above U+10FFFF.

Accumulates UTF-8 validation errors in a single vector to avoid many conditional branches.

Worsens unicode benchmark performance by about 4%.
2025-10-23 22:37:33 -06:00
Wukuyon
295951348c Add boundary case tests for test_utf8_simd_decode
These tests were generated from Node.js and match the WHATWG Encoding Specification's behavior (substitution of maximal subparts).
2025-10-23 21:43:20 -06:00
Wukuyon
77a3fc8dd2 Swap expected/actual variables in t function in test_utf8_simd_decode
For more useful debugging.
The expected value is what the scalar decoder returns.
The actual value is what the "which" SIMD decoder returns.
2025-10-23 21:43:20 -06:00
Kovid Goyal
c7117c2839 Make the os window id available in tab bar drawing 2025-10-24 07:32:36 +05:30
Kovid Goyal
0a6ed15858 ... 2025-10-22 13:53:44 +05:30
Kovid Goyal
33b9d858ad Nano-optimisation: Avoid using a block with GCD 2025-10-22 13:40:42 +05:30
Kovid Goyal
6a6b0b47a3 Micro-optimize display link callback
Use a GCD block rather than a runtime selector with a boxed number
2025-10-22 13:35:02 +05:30
Kovid Goyal
26ea343f95 Fix failing tests 2025-10-22 13:21:53 +05:30
Kovid Goyal
8e2b489eed Fix a couple more places where right/bottom edges were considered inclusive
Fixes #9132 (I hope as I cant reproduce it)
2025-10-22 12:29:26 +05:30
Kovid Goyal
77f282785c Allow resizing label to have lower background opacity if overall background opacity is low 2025-10-22 11:57:54 +05:30
Kovid Goyal
a9ad58fa78 Draw OS window contents at top left instead of bottom left during live resize
Also, since I was here, have the size display be translucent.

Fixes #9141
2025-10-22 11:53:43 +05:30
Kovid Goyal
878b502fc1 Cleanup previous PR
The locks were not being initialized, and since I was there did some
general cleanup as well, moved the locks array into displayLinks rather
than having another global namespaced variable.
2025-10-22 09:54:21 +05:30
Kovid Goyal
d07100d9b2 Merge branch 'fix-macos-displaylink-idle' of https://github.com/meghendra6/kitty 2025-10-22 09:54:16 +05:30
Scott Lee
fc8f3ca6e2 Improve macOS idle wakeups handling 2025-10-22 07:38:10 +09:00