Commit Graph

15663 Commits

Author SHA1 Message Date
Kovid Goyal
4d1ddd9439 QAT kitten basically works 2025-04-28 20:10:50 +05:30
Kovid Goyal
5683314784 Start work on quick-access-terminal kitten 2025-04-28 19:52:04 +05:30
Kovid Goyal
83bb1553f7 Allow changing panel CLI defaults 2025-04-28 16:25:53 +05:30
Kovid Goyal
e65031184a Fix panel invocation 2025-04-28 16:10:38 +05:30
Kovid Goyal
9854068a59 Start work on panel kitten wrapper in Go
Needed because we need to use a special exe on macOS.
2025-04-28 16:07:09 +05:30
Kovid Goyal
cd75baccf2 Remove unused code 2025-04-28 15:37:08 +05:30
Kovid Goyal
909b8747d3 Add launcher test for list style options 2025-04-28 13:55:36 +05:30
Kovid Goyal
ead724ee28 DRYer 2025-04-28 13:34:45 +05:30
Kovid Goyal
b0b8e7145c Use a memset instead of a for loop
Works around a GCC bug, see: #8584
2025-04-28 13:22:46 +05:30
Kovid Goyal
7fde51bd8d Avoid double lookups of flag aliases 2025-04-28 12:53:33 +05:30
Kovid Goyal
e698fd274c Release hash ambiguous parsing 2025-04-28 12:45:38 +05:30
Kovid Goyal
14792aa60e Allow partial option matches in C CLI parser as well
Matches behavior of Go parser and is nice to have
2025-04-28 12:43:09 +05:30
Kovid Goyal
d7fb143ee0 Allow explicitly setting boolean options in Go cli parser
Matches C parser
2025-04-28 11:54:51 +05:30
Kovid Goyal
39bf612071 DRYer 2025-04-28 11:33:58 +05:30
Kovid Goyal
92c6d90132 Allow single char options to take =value in kittens
Matches kitty cli parsing behavior
2025-04-28 11:27:33 +05:30
Kovid Goyal
2e64588426 make mypy happy 2025-04-28 10:43:53 +05:30
Kovid Goyal
15781435ae Cleanup reading of argv from files 2025-04-28 09:54:57 +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