Browse Source

Toggle zoom

master
blallo 1 year ago
parent
commit
c8016a3181
Signed by: blallo GPG Key ID: 0CBE577C9B72DC3F
  1. 1
      kitty.conf
  2. 17
      zoom_toggle.py

1
kitty.conf

@ -26,6 +26,7 @@ scrollback_pager bat
map ctrl+tab previous_window
map ctrl+shift+tab next_window
map ctrl+shift+z kitten zoom_toggle.py
# remote control
allow_remote_control yes

17
zoom_toggle.py

@ -0,0 +1,17 @@
#! encoding: utf-8
def main(args):
pass
def handle_result(args, answer, target_window_id, boss):
tab = boss.active_tab
if tab is not None:
if tab.current_layout.name == "stack":
tab.last_used_layout()
else:
tab.goto_layout("stack")
handle_result.no_ui = True
Loading…
Cancel
Save