This commit is contained in:
sankalp committed 2024-01-02 16:23:20 +05:45
1 parent 5922a32bcc
commit 1b46ee74cf
8 files changed
+2245 -382

No files matched your search

+11 -5
View File
@@ -1,12 +1,18 @@
def main(args):
from kittens.tui.handler import result_handler
from kitty.boss import Boss
def main(args: list[str]) -> None:
pass
def handle_result(args, answer, target_window_id, boss):
@result_handler(no_ui=True)
def handle_result(
args: list[str], answer: str, target_window_id: int, boss: Boss
) -> None:
w = boss.window_id_map.get(target_window_id)
if w is not None:
if len(args) > 1 and args[1] != 'prev':
if len(args) > 1 and args[1] != "prev":
w.scroll_to_mark(prev=False)
else:
w.scroll_to_mark()
handle_result.no_ui = True