Commit Graph

17245 Commits

Author SHA1 Message Date
Daniel M German
6fa122af11 Fix action triggering by using kitten output instead of remote control
The RC approach sent actions targeting the overlay window itself rather
than the underlying window. Switch to the standard kitten output pattern:
the Go kitten outputs the selected action definition via
KittenOutputSerializer, and handle_result in Python calls boss.combine()
with the correct target window after the overlay closes.
2026-02-22 21:12:36 -08:00
Daniel M German
33b5b0a339 Add command_palette command to display bound keys
Add a Go-based command_palette kitten that provides a searchable,
interactive overlay for browsing and triggering keyboard shortcuts
and actions.

- New Go kitten at kittens/command_palette/ with FZF fuzzy search,
  grouped/flat views, and remote control action triggering
- Python collect_keys_data() does data collection, passed via stdin
- Navigation: arrows, ctrl+j/k (vim), ctrl+n/p (emacs), page up/down
- Enter triggers the selected action via RC command
- Help text displayed in footer for selected binding
- Added Go tests (main_test.go) and Python tests (command_palette.py)
2026-02-22 20:46:47 -08:00
Kovid Goyal
f0d11f7223 ... 2026-02-22 16:48:59 +05:30
Kovid Goyal
3db06a2915 More debug prints 2026-02-22 16:44:57 +05:30
Kovid Goyal
6edad05c21 ... 2026-02-22 16:44:24 +05:30
Kovid Goyal
9f2a4ad2dd Wayland: Implement ridiculous workaround for broken dnd
Wayland is *the worst* window system I have ever had the
displeasure of trying to support.
2026-02-22 16:24:46 +05:30
Kovid Goyal
322a51da98 ... 2026-02-22 15:44:28 +05:30
Kovid Goyal
b737eaad65 Cleanup previous PR
Use a single wl_surface for the drag icon. Whther it is attached to the
top level drag or not is determined based on availability.
2026-02-22 15:36:10 +05:30
copilot-swe-agent[bot]
accee908aa Implement Wayland xdg-toplevel-drag protocol for make_toplevel in _glfwPlatformChangeDragImage
Fixes #9544
2026-02-22 14:53:34 +05:30
Kovid Goyal
6d59469cf1 Handle drop leave events 2026-02-22 13:44:19 +05:30
Kovid Goyal
ca43d57cdf Fix enumeration of pasteboard items in the source 2026-02-22 13:32:55 +05:30
Kovid Goyal
531fb3e1b1 Change drag thumbnail when in detach/move modes 2026-02-22 13:09:56 +05:30
Kovid Goyal
a4514fcf66 ... 2026-02-22 12:12:23 +05:30
Kovid Goyal
9a58af12b4 Fix tab bar visibility while dragging tabs around 2026-02-22 12:09:41 +05:30
Kovid Goyal
aaa9ff51b5 Fix tab bar not being redrawn when tab is moved out and then brought back in prev position 2026-02-22 11:59:14 +05:30
Kovid Goyal
cad8f3fd17 Only re-order tabs when dropping in the actual tab bar of the origin window 2026-02-22 11:54:57 +05:30
Kovid Goyal
449abb69bc Cleanup previous PR 2026-02-22 11:13:57 +05:30
copilot-swe-agent[bot]
0c0c5a62f7 Implement changing drag image in the various backends
Fixes #9542
2026-02-22 09:26:14 +05:30
Kovid Goyal
6506ce1e91 API to change image for drag in progress 2026-02-22 09:10:26 +05:30
Kovid Goyal
8ad22e7859 On Wayland detach even on drag cancel
Wayland compositors contravene their own spec and make it impossible to
distinguish between drop-but-not-accept and drag-cancel cases.
https://gitlab.freedesktop.org/wayland/wayland/-/issues/140
2026-02-22 08:19:31 +05:30
Kovid Goyal
eb23c18821 Dont detach when user presses esc to cancel drag and there is no drop 2026-02-22 07:42:42 +05:30
Kovid Goyal
0f10380773 Cocoa backend: distinguish between cancelling drop by esc key/dragging to trash and dropping in unsupported place 2026-02-22 07:34:27 +05:30
Kovid Goyal
f91da73b95 Update changelog
Fixes #9296
2026-02-22 06:49:48 +05:30
Kovid Goyal
d4bd05a948 Cleanup drag start handling 2026-02-22 06:44:40 +05:30
Kovid Goyal
80367cdb7b Add option to control tab bar drag threshold 2026-02-22 06:39:57 +05:30
Kovid Goyal
60ee969028 Cleanup previous PR 2026-02-22 06:31:13 +05:30
copilot-swe-agent[bot]
15644d1eed Add tab title above window screen shot
Fixes #9540
2026-02-21 22:27:33 +05:30
copilot-swe-agent[bot]
56a9dd1bb7 Place drag icon below cursor on macOS
Fixes #9539
2026-02-21 22:06:49 +05:30
Kovid Goyal
2e1e89f280 Cleanup previous PR 2026-02-21 21:30:24 +05:30
Kovid Goyal
c32cc2233a Merge branch 'macos-dock-badge-on-bell' of https://github.com/pietervdheijden/kitty 2026-02-21 21:19:17 +05:30
Kovid Goyal
b3a74cb8f4 Update changelog 2026-02-21 20:58:34 +05:30
copilot-swe-agent[bot]
bcba8fc04c Wayland: Add support for ext-background-effects
Fixes #9536
Fixes #9534
2026-02-21 20:56:40 +05:30
Kovid Goyal
6bd0aa5269 Fix #9538 2026-02-21 20:38:34 +05:30
Kovid Goyal
43bd80c01a Merge branch 'master' of https://github.com/maxdexh/kitty 2026-02-21 20:01:23 +05:30
Max Dexheimer
b023f5b1b3 Fix horizontal alignment cropping symbols off
Calculate horizontal alignment delta based on the unscaled rather
than scaled canvas width to avoid shifting too far and cropping
2026-02-21 13:42:20 +01:00
Kovid Goyal
dea3ad5eed API for registering MIME types for drag enter 2026-02-21 17:25:25 +05:30
Kovid Goyal
57e7dc2cdc Add some more common types 2026-02-21 17:25:03 +05:30
Kovid Goyal
7efba91ffc Register UTI for tab drag mime on Cocoa 2026-02-21 16:59:58 +05:30
Kovid Goyal
aab60b7967 Fix mime <-> UTI roundtripping 2026-02-21 16:37:04 +05:30
Kovid Goyal
e93e50293a Bump zlib for CVE 2026-02-21 15:51:48 +05:30
Kovid Goyal
5e84935838 DRYer 2026-02-21 15:22:00 +05:30
Kovid Goyal
96c01b74d8 Detach tab via drag and drop now implemented 2026-02-21 15:15:33 +05:30
Kovid Goyal
e10451dbcb Fix dropping of tab into other os window breaking tab bar layout 2026-02-21 14:41:22 +05:30
Kovid Goyal
0682c5bc8a Get basic tab move from one OS window to another via drag working 2026-02-21 14:27:17 +05:30
Kovid Goyal
c56d4223af Refactor state tracking for tab drag
Drop into same window now works
2026-02-21 13:31:04 +05:30
Kovid Goyal
0b6636eb0f Get tab re-ordering on drag in same window to work
Still need to implement multiple windows and detach and the actual drop
event.
2026-02-20 12:22:56 +05:30
Pieter van der Heijden
e1643ae68a Add macos_dock_badge_on_bell config option
Set a "!" badge on kitty's dock icon when a bell fires and kitty is not
focused, providing a persistent visual indicator for background
notifications. The badge is automatically cleared when kitty regains
focus via NSApplicationDidBecomeActiveNotification. The option defaults
to yes and can be disabled with `macos_dock_badge_on_bell no`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 22:01:07 +01:00
Kovid Goyal
7123f727fc Handoff tab drag to OS 2026-02-19 14:15:29 +05:30
copilot-swe-agent[bot]
acd2db20eb Fix screenshot generation to handle colors correctly
We want to convert premult sRGB in output framebuffer to sRGB
non premult pixels.

Fixes #9525
2026-02-19 12:58:13 +05:30
Kovid Goyal
dc57e5bdb8 Start work on drag and drop for tabs 2026-02-19 12:37:31 +05:30