Clean up mouse-demo kitten

Fixes #6738
This commit is contained in:
Kovid Goyal 2023-10-21 07:55:23 +05:30
parent c9a95cacd9
commit 7292d1c9df
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
4 changed files with 5 additions and 5 deletions

View file

@ -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
----------------------------

View file

@ -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)

View file

@ -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) {