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
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:: To demo the various shapes, simply run the following command inside kitty::
kitten mouse_demo kitten mouse-demo
For more details see below. 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:: To demo the various shapes, simply run the following command inside kitty::
kitten mouse_demo kitten mouse-demo
Legacy xterm compatibility 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]: def all_kitten_names() -> FrozenSet[str]:
ans = [] ans = []
for name in list_kitty_resources('kittens'): 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) ans.append(name)
return frozenset(ans) return frozenset(ans)

View File

@@ -11,7 +11,6 @@ import (
"kitty/kittens/hints" "kitty/kittens/hints"
"kitty/kittens/hyperlinked_grep" "kitty/kittens/hyperlinked_grep"
"kitty/kittens/icat" "kitty/kittens/icat"
"kitty/kittens/mouse_demo"
"kitty/kittens/show_key" "kitty/kittens/show_key"
"kitty/kittens/ssh" "kitty/kittens/ssh"
"kitty/kittens/themes" "kitty/kittens/themes"
@@ -20,6 +19,7 @@ import (
"kitty/tools/cli" "kitty/tools/cli"
"kitty/tools/cmd/at" "kitty/tools/cmd/at"
"kitty/tools/cmd/edit_in_kitty" "kitty/tools/cmd/edit_in_kitty"
"kitty/tools/cmd/mouse_demo"
"kitty/tools/cmd/pytest" "kitty/tools/cmd/pytest"
"kitty/tools/cmd/run_shell" "kitty/tools/cmd/run_shell"
"kitty/tools/cmd/show_error" "kitty/tools/cmd/show_error"
@@ -53,7 +53,7 @@ func KittyToolEntryPoints(root *cli.Command) {
show_key.EntryPoint(root) show_key.EntryPoint(root)
// mouse_demo // mouse_demo
root.AddSubCommand(&cli.Command{ root.AddSubCommand(&cli.Command{
Name: "mouse_demo", Name: "mouse-demo",
ShortDescription: "Demo the mouse handling kitty implements for terminal programs", ShortDescription: "Demo the mouse handling kitty implements for terminal programs",
OnlyArgsAllowed: true, OnlyArgsAllowed: true,
Run: func(cmd *cli.Command, args []string) (rc int, err error) { Run: func(cmd *cli.Command, args []string) (rc int, err error) {