Commit graph

19381 commits

Author SHA1 Message Date
Kovid Goyal
3435aeccdb
Fix #10567 2026-09-28 14:53:48 +05:30
Kovid Goyal
ff3f423c79
... 2026-09-28 14:14:11 +05:30
Kovid Goyal
be9a57700c
Merge branch 'fix/hyperlink-collection-order' of https://github.com/M-Hassan-Raza/kitty 2026-09-28 14:13:27 +05:30
Hassan Raza
2ef024bbab
Collect stale hyperlinks before adding new links 2026-09-28 11:34:37 +05:00
Kovid Goyal
dd5be07a45
autoformat
Some checks are pending
CI / Linux (python=3.14 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.13 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
CodeQL / CodeQL-Build (actions, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, macos-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (go, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (python, ubuntu-latest) (push) Waiting to run
Depscan / Scan dependencies for vulnerabilities (push) Waiting to run
2026-09-28 11:59:21 +05:30
Kovid Goyal
676b2a12e8
Merge branch 'master' of https://github.com/barroit/kitty 2026-09-28 11:46:48 +05:30
Kovid Goyal
9bb5e06853
Cleanup previous PR
Follow up to the merge of PR #10560 which skips input_delay when less
than 1 KiB of program output is pending.

Fix a data race: the I/O thread called
vt_parser_pending_input_is_interactive() which read read.pos under the
parser lock, but the main thread modifies read.pos without the lock
while parsing, so taking the lock on one side only did not protect it.
Instead, vt_parser_commit_write() now returns whether the pending input
is small, computed from read.sz and write.pending, which are only
modified with the lock held. This may overestimate while a parse is in
progress or when an incomplete escape code is retained, in which case
we simply fall back to the normal input_delay behavior. It also saves a
lock/unlock cycle per read in the I/O thread.

Bound the number of early main loop wakeups: since render() bypasses
repaint_delay whenever input was read, input_delay was the effective
cap on parse/render frequency for streaming output. Waking the main
loop on every small read removed that cap entirely for programs that
emit a continuous stream of small writes, costing CPU and increasing
the chance of drawing partial screen updates. Now an early wakeup is
only allowed if the previous wakeup was not itself early, so typed
character echo is still delivered immediately while streams of small
writes get at most two wakeups per input_delay.

Replace the magic 1024 with SMALL_PENDING_INPUT_THRESHOLD, rename
pending_input_is_interactive() to pending_input_is_small() since the
check has nothing to do with interactivity, clarify the input_delay
option documentation and add a changelog entry.
2026-09-28 11:44:03 +05:30
Kovid Goyal
b5fc667d1a
Merge branch 'input-delay-interactive-wake' of https://github.com/j-c-m/kitty 2026-09-28 10:40:28 +05:30
Kovid Goyal
dfa9c097e2
Cleanup previous PR ensuring stale saved restore tabis not present 2026-09-28 10:40:15 +05:30
Jiamu Sun
9ef5b44ca6 macOS: Remove unused application launch state
189d78283c introduced the application_has_finished_launching variable,
but it's never read. This causes a compile error on macOS 26.6.2 with
Clang 23.1.2.

Remove the unused variable and assignment so the source can be compiled.

Signed-off-by: Jiamu Sun <39@barroit.sh>
2026-09-28 14:01:18 +09:00
Kovid Goyal
a893ed373c
Merge branch 'fix/tab-drag-restore-focus' of https://github.com/xiaobai050/kitty 2026-09-28 10:29:55 +05:30
白鸽
ab8ef49c02 Restore active tab after same-window tab reordering 2026-09-28 12:55:26 +08:00
Kovid Goyal
132d00dd09
Workaround for AMD GPU driver bug in macOS
Fixes #10549
2026-09-28 09:34:47 +05:30
Kovid Goyal
7b94541088
Merge branch 'dependabot/github_actions/actions-71fcf20ecc' of https://github.com/kovidgoyal/kitty 2026-09-28 09:23:01 +05:30
Kovid Goyal
6375e1d5e9
Merge branch 'dependabot/go_modules/all-go-deps-d59bccdee1' of https://github.com/kovidgoyal/kitty 2026-09-28 09:22:45 +05:30
dependabot[bot]
5b5908bec6
Bump github/codeql-action from 4.38.0 to 4.38.1 in the actions group
Bumps the actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).


Updates `github/codeql-action` from 4.38.0 to 4.38.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v4.38.0...v4.38.1)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.38.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-28 03:44:23 +00:00
dependabot[bot]
62fbdfd6b8
Bump the all-go-deps group with 3 updates
Bumps the all-go-deps group with 3 updates: [github.com/bmatcuk/doublestar/v4](https://github.com/bmatcuk/doublestar), [github.com/ebitengine/purego](https://github.com/ebitengine/purego) and [github.com/ulikunitz/xz](https://github.com/ulikunitz/xz).


Updates `github.com/bmatcuk/doublestar/v4` from 4.10.0 to 4.10.2
- [Release notes](https://github.com/bmatcuk/doublestar/releases)
- [Commits](https://github.com/bmatcuk/doublestar/compare/v4.10.0...v4.10.2)

Updates `github.com/ebitengine/purego` from 0.11.0 to 0.11.1
- [Release notes](https://github.com/ebitengine/purego/releases)
- [Commits](https://github.com/ebitengine/purego/compare/v0.11.0...v0.11.1)

Updates `github.com/ulikunitz/xz` from 0.5.16 to 0.5.17
- [Commits](https://github.com/ulikunitz/xz/compare/v0.5.16...v0.5.17)

---
updated-dependencies:
- dependency-name: github.com/bmatcuk/doublestar/v4
  dependency-version: 4.10.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-go-deps
- dependency-name: github.com/ebitengine/purego
  dependency-version: 0.11.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-go-deps
- dependency-name: github.com/ulikunitz/xz
  dependency-version: 0.5.17
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-go-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-28 03:43:00 +00:00
Kovid Goyal
dc37ed4c6a
macOS: Fix a regression in the previous release causing :opt:background_opacity less than one with no :opt:background_blur making the titlebar transparent
Fixes #10540
Fixes #10547
2026-09-28 08:51:38 +05:30
Kovid Goyal
9dc260b578
Remove flicker between bundle and custom icon after dock progress bar is hidden 2026-09-28 08:13:39 +05:30
Kovid Goyal
70670081b6
Dont exclude all leading dor files from rsync only the two cache dirs 2026-09-28 07:49:14 +05:30
Kovid Goyal
6ad2a3aee7
Fix heap buffer underflow in shlex parser 2026-09-28 07:35:08 +05:30
Kovid Goyal
6cbad03446
Fix file transfer confirmation bypass with empty password configured 2026-09-28 07:18:10 +05:30
Kovid Goyal
0762c21c44
Cleanup previous PR
Use Unicode word boundaries with the stdlib regexp engine

Go's regexp only treats ASCII characters as word characters for \b, while
regexp2 uses Unicode ones, so switching the builtin path pattern to the
stdlib engine changed which paths were marked next to non-ASCII text, for
example config.yaml文件 marked config.yaml. Match against a proxy of the
text in which every non-ASCII rune is replaced by a single ASCII byte that
is a word character iff the rune is one, then map the offsets back.
2026-09-28 06:55:24 +05:30
Kovid Goyal
a6afadb365 Merge branch 'hints-stdlib-regexp' of https://github.com/4RH1T3CT0R7/kitty 2026-09-28 06:53:41 +05:30
Kovid Goyal
c355c40199
Merge branch 'fix/diff-search-eol' of https://github.com/4RH1T3CT0R7/kitty 2026-09-28 06:43:01 +05:30
Kovid Goyal
c4e1a9572b
Merge branch 'fix/session-option-boundary' of https://github.com/M-Hassan-Raza/kitty 2026-09-28 06:35:47 +05:30
Jesse Miller
b0d3d1b4c0 Skip input_delay when pending program output is under 1 KiB
Interactive pending input wakes the main thread and is parsed immediately.
Larger reads still wait and coalesce based on input_delay.
2026-09-27 14:14:39 -06:00
Artem Lytkin
f6e276c1e7 diff kitten: Fix search missing matches at the end of a line
find_matches_in_lines was passing the exclusive end offset of a match to
find_pos, so a match ending at the end of the joined screen lines mapped
to no line and was dropped. It was not highlighted, not counted and n/N
skipped it. Since screen lines are not padded, this hit any match on the
last character of a line, for example searching for foo in "x := foo".

Look up the line holding the last matched byte instead.
2026-09-27 12:39:13 +03:00
Hassan Raza
666a7190d4
Use parsed command boundary for session expansion 2026-09-27 11:43:56 +05:00
Kovid Goyal
4136c93c38
Merge branch 'fix/launch-color-accumulation' of https://github.com/M-Hassan-Raza/kitty
Some checks are pending
CI / Linux (python=3.14 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.13 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
CodeQL / CodeQL-Build (actions, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, macos-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (go, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (python, ubuntu-latest) (push) Waiting to run
Depscan / Scan dependencies for vulnerabilities (push) Waiting to run
2026-09-27 11:38:27 +05:30
Hassan Raza
2c1262f76c
Preserve transparency across launch color overrides 2026-09-27 10:59:19 +05:00
Kovid Goyal
74e0c47c49
Merge branch 'fix/ssh-extra-option-state' of https://github.com/M-Hassan-Raza/kitty 2026-09-27 11:21:36 +05:30
Artem Lytkin
0ceca31ef1 hints kitten: Use Go's stdlib regexp for the builtin patterns
regexp2 backtracks on the path pattern, retrying it at every position
of a long line that has no spaces, so the path and linenum types took
seconds on a screen full of such text (about 36s for a 380x100 window
of hex). The builtin patterns dont need lookarounds, so use the linear
time stdlib engine for them. User supplied --regex patterns stay on
regexp2 so lookarounds keep working (#6265).
2026-09-27 00:09:06 +03:00
Hassan Raza
c7c0f00d0c
Reset SSH extra option state after its value 2026-09-26 22:00:26 +05:00
Kovid Goyal
b8c48043b6
Merge branch 'test-decrqss-no-echo' of https://github.com/belt/kitty
Some checks are pending
CI / Linux (python=3.14 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.13 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
CodeQL / CodeQL-Build (actions, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, macos-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (go, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (python, ubuntu-latest) (push) Waiting to run
Depscan / Scan dependencies for vulnerabilities (push) Waiting to run
2026-09-26 20:45:49 +05:30
belt
76e6f69588 Add regression test for invalid DECRQSS queries 2026-09-26 10:37:44 -04:00
Kovid Goyal
8a5d98b7bb
Merge branch 'fix/tab-hover-timer-reset' of https://github.com/xiaobai050/kitty
Some checks are pending
CI / Linux (python=3.14 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.13 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
CodeQL / CodeQL-Build (actions, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, macos-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (go, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (python, ubuntu-latest) (push) Waiting to run
Depscan / Scan dependencies for vulnerabilities (push) Waiting to run
2026-09-26 16:45:31 +05:30
白鸽
719849f4fc Fix tab hover switching during tab drags
Window drop previews are cleared before tab drop previews on each tab drag
update. With the shared hover state, this cancels the tab hover timer on every
update, preventing the 0.6 second tab switch.

Preserve a tab hover timer when clearing a window drop preview. Keep the
existing cancellation behavior for window drags and cover the regression.
2026-09-26 19:06:18 +08:00
Kovid Goyal
409fd06cc3
autoformat 2026-09-26 15:51:14 +05:30
Kovid Goyal
d63d7ef643
Drag and drop: Fix issues in tab hover switching and insertion
- Dropping a tab on the tab bar always re-orders. Only windows are merged
  into a tab when dropped on its middle. Single window tabs still switch
  tabs on hover so they can be dropped into the content area.
- Draw the vertical insertion marker in the blank line between tabs so it
  does not hide a tab title, using a single cell only when crowded.
- Make the dropped tab active after a drop from another OS Window, instead
  of whichever tab ended up at the stale active index after re-ordering.
- Dropping the window of a single window tab at an insertion point moves
  its tab, preserving title and layout, and is a no-op next to itself.
- Do not leave an empty tab behind if moving a dropped window fails.
- Highlight the new tab button only when appending.
- Unify the window and tab drag hover state and share the tab bar drop
  hit testing code.
2026-09-26 15:50:52 +05:30
白鸽
6155d085d2 Drag and drop: Switch tabs on hover and preview tab insertion 2026-09-26 14:32:37 +05:30
Kovid Goyal
a3448645be
add cursor trail motio blur demo video 2026-09-26 12:49:07 +05:30
Kovid Goyal
d7cd5a18c2
Cleanup previous PR on motion blur
Move it into a separate shader
2026-09-26 12:36:01 +05:30
Kovid Goyal
0c9e4c283c
remove unused code 2026-09-26 12:19:15 +05:30
Kovid Goyal
3741b56760
Merge branch 'cursor-trail-motion-blur' of https://github.com/drone1/kitty 2026-09-26 12:18:05 +05:30
Kovid Goyal
14e5d94efe
Allow specifying regexes for URL matching on hover
Some checks are pending
CI / Linux (python=3.14 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.13 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
CodeQL / CodeQL-Build (actions, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, macos-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (go, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (python, ubuntu-latest) (push) Waiting to run
Depscan / Scan dependencies for vulnerabilities (push) Waiting to run
Fixes #10518
2026-09-26 11:08:43 +05:30
Kovid Goyal
78292b4286
macOS: Re-apply custom dock icon if any after progress bar animation
Work around for macOS in some versions reverting custom icon when
content view for icon is set to nil.

Fixes #10545
2026-09-26 09:17:34 +05:30
Kovid Goyal
5f05ab7e00
Merge branch 'perf/subseq-dp' of https://github.com/4RH1T3CT0R7/kitty 2026-09-26 07:55:16 +05:30
Kovid Goyal
3aed8ffee3
Merge branch 'perf/word-diff-memory' of https://github.com/4RH1T3CT0R7/kitty 2026-09-26 07:46:59 +05:30
Kovid Goyal
b24ef1f72f
Nicer error handling for failure to launch panels
Fix #10544
2026-09-26 07:37:58 +05:30