🔧 chore(kitty): update scripts
This commit is contained in:
parent
9cbd3e3e60
commit
6431c8c8fc
2 changed files with 4 additions and 8 deletions
|
@ -29,10 +29,9 @@ def handle_result(args, result, target_window_id, boss):
|
|||
keymap = args[2]
|
||||
|
||||
cmd = window.child.foreground_cmdline[0]
|
||||
if cmd == 'nvim':
|
||||
if cmd == 'tmux':
|
||||
keymap = args[2]
|
||||
encoded = encode_key_mapping(window, keymap)
|
||||
window.write_to_child(encoded)
|
||||
elif cmd == 'tmux':
|
||||
pass
|
||||
else:
|
||||
boss.active_tab.neighboring_window(args[1])
|
||||
|
|
|
@ -85,13 +85,10 @@ def handle_result(args, result, target_window_id, boss):
|
|||
amount = int(args[2])
|
||||
window = boss.window_id_map.get(target_window_id)
|
||||
|
||||
keymap = args[3]
|
||||
|
||||
cmd = window.child.foreground_cmdline[0]
|
||||
if cmd == 'nvim':
|
||||
if cmd == 'tmux':
|
||||
keymap = args[3]
|
||||
encoded = encode_key_mapping(window, keymap)
|
||||
window.write_to_child(encoded)
|
||||
elif cmd == 'tmux':
|
||||
pass
|
||||
else:
|
||||
relative_resize_window(direction, amount, target_window_id, boss)
|
||||
|
|
Loading…
Add table
Reference in a new issue