22 Commits

Author SHA1 Message Date
Kovid Goyal
ba96fa06fe Allow using defer in KittenMain 2025-09-30 11:20:37 +05:30
Kovid Goyal
d5534b6238 Add conf file for desktop-ui kitten 2025-07-01 13:26:39 +05:30
Kovid Goyal
c861259e3b Rename go module from kitty -> github.com/kovidgoyal/kitty
Makes the code more easily re-useable in other projects
2025-05-16 08:43:39 +05:30
Kovid Goyal
5d0dabe51c completion: match exe on basename alone 2023-10-10 05:22:40 +05:30
Eng Zer Jun
77563cebb0 cli/command: remove redundant nil check
From the Go specification:

  "1. For a nil slice, the number of iterations is 0." [1]

Therefore, an additional nil check for before the loop is unnecessary.

[1]: https://go.dev/ref/spec#For_range

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-08-30 11:50:52 +08:00
Kovid Goyal
341d845b9a Port calls to slices.Sort functions since they now need a cmp() function rather than a less() function
Also rename os.SEEK_* to io.Seek* as the former has been deprecated
2023-08-04 22:50:13 +05:30
Kovid Goyal
ab10070ee8 kittens: Fix errors not being reported to user when run a UI kitten
Fixes #6403
2023-06-29 07:36:24 +05:30
Kovid Goyal
0e73c01093 readline: Automatically do word completion based on history 2023-03-07 16:44:02 +05:30
Kovid Goyal
407555c6c8 Get completion working for kitten ssh 2023-02-26 08:01:02 +05:30
Kovid Goyal
590c1bd7ad dont parse args for the ssh kitten as it will do so itself 2023-02-26 08:01:02 +05:30
Kovid Goyal
9bdb647454 kitty @ shell: Fix global options being ignored
Also no need to exec a separate process for every command
2023-02-04 12:54:49 +05:30
Kovid Goyal
2b66775f45 explicitly ignore a few errors 2022-12-13 16:19:46 +05:30
Kovid Goyal
4d3f3b5e91 Start moving clipboard kitten to kitty-tool 2022-11-25 12:58:10 +05:30
Kovid Goyal
e536ef7844 Suggestions for sub command names as well 2022-11-14 15:42:03 +05:30
Kovid Goyal
0dab006733 Allow un-ambiguous prefixes for command names 2022-11-14 15:42:03 +05:30
Kovid Goyal
75ead358a2 Show suggestions for options based on levenshtein distance 2022-11-14 15:42:03 +05:30
Kovid Goyal
74b1cac344 Allow using unabiguous long option prefixes 2022-11-14 15:42:03 +05:30
Kovid Goyal
3bd4fd999a All completion tests pass again 2022-11-14 15:42:02 +05:30
Kovid Goyal
262e2fb7a3 Various fixes from the completion merge 2022-11-14 15:42:02 +05:30
Kovid Goyal
97716fea8b More work on merging completions with parse tree 2022-11-14 15:42:02 +05:30
Kovid Goyal
bf74413c1f Work on merging completion tree with parse tree 2022-11-14 15:42:02 +05:30
Kovid Goyal
79ca0408e7 split up types.go 2022-11-14 15:42:02 +05:30