Toggle zoom
This commit is contained in:
parent
4ef4f8a2b7
commit
c8016a3181
|
@ -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
Normal file
17
zoom_toggle.py
Normal 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
|
Loading…
Reference in New Issue
Block a user