mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
16 lines
387 B
Python
16 lines
387 B
Python
from kittens.tui.handler import result_handler
|
|||
|
|
from typing import List
|
||
|
|
from kitty.boss import Boss
|
||
|
|
|
||
|
|
|
||
|
|
def main():
|
||
|
|
pass
|
||
|
|
|
||
|
|
|
||
|
|
directions = ["right", "left", "top", "bottom"]
|
||
|
|
|
||
|
|
|
||
|
|
@result_handler(no_ui=True)
|
||
|
|
def handle_result(args: List[str], result: str, target_window_id: int, boss: Boss):
|
||
|
|
if len(args) == 2 and args[1] in directions:
|
||
|
|
boss.active_tab.neighboring_window(args[1])
|