Commit Graph

18097 Commits

Author SHA1 Message Date
Kovid Goyal
f7c8fe9c78 flag to track if a drag source sends remote data 2026-05-05 21:39:42 +05:30
Kovid Goyal
de6643d899 Merge branch 'copilot/implement-exit-on-flag' of https://github.com/kovidgoyal/kitty 2026-05-05 21:17:45 +05:30
copilot-swe-agent[bot]
13898e73f2 Implement --exit-on flag for dnd kitten
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/b6835902-79c3-4d14-9761-8633073db808

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-05-05 10:33:11 +00:00
Kovid Goyal
74787a60d7 New option to control when dnd kitten exits
To be implemented
2026-05-05 15:55:02 +05:30
Kovid Goyal
516ca9a8c4 Dont try to generate drag thumbnail from file contents as its too slow 2026-05-05 15:47:05 +05:30
Kovid Goyal
b6a7724369 ... 2026-05-05 15:37:45 +05:30
Kovid Goyal
14c3590259 Merge branch 'copilot/implement-remove-dropped-items' of https://github.com/kovidgoyal/kitty 2026-05-05 15:18:22 +05:30
copilot-swe-agent[bot]
fe6807c9b0 implement move deletion and add tests for dnd kitten drop
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/e2238746-2319-43e5-9b01-4899e7f06b50

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-05-05 09:37:50 +00:00
Kovid Goyal
9a3f3ed14e ... 2026-05-05 14:54:09 +05:30
Kovid Goyal
898599ff14 Use a fallback icon as drag thumbnail is none is found 2026-05-05 14:47:50 +05:30
Kovid Goyal
3896846b63 Fix self drops on macOS 2026-05-05 12:42:09 +05:30
Kovid Goyal
00e5472fd9 ... 2026-05-05 12:05:45 +05:30
Kovid Goyal
e89d835de6 Make CodeQL happy 2026-05-05 11:54:21 +05:30
Kovid Goyal
668e959895 Merge branch 'copilot/add-nerd-font-fallback' of https://github.com/kovidgoyal/kitty 2026-05-05 11:49:19 +05:30
Kovid Goyal
99630a5ed1 ... 2026-05-05 11:48:44 +05:30
copilot-swe-agent[bot]
d112d1f853 Add builtin NERD font as fallback in cocoa_render_line_of_text
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/f8c3bf89-a05f-4d78-9e2e-cb8c6ca5a9f1

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-05-05 06:15:52 +00:00
Kovid Goyal
787e4c25ae Merge branch 'copilot/fix-dnd-draw-text-issues' of https://github.com/kovidgoyal/kitty 2026-05-05 11:39:50 +05:30
copilot-swe-agent[bot]
313561d282 Fix bg_alpha opacity and wide char truncation in freetype_render_ui_text.c
1. Fix alpha_blend_premult to compute result alpha as
   over_alpha + (1 - over_alpha/255) * under_alpha instead of
   just using the under (background) alpha. This fixes the DnD drag
   image where bg_alpha was incorrectly making the entire image
   semi-transparent (including fully-opaque text pixels), because text
   pixels were inheriting the background pixel's alpha value.

