Commit Graph

17963 Commits

Author SHA1 Message Date
Kovid Goyal
864ef70484 Have the client send machine id to terminal rather than vice versa
The terminal is the trusted by user party here.
2026-04-12 11:00:23 +05:30
Kovid Goyal
9ebe692bf7 Allow drop clients to use machine id as well 2026-04-12 09:27:16 +05:30
Kovid Goyal
88a4d90daa ... 2026-04-11 22:05:01 +05:30
Kovid Goyal
e53bad9fc2 More work on DnD protocol 2026-04-11 21:52:07 +05:30
Kovid Goyal
36237f3bd0 Cleanup previous PR 2026-04-11 20:46:11 +05:30
Kovid Goyal
5b4ccff5bd Merge branch 'copilot/implement-parse-uri-list-function' of https://github.com/kovidgoyal/kitty 2026-04-11 20:40:08 +05:30
copilot-swe-agent[bot]
f6b999efdd Implement parse_uri_list() in dnd.c per RFC 2483
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/06c06ea3-b5d0-4f78-b319-380af08bb139

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-04-11 15:07:08 +00:00
Kovid Goyal
aa57cef9ed More work on DnD protocol 2026-04-11 20:26:38 +05:30
Kovid Goyal
ba95be8303 More work on DnD protocol 2026-04-11 19:45:03 +05:30
Kovid Goyal
df20d4aa7c Add machine id and stub for t=k transfers 2026-04-11 17:20:53 +05:30
Kovid Goyal
cfa9f1bada Bump dependencies for CVEs 2026-04-11 14:29:23 +05:30
copilot-swe-agent[bot]
74c3bbe06d Implement software rendering for Unicode 16 legacy computing symbols
Add rendering for codepoints U+1FBCE-U+1FBEF, U+1CC1B-U+1CC3F,
and U+1CE16-U+1CE19 in decorations.c with registration in fonts.c
and test coverage in kitty_tests/fonts.py.

Characters implemented:
- U+1FBCE-1FBCF: Left two-thirds and one-third blocks
- U+1FBD0-1FBDF: 16 diagonal box drawing characters
- U+1FBE0-1FBE3: Justified half white circles (outlines)
- U+1FBE4-1FBE5: Upper/lower centre quarter blocks
- U+1FBE8-1FBEB: Justified half black circles (filled)
- U+1FBEC-1FBEF: Justified quarter black circles (filled)
- U+1CC1B-1CC1E: Box drawing variants with offset junctions
- U+1CC1F-1CC20: Double diagonal lines
- U+1CC30-1CC3F: Twelfth and quarter circle arcs
- U+1CE16-1CE19: Box drawings light vertical T-junctions

Fixes #9851
2026-04-11 14:17:21 +05:30
Kovid Goyal
26388c6bbf Update changelog 2026-04-11 10:08:44 +05:30
Kovid Goyal
4c6f45e4ce Merge branch 'copilot/implement-missing-block-elements' of https://github.com/kovidgoyal/kitty 2026-04-11 10:08:13 +05:30
copilot-swe-agent[bot]
5f01076daa Fix comment in draw_separated_block
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/0e5a33d1-c34e-4e8a-b161-7469ab770c05

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-04-11 04:28:28 +00:00
copilot-swe-agent[bot]
76c76381b8 Add missing block elements from Unicode Symbols for Legacy Computing Supplement
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/0e5a33d1-c34e-4e8a-b161-7469ab770c05

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-04-11 04:24:29 +00:00
Kovid Goyal
564c964ed0 Add remote drag protocol
Needs to be implemented.
2026-04-10 20:32:53 +05:30
Kovid Goyal
01055d36b0 Move roundtrip on exit flag into terminal options to have a consistent API 2026-04-10 15:37:20 +05:30
Kovid Goyal
3fe884a29a DRYer 2026-04-10 15:32:27 +05:30
Kovid Goyal
5e158f90a7 Fix some responses from terminal sometimes leaking into shell on after kitten exit
Always do a roundtrip at kitten exit, except for special purpose
kittens. This slows down exit by one round trip time (capped at 2
seconds), however it ensures that we never get terminal response leak.

Fixes #9839
2026-04-10 15:14:38 +05:30
Kovid Goyal
4982173d3a Merge branch 'copilot/modify-drop-protocol-handling' of https://github.com/kovidgoyal/kitty 2026-04-10 13:45:28 +05:30
copilot-swe-agent[bot]
b8cbb7f68d Address code review: use < 2 condition, fix docstring, assert first handle = 2
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/6973699c-a979-4d97-8213-1a4a501044a1

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-04-10 07:39:40 +00:00
copilot-swe-agent[bot]
afa63ccec7 Implement new drop protocol X/Y key handling from b466f8b
- dnd.c: drop_send_dir_listing now uses drop_append_request_keys (echoes
  all request keys including Y for sub-dirs) and emits :X=handle instead
  of :Y=handle:X=2.  Directory handles are now the X value itself.
- dnd.c: drop_alloc_dir_handle starts handle counter at 1 so first
  handle is 2, keeping 0 (absent) and 1 (symlink) reserved as per protocol.
- dnd.py: add is_dir_event() / dir_handle() helpers; update all tests to
  use int(X) > 1 as directory indicator and X as the handle value.
- dnd.py: rename test_Y_key_in_dir_listing_response to
  test_X_key_is_handle_in_dir_listing_response with updated assertions.
