mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 02:02:14 +02:00
Make _run_kitten public API
This commit is contained in:
@@ -1338,7 +1338,7 @@ class Boss:
|
|||||||
cmd = [kitty_exe(), '+runpy', 'import os, sys, time; time.sleep(0.05); os.execvp(sys.argv[1], sys.argv[1:])'] + get_editor(get_options()) + [confpath]
|
cmd = [kitty_exe(), '+runpy', 'import os, sys, time; time.sleep(0.05); os.execvp(sys.argv[1], sys.argv[1:])'] + get_editor(get_options()) + [confpath]
|
||||||
self.new_os_window(*cmd)
|
self.new_os_window(*cmd)
|
||||||
|
|
||||||
def _run_kitten(
|
def run_kitten_with_metadata(
|
||||||
self,
|
self,
|
||||||
kitten: str,
|
kitten: str,
|
||||||
args: Iterable[str] = (),
|
args: Iterable[str] = (),
|
||||||
@@ -1415,6 +1415,7 @@ class Boss:
|
|||||||
action_on_removal(wid, self)
|
action_on_removal(wid, self)
|
||||||
overlay_window.actions_on_removal.append(callback_wrapper)
|
overlay_window.actions_on_removal.append(callback_wrapper)
|
||||||
return overlay_window
|
return overlay_window
|
||||||
|
_run_kitten = run_kitten_with_metadata
|
||||||
|
|
||||||
@ac('misc', 'Run the specified kitten. See :doc:`/kittens/custom` for details')
|
@ac('misc', 'Run the specified kitten. See :doc:`/kittens/custom` for details')
|
||||||
def kitten(self, kitten: str, *kargs: str) -> None:
|
def kitten(self, kitten: str, *kargs: str) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user