Commit Graph

16411 Commits

Author SHA1 Message Date
Kovid Goyal
148d60b9ea Make CodeQL happy 2025-09-16 07:57:33 +05:30
Kovid Goyal
d647e21779 Use the bundle for CodeQL builds
Speeds up the dependency fetch and hopefully fixes the failure on macOS
2025-09-16 07:36:00 +05:30
Kovid Goyal
96253f4798 Also run CodeQL for C on macOS to improve coverage 2025-09-16 07:21:48 +05:30
Kovid Goyal
1d37ef84ce Run CodeQL analysis for different languages in parallel 2025-09-16 07:11:13 +05:30
Kovid Goyal
cc19bb4934 Merge branch 'unset' of https://github.com/smurfix/kitty 2025-09-15 14:26:29 +05:30
Matthias Urlichs
8335b340c9 Fix bash integration when 'set -o nounset' is in effect
If the user's bash profile contains 'set -u' / 'set -o nounset'
(to protect against typos in variable names; think "rm -Rf $TMp/*"),
starting a new kitty terminal resulted in a
    bash: sourced: unbound variable
message. Also, the error disabled kitty's shell integration.

This PR fixes/supersedes bba4ce22, which was based on an incorrect
assumption.
2025-09-15 10:40:36 +02:00
Kovid Goyal
4afe56b808 Merge branch 'dependabot/github_actions/actions-d99736fca3' of https://github.com/kovidgoyal/kitty 2025-09-15 12:04:02 +05:30
dependabot[bot]
04a8a60a87 Bump the actions group with 4 updates
Bumps the actions group with 4 updates: [actions/checkout](https://github.com/actions/checkout), [actions/setup-python](https://github.com/actions/setup-python), [actions/setup-go](https://github.com/actions/setup-go) and [actions/cache](https://github.com/actions/cache).


Updates `actions/checkout` from 3 to 5
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v5)

Updates `actions/setup-python` from 4 to 6
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v6)

Updates `actions/setup-go` from 3 to 6
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3...v6)

