15647 Commits

Author SHA1 Message Date
Kovid Goyal
2f8c392571 Cleanup reading of argv from files 2025-04-28 09:52:26 +05:30
Kovid Goyal
5c9c8aa424 Add unit testing for launcher code 2025-04-28 09:25:25 +05:30
Kovid Goyal
a484d6928e Avoid multiple CLI parses just to check subcommands 2025-04-28 09:20:11 +05:30
Kovid Goyal
459d2d8649 DRYer 2025-04-28 09:20:11 +05:30
Kovid Goyal
b0ae88ada9 Wire up the codegen C cli parser 2025-04-28 09:20:11 +05:30
Kovid Goyal
3dc85838c8 ... 2025-04-28 09:20:11 +05:30
Kovid Goyal
648dfec8a9 Fix re-compile of launcher on change not happening 2025-04-28 09:20:11 +05:30
Kovid Goyal
280baa224d Preserve original argv optionally 2025-04-28 09:20:11 +05:30
Kovid Goyal
1413d8fb85 Fix handling of --help and --version 2025-04-28 09:20:11 +05:30
Kovid Goyal
9961bdf6b5 Fix set_err 2025-04-28 09:20:11 +05:30
Kovid Goyal
e3f7948ee4 Convenience functions to use in launcher code 2025-04-28 09:20:10 +05:30
Kovid Goyal
27c5b6aac5 Generate option parser in C for kitty CLI 2025-04-28 09:20:10 +05:30
Kovid Goyal
0a288ad56c Fix memleak in CLISpec 2025-04-28 09:20:10 +05:30
Kovid Goyal
7c10ed92f7 DRYer 2025-04-28 09:20:10 +05:30
Kovid Goyal
40f0f3d3eb Use a simple arena allocator for CLISpec 2025-04-28 09:20:10 +05:30
Kovid Goyal
d548a6fcf4 rename typing module to avoid conflicts with stdlib typing 2025-04-28 09:20:10 +05:30
Kovid Goyal
e42d410ee4 Move cli spec parsing code into simple module 2025-04-28 09:20:10 +05:30
Kovid Goyal
62699f6799 Get basic C cli parsing working 2025-04-28 09:20:10 +05:30
Kovid Goyal
527f30ffcc Start work on moving full command line parsing to native code 2025-04-28 09:20:10 +05:30
Kovid Goyal
22d8edf7fc Merge branch 'dependabot/go_modules/all-go-deps-12cc37cc08' of https://github.com/kovidgoyal/kitty 2025-04-28 09:19:57 +05:30
dependabot[bot]
7ddbb3cc67 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.16.0 to 2.17.0
- [Release notes](https://github.com/alecthomas/chroma/releases)
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml)
- [Commits](https://github.com/alecthomas/chroma/compare/v2.16.0...v2.17.0)

---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
  dependency-version: 2.17.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-04-28 03:44:55 +00:00
Kovid Goyal
01415eb84c macOS: Fix text color in visual window select ignoring the color theme
Fixes #8579
2025-04-27 19:49:51 +05:30
Kovid Goyal
598f9b9dac Merge branch 'k-nine' of https://github.com/talwrii/kitty 2025-04-27 18:49:37 +05:30
Tal Wrii
c7111ec877 remove detail 2025-04-27 14:03:31 +02:00
Kovid Goyal
056e7532f6 ... 2025-04-27 10:46:06 +05:30
Kovid Goyal
65d97e2379 Use os_log to report get_argv failures on Apple 2025-04-27 10:42:43 +05:30
Kovid Goyal
9ff9e50936 Also handle EINTR for fclose 2025-04-27 10:21:15 +05:30
Kovid Goyal
41899aab14 Dont prevent kitty fro starting on failure to read macos-launch-services-cmdline
Fixes #8581
2025-04-27 10:16:40 +05:30
Tal Wrii
3bf6a62a67 Add k-nine plotting tool to the integrations documentation 2025-04-27 02:24:06 +02:00
Kovid Goyal
45f4b8ec26 ... 2025-04-26 09:43:47 +05:30
Kovid Goyal
9b433a598d Add to help text indicating bool options can be explicity specified 2025-04-26 09:21:22 +05:30
Kovid Goyal
3f00dc1c9e Work on improving CLI parsing
Can now set bool values explicitly with =
Handle multi short flag args like -abc
Add unit tests for CLI parsing
Generate go code to serialize CLI options as a cmdline

TODO: Implement setting of bool vals in C and Go parsing code
TODO: Help/rst output should somehow indicate this feature
2025-04-26 09:01:54 +05:30
Kovid Goyal
2093fb1310 Fix handling of empty quoted string in shlex 2025-04-26 08:55:32 +05:30
Kovid Goyal
e942bc817b Use correct service descriptions 2025-04-26 06:39:21 +05:30
Kovid Goyal
54d63c4ad2 Fix freezing of quick-access sub app 2025-04-25 22:09:05 +05:30
Kovid Goyal
20dacd2398 Fix signing of quick access sub-app 2025-04-25 21:26:17 +05:30
Kovid Goyal
f270a17c70 Fix freezing of quick access sub-bundle 2025-04-25 21:10:19 +05:30
Kovid Goyal
50b044f8a2 Allow popup menus from global menubar to function 2025-04-25 20:41:44 +05:30
Kovid Goyal
31b74e1c63 Use a timeout for ignoring initial quack access service event 2025-04-25 20:36:58 +05:30
Kovid Goyal
189d78283c Get the quake terminal working on macOS 2025-04-25 20:27:26 +05:30
Kovid Goyal
610d6b8654 Exclude various analysis caches to VM 2025-04-25 15:50:01 +05:30
Kovid Goyal
c34399e051 Include wrapper script as comment 2025-04-25 15:46:48 +05:30
Kovid Goyal
2fcefbaa0e Centralize maintenance of rsync script 2025-04-25 15:38:57 +05:30
Kovid Goyal
4631348016 ... 2025-04-25 14:48:53 +05:30
Kovid Goyal
7bd7709685 Move parsing of macos-launch-services-cmdline into native code
Avoids expensive re-exec and simplifies various things. Much faster
for single instance usage.
2025-04-25 14:39:36 +05:30
Kovid Goyal
639ad3e8a6 Make shlex code re-useable in launcher 2025-04-25 09:35:42 +05:30
Kovid Goyal
9f11782920 DRYer 2025-04-25 07:43:19 +05:30
Kovid Goyal
1f9a5647d4 Handle kitty code being imported into a non kitty python interpreter
Used by sphinx doc generation.
2025-04-25 07:29:42 +05:30
Kovid Goyal
5b1dfadd0b ... 2025-04-25 07:18:13 +05:30
Kovid Goyal
4e7418f2f1 Have makedirs operate on abspaths
clean() wont work with paths that use .. to go to
levels above the root of the passed in path.
2025-04-24 21:51:46 +05:30