From 7292d1c9dffb858477f5267be1b3da3b0febc69b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 21 Oct 2023 07:55:23 +0530 Subject: [PATCH] Clean up mouse-demo kitten Fixes #6738 --- docs/pointer-shapes.rst | 4 ++-- kittens/runner.py | 2 +- {kittens => tools/cmd}/mouse_demo/main.go | 0 tools/cmd/tool/main.go | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) rename {kittens => tools/cmd}/mouse_demo/main.go (100%) diff --git a/docs/pointer-shapes.rst b/docs/pointer-shapes.rst index facbd0d50..0b3482494 100644 --- a/docs/pointer-shapes.rst +++ b/docs/pointer-shapes.rst @@ -32,7 +32,7 @@ First some examples:: To demo the various shapes, simply run the following command inside kitty:: - kitten mouse_demo + kitten mouse-demo For more details see below. @@ -160,7 +160,7 @@ characters from the set ``a-z0-9_-``. To demo the various shapes, simply run the following command inside kitty:: - kitten mouse_demo + kitten mouse-demo Legacy xterm compatibility ---------------------------- diff --git a/kittens/runner.py b/kittens/runner.py index 5b4bbafd5..3cee69fbd 100644 --- a/kittens/runner.py +++ b/kittens/runner.py @@ -133,7 +133,7 @@ def run_kitten(kitten: str, run_name: str = '__main__') -> None: def all_kitten_names() -> FrozenSet[str]: ans = [] for name in list_kitty_resources('kittens'): - if '__' not in name and '.' not in name and name not in ('tui', 'mouse_demo'): + if '__' not in name and '.' not in name and name != 'tui': ans.append(name) return frozenset(ans) diff --git a/kittens/mouse_demo/main.go b/tools/cmd/mouse_demo/main.go similarity index 100% rename from kittens/mouse_demo/main.go rename to tools/cmd/mouse_demo/main.go diff --git a/tools/cmd/tool/main.go b/tools/cmd/tool/main.go index 71a480b8f..832c43607 100644 --- a/tools/cmd/tool/main.go +++ b/tools/cmd/tool/main.go @@ -11,7 +11,6 @@ import ( "kitty/kittens/hints" "kitty/kittens/hyperlinked_grep" "kitty/kittens/icat" - "kitty/kittens/mouse_demo" "kitty/kittens/show_key" "kitty/kittens/ssh" "kitty/kittens/themes" @@ -20,6 +19,7 @@ import ( "kitty/tools/cli" "kitty/tools/cmd/at" "kitty/tools/cmd/edit_in_kitty" + "kitty/tools/cmd/mouse_demo" "kitty/tools/cmd/pytest" "kitty/tools/cmd/run_shell" "kitty/tools/cmd/show_error" @@ -53,7 +53,7 @@ func KittyToolEntryPoints(root *cli.Command) { show_key.EntryPoint(root) // mouse_demo root.AddSubCommand(&cli.Command{ - Name: "mouse_demo", + Name: "mouse-demo", ShortDescription: "Demo the mouse handling kitty implements for terminal programs", OnlyArgsAllowed: true, Run: func(cmd *cli.Command, args []string) (rc int, err error) {