Commit graph

18494 commits

Author SHA1 Message Date
Kovid Goyal
72e88fccd7
More work on slang compilation 2026-07-03 11:12:06 +05:30
Kovid Goyal
8142a84573
More work on integrating slangc into the build pipeline 2026-07-03 11:12:06 +05:30
Kovid Goyal
e4aa2b6fe4
Setup location for compiled shaders 2026-07-03 11:12:06 +05:30
Kovid Goyal
16e7d70f1b
Function to build slang code to IR 2026-07-03 11:12:06 +05:30
copilot-swe-agent[bot]
829da7a3fc
Fix parser to strip semicolons from module/import names; update tests 2026-07-03 11:12:06 +05:30
copilot-swe-agent[bot]
2e99bfa85d
Add slang parser corner case tests and implement test_slang_ordering 2026-07-03 11:12:06 +05:30
Kovid Goyal
a84fe4d35e
Work on generating build tree for slang files 2026-07-03 11:12:06 +05:30
Kovid Goyal
40b115bea2
Use the slangc binary instead trying to get the C++ extension working everywhere is too fragile 2026-07-03 11:12:06 +05:30
Kovid Goyal
be2de20eee
Add build test for loading slangc 2026-07-03 11:12:06 +05:30
Kovid Goyal
91d5c810b5
Get slangc building with clang 2026-07-03 11:12:05 +05:30
Kovid Goyal
55e39aa5f5
... 2026-07-03 11:12:05 +05:30
Kovid Goyal
feb22ff7ce
More work on slangc 2026-07-03 11:12:05 +05:30
Kovid Goyal
ebba5a7467
... 2026-07-03 11:12:05 +05:30
Kovid Goyal
5cb71953c4
Move glsl loading code to legacy 2026-07-03 11:12:05 +05:30
Kovid Goyal
eb4e0cc04a
Move shader pythons code into shaders package 2026-07-03 11:12:05 +05:30
Kovid Goyal
6b3206a15e
Move shaders into kitty package 2026-07-03 11:12:05 +05:30
Kovid Goyal
bd53daa213
Rationalize build/test/package cycle 2026-07-03 11:12:05 +05:30
Kovid Goyal
5b1e80ed79
Remove unneeded build step 2026-07-03 11:12:05 +05:30
Kovid Goyal
8d50293512
Work on slang module compilation 2026-07-03 11:12:05 +05:30
Kovid Goyal
2b7899b53a
Stub slang module 2026-07-03 11:12:05 +05:30
Kovid Goyal
6ee80d7f97
DRYer 2026-07-03 11:12:05 +05:30
copilot-swe-agent[bot]
ba8bd784e6
Use GITHUB_TOKEN for slang release API request to avoid rate limits 2026-07-03 11:12:05 +05:30
copilot-swe-agent[bot]
fd134b4b10
Address code review: use url=None, add TypeError comment 2026-07-03 11:12:04 +05:30
copilot-swe-agent[bot]
8a21f067da
Implement install_slang_compiler() in ci.py 2026-07-03 11:12:04 +05:30
Kovid Goyal
73158bd4b6
Stub for installation of slang on CI 2026-07-03 11:12:04 +05:30
Kovid Goyal
93e55e86e2
Add slang to sources 2026-07-03 11:12:04 +05:30
Kovid Goyal
4feb167e99
Cleanup previous PR
Some checks are pending
CI / Linux (python=3.13 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.11 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.12 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-07-03 11:08:14 +05:30
Kovid Goyal
28cbe0188d
Merge branch 'copilot/fix-tab-bar-border-edges' of https://github.com/kovidgoyal/kitty 2026-07-03 11:08:09 +05:30
copilot-swe-agent[bot]
0b27865625
Address review comments: clarify reversed reset and vertical NULL params 2026-07-03 04:05:40 +00:00
copilot-swe-agent[bot]
6fb8ff1829
Fix tab bar edge strips: use bg when edge cell has default color 2026-07-03 04:01:56 +00:00
Kovid Goyal
9e92c57af3
Bump dependency for CVE 2026-07-03 09:07:55 +05:30
Kovid Goyal
3313e5a6be
Ignore inapplicable CVE 2026-07-03 08:58:07 +05:30
Kovid Goyal
d86da26069
Merge branch 'copilot/fix-issue-10212' of https://github.com/kovidgoyal/kitty
Fixes #10212
2026-07-03 08:33:13 +05:30
copilot-swe-agent[bot]
d68608b35a
Fix tab bar edge strips rendered with opacity < 1 when background_opacity < 1 2026-07-03 02:56:41 +00:00
copilot-swe-agent[bot]
252d8b73f7
Fix superfluous tab bar margin when background_opacity < 1 (issue #10212) 2026-07-03 02:42:28 +00:00
Kovid Goyal
c1d507dbe8
Merge branch 'dependabot/github_actions/actions-77b068c286' of https://github.com/kovidgoyal/kitty
Some checks failed
CI / Linux (python=3.13 cc=clang sanitize=1) (push) Has been cancelled
CI / Linux (python=3.11 cc=gcc sanitize=0) (push) Has been cancelled
CI / Linux (python=3.12 cc=gcc sanitize=1) (push) Has been cancelled
CI / Linux package (push) Has been cancelled
CI / Bundle test (macos-latest) (push) Has been cancelled
CI / Bundle test (ubuntu-latest) (push) Has been cancelled
CI / macOS Brew (push) Has been cancelled
CI / Test ./dev.sh and benchmark (push) Has been cancelled
CodeQL / CodeQL-Build (actions, ubuntu-latest) (push) Has been cancelled
CodeQL / CodeQL-Build (c, macos-latest) (push) Has been cancelled
CodeQL / CodeQL-Build (c, ubuntu-latest) (push) Has been cancelled
CodeQL / CodeQL-Build (go, ubuntu-latest) (push) Has been cancelled
CodeQL / CodeQL-Build (python, ubuntu-latest) (push) Has been cancelled
Depscan / Scan dependencies for vulnerabilities (push) Has been cancelled
2026-06-29 11:51:19 +05:30
Kovid Goyal
2b38afabce
Merge branch 'dependabot/go_modules/all-go-deps-9c5f66ad81' of https://github.com/kovidgoyal/kitty 2026-06-29 11:51:05 +05:30
dependabot[bot]
2ead860607
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 6.0.3 to 7.0.0
- [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/v6.0.3...v7.0.0)

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

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

Updates `actions/cache` from 5 to 5.0.5
- [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/v5...v5.0.5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/setup-python
  dependency-version: 6.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: actions/setup-go
  dependency-version: 6.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: actions/cache
  dependency-version: 5.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-29 03:44:56 +00:00
dependabot[bot]
691a971a70
Bump github.com/alecthomas/chroma/v2 in the all-go-deps group
Bumps the all-go-deps group with 1 update: [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma).


Updates `github.com/alecthomas/chroma/v2` from 2.26.1 to 2.27.0
- [Release notes](https://github.com/alecthomas/chroma/releases)
- [Commits](https://github.com/alecthomas/chroma/compare/v2.26.1...v2.27.0)

---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
  dependency-version: 2.27.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-06-29 03:42:55 +00:00
Kovid Goyal
9cd2c60064
Clean previous PR
Some checks are pending
CI / Linux (python=3.13 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.11 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.12 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-06-29 06:17:08 +05:30
Kovid Goyal
4e0f7faef8
Merge branch 'fix-erase-last-command-multiline-prompt' of https://github.com/slayerlab/kitty 2026-06-29 06:13:36 +05:30
amoena
207b22aa80
fix(erase_last_command): erase the most recent command even empty output
erase_last_command selected the region to erase via find_cmd_output(..., -1),
which anchors on OUTPUT_START (OSC, 133;C). Commands that produce no output
(an empty Enter, a comment, cd, export, etc. -- never emit 133;C, so they were
skipped and an older command-with-output was erased instead. "Erase the last
command" therefore did not erase the last command whenever the most recent ones
has no output.

Select the region by prompt marks instead: erase the prompt block immediately
above the current (live) prompt, whatever it contains. Every submittd command
is now one unit, removed newest-first, one prompt block per invocation.

This also fixes two latent defects in the previous implementation:

* The on-screen deletion was anchored at `cursor->y - count`, which
  assumes the region ends exactly one row above the cursor.
  Multi-line prompts and skipped rows broke that assumption and left
  residual lines. Anchor at the top of the region instead.

* When part of the erased region was in the scrollback, the lines
  were removed from the history buffer but no redraw was signalled,
  so the deletion of the off-screen lines only became visible after
  the next scroll event recomputed the history viewport. Clamp
  scrolled_by to the new history length and call dirty_scroll()
  after shrinking the buffer.

include_prompt is retained for API compatibility but is now a no-op: the
unit erased is always the whole prompt block.
2026-06-28 11:17:01 -03:00
Kovid Goyal
925de17ecb
Update changelog
Some checks are pending
CI / Linux (python=3.13 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.11 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.12 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 #10198
2026-06-28 08:54:04 +05:30
Kovid Goyal
543476f358
Merge branch 'copilot/fix-issue-10198' of https://github.com/kovidgoyal/kitty 2026-06-28 08:52:07 +05:30
Kovid Goyal
e0e01544d1
ignore shaders dir that contains shaders generated by slang 2026-06-28 08:49:08 +05:30
copilot-swe-agent[bot]
21f7e96bef
Address code review: add comment, fallback timer, and warning log for PID monitoring 2026-06-28 03:16:33 +00:00
copilot-swe-agent[bot]
aee532c586
Fix issue 10198: edit-in-kitty exits with editor's exit code
- Python (kitty/launch.py): Track editor PID via monitor_pid to capture
  exit code when editor window closes. Send exit code as data in the DONE
  message instead of sending no data.
- Go (tools/cmd/edit_in_kitty/main.go): Parse exit code from DONE message
  data and use lp.Quit(exit_code) to exit with the editor's exit code.
- Go (tools/cmd/tool/confirm_and_run_shebang.go): Check exit code when
  running edit-in-kitty as a subprocess; abort execution on editor failure.
2026-06-28 03:10:58 +00:00
Kovid Goyal
cd88eb3915
Merge branch 'patch-1' of https://github.com/gelaechter/kitty 2026-06-28 08:20:00 +05:30
Gelaechter
f49c1c79e9
Add pdf-kitten to Kittens created by kitty users 2026-06-28 02:26:16 +02:00
Kovid Goyal
f6d1b11b29
Make arm64 binary deps available for dev.sh
Some checks are pending
CI / Linux (python=3.13 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.11 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.12 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 #10197
2026-06-27 17:29:31 +05:30