toggle_layout action to zoom/unzoom active window

This commit is contained in:
Kovid Goyal
2021-07-01 17:57:00 +05:30
parent 6a4668974b
commit 050c31094b
5 changed files with 27 additions and 2 deletions

View File

@@ -103,7 +103,8 @@ terminal program, you can tell the kittens system to run the
``handle_result()`` function without first running the ``main()`` function.
For example, here is a kitten that "zooms/unzooms" the current terminal window
by switching to the stack layout or back to the previous layout.
by switching to the stack layout or back to the previous layout. This is
equivalent to the builtin :ref:`action-toggle_layout` action.
Create a file in the kitty config folder, :file:`~/.config/kitty/zoom_toggle.py`