2. Fix truncation check in render_run from >= to > so that characters
   whose cursor advance exactly equals the available output width are
   not wrongly treated as truncating. This fixes wide characters like
   笔 and NERD font symbols being rendered as '...' (ellipsis) when
   draw_window_title shrinks the render width to the computed text
   width via freetype_text_width_for_single_line.

Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/6ca5e045-57ab-4fba-bff5-fa4dece3131f

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-05-05 06:01:40 +00:00
Kovid Goyal
c690a3f3e8 Remove pointless realloc 2026-05-05 11:09:11 +05:30
Kovid Goyal
132ce019d1 ... 2026-05-05 11:07:29 +05:30
Kovid Goyal
3165a47579 More work on the DnD kitten 2026-05-05 10:49:56 +05:30
Kovid Goyal
a0a81dbe88 Merge branch 'copilot/fix-test-fish-sudo-parser-failure' of https://github.com/kovidgoyal/kitty 2026-05-05 10:10:16 +05:30
copilot-swe-agent[bot]
06b2ccb88c Fix test_fish_sudo_parser: fix fish sudo function bugs
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/d743ec32-6ae8-41c8-b7bb-6efc63f7d346

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-05-05 04:25:37 +00:00
Kovid Goyal
fd451f5974 Add flag to specify drop directory for dnd kitten 2026-05-05 09:47:12 +05:30
Kovid Goyal
fd7e43ab0c Make detection of command line flags that prevent sudo from overriding TERMINFO more robust 2026-05-05 09:38:07 +05:30
Kovid Goyal
4ab166c9ac Handle -- as flag terminator in sudo wrapper 2026-05-04 23:30:27 +05:30
Kovid Goyal
021377c1b6 Yet another workaround for Wayland's awful design 2026-05-04 22:53:05 +05:30
Kovid Goyal
7222c5aa77 ... 2026-05-04 13:05:54 +05:30
Kovid Goyal
da3f3eb1d0 Drop should start out not being accepted till client says it is 2026-05-04 12:58:06 +05:30
Kovid Goyal
2316a8ce25 More work on dnd kitten 2026-05-04 12:32:56 +05:30
Kovid Goyal
d2384fbc67 Use current screen colors when rendering text for dnd thumbnail 2026-05-04 12:01:21 +05:30
Kovid Goyal
7942e7aaac Merge branch 'copilot/implement-drag-thumbnail-text' of https://github.com/kovidgoyal/kitty 2026-05-04 11:44:08 +05:30
copilot-swe-agent[bot]
5e22502323 Address code review: add DRAG_OPACITY_MAX constant, fix rounding, improve type checking
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/6be6bfeb-64f8-466f-bf80-62915fabb5b4

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-05-04 04:53:45 +00:00
copilot-swe-agent[bot]
89ab2946ff Implement text drag thumbnail support using draw_window_title with nerd font fallback
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/6be6bfeb-64f8-466f-bf80-62915fabb5b4

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-05-04 04:46:53 +00:00
Kovid Goyal
1b4cec36e2 Allow using text to specify the drag thumbnail 2026-05-04 09:58:39 +05:30
Kovid Goyal
4fe29f2630 dd basic drag thumbnail support to dnd kitten 2026-05-03 22:18:18 +05:30
Kovid Goyal
ee38d3f0c8 Fix failing test 2026-05-03 18:52:54 +05:30
Kovid Goyal
7b93a9b57e Fix double base64 encoding 2026-05-03 17:29:01 +05:30
Kovid Goyal
3a144e1d6e More work on dnd kitten 2026-05-03 17:09:03 +05:30
Kovid Goyal
eedc849a9e Merge branch 'copilot/fix-test-failure' of https://github.com/kovidgoyal/kitty 2026-05-03 14:36:44 +05:30
copilot-swe-agent[bot]
392b6882c3 Add comment explaining data_capacity/data_size reset in finish_remote_data
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/fdd92dca-f2f9-4bb6-9d85-b5daeaa501f7

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-05-03 08:00:38 +00:00
copilot-swe-agent[bot]
c98c8542ca Fix two bugs in remote DnD drag: missing idx_in_uri_list and stale data_capacity
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/fdd92dca-f2f9-4bb6-9d85-b5daeaa501f7

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-05-03 07:57:06 +00:00
Kovid Goyal
0de313e178 More work on the dnd kitten 2026-05-03 13:06:56 +05:30
Kovid Goyal
a7a7a4fd8f More work on the dnd kitten 2026-05-03 12:09:40 +05:30
Kovid Goyal
da590ed5ec Remove unused code 2026-05-03 11:57:33 +05:30
Kovid Goyal
7d468cb000 More work on dnd kitten 2026-05-03 06:54:43 +05:30
Kovid Goyal
cd7d3026f6 Handle dnd chunking internally in the loop 2026-05-02 17:28:01 +05:30
Kovid Goyal
25a74112e8 Remove no longer needed in flight tracking 2026-05-02 17:20:06 +05:30
Kovid Goyal
a87441b91a Fix failing test 2026-05-02 17:16:27 +05:30
Kovid Goyal
d3114ec948 More work on the dnd kitten 2026-05-02 15:18:11 +05:30