Updates `actions/cache` from 3 to 4
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/setup-go
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/cache
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-15 06:26:51 +00:00
Kovid Goyal
8b946d906b Have dependabot update GitHub actions as well 2025-09-15 11:34:02 +05:30
Kovid Goyal
3d0ec1c684 Only skip invalid UTF8 tests when actually using SIMD 2025-09-15 08:59:03 +05:30
Kovid Goyal
5d9a28f7a1 Move utf8_parsing tests to simd_decode
More robust as the tests are run against all three SIMD modes, no SIMD,
128bit and 256 bit
2025-09-15 08:53:03 +05:30
Kovid Goyal
ee4ce5b0ab Merge branch 'dependabot/go_modules/all-go-deps-d7e8f336a0' of https://github.com/kovidgoyal/kitty 2025-09-15 08:48:12 +05:30
Kovid Goyal
42aa5957a5 Comment out all the failing invalid UTF-8 tests 2025-09-15 08:43:58 +05:30
dependabot[bot]
21f103e6ca Bump the all-go-deps group with 2 updates
Bumps the all-go-deps group with 2 updates: [golang.org/x/image](https://github.com/golang/image) and [golang.org/x/text](https://github.com/golang/text).


Updates `golang.org/x/image` from 0.30.0 to 0.31.0
- [Commits](https://github.com/golang/image/compare/v0.30.0...v0.31.0)

Updates `golang.org/x/text` from 0.28.0 to 0.29.0
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.28.0...v0.29.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-version: 0.31.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-go-deps
- dependency-name: golang.org/x/text
  dependency-version: 0.29.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-go-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-15 03:12:30 +00:00
Kovid Goyal
d19f305b12 Merge branch 'ucs' of https://github.com/Wukuyon/kitty 2025-09-15 08:14:55 +05:30
Wukuyon
542c425488 test_utf8_parsing: Add more tests for UTF-8 maximal subpart replacement 2025-09-14 16:50:38 -06:00
Wukuyon
346384351e test_utf8_parsing: Add comments describing each assertion 2025-09-14 16:33:53 -06:00
Wukuyon
91bca3357b Text sizing protocol docs: Make code point notation more consistent 2025-09-14 15:22:05 -06:00
Kovid Goyal
17620fe09e ... 2025-09-14 21:31:43 +05:30
Kovid Goyal
d0ff9be76c Add a note on typical timelines for security incident responses 2025-09-14 21:13:32 +05:30
Kovid Goyal
aa89e696ae Make CodeQL happy 2025-09-14 20:24:03 +05:30
Kovid Goyal
68eee50aee Make scrollbar wider when mouse hovers over it 2025-09-14 19:20:10 +05:30
Kovid Goyal
e397239076 Change mouse cursor shape while dragging scrollbar 2025-09-14 19:13:12 +05:30
Kovid Goyal
80260e6eb1 Move back to individual settings for scrollbar
We need to split out the color settings so that they can be set in
themes anyway, so ...
2025-09-14 17:48:59 +05:30
Kovid Goyal
6caa550efd DRYer 2025-09-14 14:56:02 +05:30
Kovid Goyal
939e8e2047 Finish documenting the scrollbar settings 2025-09-14 14:40:14 +05:30
Kovid Goyal
efccfd51b3 Refactor scrollbar mouse handlers into a block 2025-09-14 13:26:04 +05:30
Kovid Goyal
4e560fb432 Fix dragging onto last cell not working because of scrollbar 2025-09-14 13:19:10 +05:30
Kovid Goyal
3483c615f8 Update changelog 2025-09-14 13:13:17 +05:30
Kovid Goyal
a78fb1a655 Increase default radius slightly 2025-09-14 13:11:09 +05:30
Kovid Goyal
03537ee902 Use the new scrollbar settings 2025-09-14 13:02:40 +05:30
Kovid Goyal
1e13050fda Nicer debug output for scrollbar option 2025-09-14 12:26:25 +05:30
Kovid Goyal
77e22523ec Start work on consolidating scrollbar settings into one option 2025-09-14 12:14:27 +05:30
Wukuyon
2514178abe Adjust text sizing protocol docs: UTF-8 decoding and precise terminology
This commit makes the following changes to the text sizing protocol's docs, to describe Kitty's current Unicode behavior more precisely in the text sizing protocol docs (#8533).

These changes describe **behavior that Kitty *already* has**. It does not require any changes to any actual Kitty source code. (I don't know if Foot currently matches this behavior.)

1. The algorithm for splitting text into cells now uses the phrases
"code point" or "Unicode scalar value" instead of "Unicode character",
which is an ambiguous phrase.

2. The algorithm now requires that the terminal uses UTF-8 to decode the bytes it receives into Unicode scalar values.

3. The algorithm now requires that the terminal replace each maximal subpart of any ill-formed subsequence with U+FFFD REPLACEMENT CHARACTER (�).
2025-09-13 22:49:01 -06:00
Kovid Goyal
a6e64845ef Merge branch 'master' of https://github.com/lxe/kitty into scrollbar 2025-09-14 09:48:08 +05:30
Kovid Goyal
bc3853dfac Merge branch 'master' of https://github.com/smurfix/kitty 2025-09-13 19:30:17 +05:30
Matthias Urlichs
bba4ce2286 Don't complain about unset 'sourced'
If the user's bash profile contains 'set -u' (to protect against typos
in variable names; think "rm -Rf $TMp/*"), starting a new kitty terminal
resulted in a spurious `bash: sourced: unbound variable` message.
2025-09-13 11:51:51 +02:00
Kovid Goyal
c28819710b Merge branch 'blackcat' of https://github.com/j-c-m/kitty 2025-09-13 07:22:07 +05:30
Kovid Goyal
fe22312602 Make mypy happy 2025-09-13 07:21:31 +05:30
Kovid Goyal
69ba320db9 Fix some typos in the example table for legacy key encoding
Fixes #8967
2025-09-13 06:55:52 +05:30
Jesse Miller
9e9af32a07 Add 'blackcat' a modern compatible cat with image support 2025-09-12 19:23:34 -06:00
Kovid Goyal
4abea6c981 Add SPDX license identifiers for all dependencies 2025-09-10 00:02:08 +05:30
Kovid Goyal
5e3c5e8488 Update Security.md to note that GitHub security advisories can be used 2025-09-09 22:29:00 +05:30
Aleksey Smolenchuk
65a4d89282 Interactive scrollbar implementation 2025-09-08 11:33:15 -07:00
Kovid Goyal
0d2b44ce17 Make go vet happy 2025-09-08 10:08:37 +05:30
Kovid Goyal
b7e5f66796 Merge branch 'dependabot/go_modules/all-go-deps-3babb76db8' of https://github.com/kovidgoyal/kitty 2025-09-08 08:52:30 +05:30
dependabot[bot]
f433ada6c2 Bump golang.org/x/sys from 0.35.0 to 0.36.0 in the all-go-deps group
Bumps the all-go-deps group with 1 update: [golang.org/x/sys](https://github.com/golang/sys).


Updates `golang.org/x/sys` from 0.35.0 to 0.36.0
- [Commits](https://github.com/golang/sys/compare/v0.35.0...v0.36.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-go-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 03:04:24 +00:00
Kovid Goyal
4237644b86 Merge branch 'ab/push-lykkumlnllww' of https://github.com/poliorcetics/kitty 2025-09-07 04:21:18 +05:30
Alexis (Poliorcetics) Bourget
4cccf929eb fix: when parsing python_strings options, don't fail if ' is last
Previously, if the last character was `'` parsing would fail: from `abc'`
it would produce the literal `'''abc''''`, which has one too many
unescaped single quote at the end.

This also fixes the issue for solo `'''`, where before it would produce
`''''\\'''''`, again with one too many single quote at the end.

I added tests for both cases.
2025-09-06 20:33:15 +02:00
Kovid Goyal
d837a64e36 Workaround for latest Apple regression in Tahoe
Now NSWindow::close no longer actually closes the window. Sigh. Have to
also set its frame to zero size, otherwise an invisible rect remains
that intercepts mouse events and takes up space in Mission Control.

Life is too short for this shit. Fixes #8952
2025-09-05 17:27:46 +05:30