Toggle zoom

This commit is contained in:
sfigato 2021-07-30 09:37:48 +02:00
parent 4ef4f8a2b7
commit c8016a3181
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
2 changed files with 18 additions and 0 deletions

View File

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

17
zoom_toggle.py Normal file
View File

@ -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