Commit Graph

17714 Commits

Author SHA1 Message Date
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
Kovid Goyal
37c2dae810 DRYer 2026-02-18 21:04:51 +05:30
copilot-swe-agent[bot]
f1df140e7d Add function to take screenshot of single window
Fixes #9524
2026-02-18 21:01:01 +05:30
copilot-swe-agent[bot]
b9c9986111 Do scaling of OS Window screenshot on GPU
Fixes #9523
2026-02-18 20:42:58 +05:30
Kovid Goyal
dc328012f4 Allow passing zero thumbnail size 2026-02-18 20:20:37 +05:30
Kovid Goyal
5db53e8f1d Function to take screenshot of OS Window 2026-02-18 20:16:57 +05:30
copilot-swe-agent[bot]
0dfb01e8c5 Implement X11 drag source backend for the new API
Fixes #9522
2026-02-18 16:55:52 +05:30
Kovid Goyal
3cd2aa6a2f Add some docs for the drag source API 2026-02-18 16:05:27 +05:30
Kovid Goyal
a2b7a0cd6d Port Cocoa drag source backend to new API 2026-02-18 11:20:17 +05:30
Jorge Silva
adc97bc117 fix blank screen on macOS resume from sleep 2026-02-17 17:56:14 +00:00
Kovid Goyal
e5eb63fcd0 Refactor drag source API to be async
Wayland implementation done. Other two backends remain.
2026-02-17 13:07:55 +05:30
Kovid Goyal
76a29273c8 Dont send non-finger based zero size scroll events on Wayland 2026-02-17 11:23:49 +05:30
Kovid Goyal
ff4d80dbde Fix #9513 2026-02-17 10:38:27 +05:30
Kovid Goyal
05dbe085a5 Note that the Microsoft Terminal now supports the kitty keyboard input protocol 2026-02-17 10:15:38 +05:30
Kovid Goyal
71c705a1bd When dropping text into the terminal apply the paste actions
This means control codes are now automatically sanitized or queried as
per paste actions settings.
2026-02-17 10:09:10 +05:30
Kovid Goyal
adfa41b7e7 Merge branch 'fix-color-display' of https://github.com/vishalpatil-45/kitty 2026-02-17 09:02:21 +05:30
vishalpatil-45
7c8cd2cd1e Fix: Increase sRGB LUT precision to 8 decimal places for more accurate color rendering 2026-02-17 02:22:20 +05:30
Kovid Goyal
d333095437 Cleanup previous PR 2026-02-16 14:11:00 +05:30
Kovid Goyal
f2fd4a47d0 Merge branch 'master' of https://github.com/littleblack111/kitty 2026-02-16 13:47:21 +05:30
littleblack111
5dfcfba50c Add copy_last_command_output_or_clipboard action
Adds a new keyboard action that copies the selected text to clipboard,
or if no selection exists, copies the last command output. This follows
the pattern of existing actions like copy_or_interrupt.
2026-02-16 15:33:03 +08:00
Kovid Goyal
b534926678 Clarify help text a little 2026-02-16 09:56:05 +05:30
Kovid Goyal
0d3983853d Merge branch 'dependabot/go_modules/all-go-deps-abdcf6c867' of https://github.com/kovidgoyal/kitty 2026-02-16 09:19:50 +05:30
dependabot[bot]
d27f26c07f Bump the all-go-deps group with 2 updates
Bumps the all-go-deps group with 2 updates: [github.com/klauspost/compress](https://github.com/klauspost/compress) and [golang.org/x/sys](https://github.com/golang/sys).


Updates `github.com/klauspost/compress` from 1.18.3 to 1.18.4
- [Release notes](https://github.com/klauspost/compress/releases)
- [Commits](https://github.com/klauspost/compress/compare/v1.18.3...v1.18.4)

Updates `golang.org/x/sys` from 0.40.0 to 0.41.0
- [Commits](https://github.com/golang/sys/compare/v0.40.0...v0.41.0)

---
updated-dependencies:
- dependency-name: github.com/klauspost/compress
  dependency-version: 1.18.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-go-deps
- dependency-name: golang.org/x/sys
  dependency-version: 0.41.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-go-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-16 03:43:24 +00:00
Kovid Goyal
823214575b Use an unsigned int rather than a double to store pixel scroll offset
Its an integral number of pixels.
2026-02-15 19:09:15 +05:30
Kovid Goyal
a0b1adbda5 Cleanup downward fractional line scrolling 2026-02-15 18:57:40 +05:30
Kovid Goyal
8471c0e2e4 @ scroll-window: When scrolling by fractional lines and the fractional part is non-zero scroll by one pixel at least 2026-02-15 15:06:56 +05:30
Kovid Goyal
ebafe8ef5b Fix partial single line scroll not being reset on key events 2026-02-15 14:58:17 +05:30
Kovid Goyal
66a9963fe9 Shell integration: Allow sending click events to shells using y co-ordinates relative to prompts
Note that I havent actually tested the implementation, I leave that to
@okapia.

Fixes #9500
2026-02-15 10:12:22 +05:30
Kovid Goyal
be325ccfcb Update changelog 2026-02-15 09:58:30 +05:30
Kovid Goyal
0eebb3f19d Merge branch 'master' of https://github.com/LazyStability/kitty 2026-02-15 09:55:56 +05:30
LazyStability
4504b5febe feat(sessions): add active-only to goto_session
Allows to specify whether or not to switch only to an active session
2026-02-14 16:23:27 +01:00
Kovid Goyal
55f14aa63b ... 2026-02-13 11:15:41 +05:30
Kovid Goyal
7c7fc4d140 Fix focus_follows_mouse not working during a drag and drop
Fixes #9497
2026-02-13 10:16:11 +05:30
Kovid Goyal
a99103d9a1 Drop events should use same co-ordinate system as mouse events 2026-02-13 10:08:25 +05:30
Kovid Goyal
c4c31c3bc1 Bump libpng for CVE 2026-02-13 08:57:17 +05:30