- dnd.py: test_uri_directory_transfer_tree expanded to verify unambiguous
  identification (Y=parent, x=entry echoed) at all three directory levels.

Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/6973699c-a979-4d97-8213-1a4a501044a1

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-04-10 07:35:09 +00:00
Kovid Goyal
b466f8b4df Fix no way to unambiguously identify sub-dirs in drop protocol 2026-04-10 12:47:56 +05:30
Kovid Goyal
d5cf828482 Update changelog 2026-04-10 08:42:52 +05:30
Kovid Goyal
2f8f3ab40f Merge branch 'pdobrev/macos-opt-to-ignore-safe-area' of https://github.com/pdobrev/kitty 2026-04-10 08:38:59 +05:30
Kovid Goyal
b9e78d67bb Merge branch 'copilot/update-dnd-error-responses' of https://github.com/kovidgoyal/kitty 2026-04-09 22:50:49 +05:30
copilot-swe-agent[bot]
0a8713972c Change drag offer error responses from t=R to t=E in dnd.c and dnd.py
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/b0dd4978-d0b4-42a3-81e0-51b5ce155db9

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-04-09 17:14:44 +00:00
Kovid Goyal
eda9fb58a4 Change the error code for responses used in drag offer protocol to E from R so that there is no ambiguity with drop responses 2026-04-09 22:04:20 +05:30
Kovid Goyal
9196cc51dd Remove unused function 2026-04-09 21:40:29 +05:30
Kovid Goyal
1e714d2c31 Merge branch 'copilot/implement-drag-drop-refactor' of https://github.com/kovidgoyal/kitty 2026-04-09 21:39:18 +05:30
copilot-swe-agent[bot]
3a8253e747 Address code review: add buffer overflow safety in drop_append_request_keys
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/cdeecb3c-8589-4622-8f6b-21b724e4d5fd

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-04-09 15:41:12 +00:00
copilot-swe-agent[bot]
0f47a23c36 Update DnD tests for new protocol: use x/y/Y disambiguation instead of request_id
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/cdeecb3c-8589-4622-8f6b-21b724e4d5fd

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-04-09 15:35:23 +00:00
copilot-swe-agent[bot]
c42d8baaad Implement DnD protocol refactoring: remove request_id, merge t=s/t=d into t=r, use x/y/Y for disambiguation
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/cdeecb3c-8589-4622-8f6b-21b724e4d5fd

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-04-09 15:26:36 +00:00
Kovid Goyal
3ab89a2fa8 Refactor the drop protocol
Get rid of request_id. Instead use the x, y, and Y fields to
disambiguate requests. Specify error handling a little more robustly.

Implementation needed.
2026-04-09 20:39:54 +05:30
Kovid Goyal
019158c168 Merge branch 'copilot/update-dnd-protocol-symlink-handling' of https://github.com/kovidgoyal/kitty 2026-04-09 18:29:03 +05:30
copilot-swe-agent[bot]
4d2b63fce8 Revert to 1-based directory entry indexing in DnD protocol
- dnd.c: entry_num==0 closes handle; entry_num>=1 reads at entry_num-1
- parse-dnd-command.h: revert cell_y default to 0 (from {0} init)
- gen/apc_parsers.py: remove post_init for DnD parser
- docs/dnd-protocol.rst: update to say 1-based indexing
- tests: all .index() calls add +1, rename test_dir_entry_one_based_index

Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/d4074aba-3aeb-4d2b-adc1-d6c6f2b539e7

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-04-09 11:52:31 +00:00
copilot-swe-agent[bot]
7e0e3eb6ac Fix os.makedirs to os.mkdir for single-level directory in test
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/d09883e5-f460-471d-9dcf-e64e7b96882f

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-04-09 11:38:49 +00:00
copilot-swe-agent[bot]
d548afc94a Implement DnD protocol changes for symlinks and directory handling
- Remove unique identifier (device:inode) from directory listings
- Change directory entry indexing from 1-based to 0-based
- Add symlink handling in directories: respond with t=r:X=1 and target
- Update parser to default cell_y to -1 for close handle detection
- Update and extend tests for all new behaviors

Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/d09883e5-f460-471d-9dcf-e64e7b96882f

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-04-09 11:33:43 +00:00
Kovid Goyal
a92b381dc3 Change how directories and symlinks in directories are handled when reading drop data
Needs implementation.
2026-04-09 16:47:03 +05:30
Kovid Goyal
79706520c5 Bump openssl for CVEs 2026-04-09 15:01:32 +05:30
Kovid Goyal
543bb5d330 Cleanup previous PR 2026-04-09 14:20:46 +05:30
Kovid Goyal
139a0fac25 Merge branch 'fix-inactive-text-alpha' of https://github.com/zzhaolei/kitty 2026-04-09 14:09:43 +05:30
Petar Dobrev
a4170d4b59 Added macos_fullscreen_ignore_safe_area_insets option 2026-04-09 10:27:01 +03:00
zhaolei
40c2012eeb Support negative inactive_text_alpha values for active-window-only fading 2026-04-09 13:04:01 +08:00
Kovid Goyal
f87f15bd1d ... 2026-04-09 09:19:21 +05:30
Kovid Goyal
bf677042d4 Cleanup previous PR 2026-04-09 09:07:01 +05:30
Kovid Goyal
66e41b8d36 Merge branch 'copilot/add-fifo-queue-for-drop-data' of https://github.com/kovidgoyal/kitty 2026-04-09 09:05:51 +05:30
Kovid Goyal
1923184cba ... 2026-04-09 09:02:26 +05:30
copilot-swe-agent[bot]
f5dd86d32b Address code review: handle malloc failure with ENOMEM, extract drop_finish_and_clear_queue helper
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/3a4975c2-8691-486b-8ff9-f8a2146b8756

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-04-09 03:25:45 +00:00