Remaining fixes from #5962

Fixes #5962
This commit is contained in:
Kovid Goyal 2023-02-01 10:26:53 +05:30
parent fbbfb25702
commit 414ca86e3f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
4 changed files with 4 additions and 3 deletions

View File

@ -79,6 +79,7 @@ def kitty_exe() -> str:
return os.path.join(rpath, 'kitty')
@run_once
def kitten_exe() -> str:
return os.path.join(os.path.dirname(kitty_exe()), 'kitten')

View File

@ -156,7 +156,7 @@ function __ksi_schedule --on-event fish_prompt -d "Setup kitty integration after
end
end
function edit-in-kitty --wraps "kitten edit-in-kitty"
function edit-in-kitty --wraps "kitten edit-in-kitty" -d "Edit the specified file in a kitty overlay window with your locally installed editor"
kitten edit-in-kitty $argv
end

View File

@ -235,7 +235,7 @@ type Options struct {
func EntryPoint(parent *cli.Command) *cli.Command {
sc := parent.AddSubCommand(&cli.Command{
Name: "edit-in-kitty",
Usage: "edit-in-kitty [options] file-to-edit",
Usage: "[options] file-to-edit",
ShortDescription: "Edit a file in a kitty overlay window",
HelpText: "Edit the specified file in a kitty overlay window. Works over SSH as well.\n\n" +
"For usage instructions see: https://sw.kovidgoyal.net/kitty/shell-integration/#edit-file",

View File

@ -18,7 +18,7 @@ var _ = fmt.Print
func KittyToolEntryPoints(root *cli.Command) {
root.Add(cli.OptionSpec{
Name: "--version", Type: "bool-set", Help: "The current kitty version."})
Name: "--version", Type: "bool-set", Help: "The current kitten version."})
// @
at.EntryPoint(root)
// update-self