Mark more actions

This commit is contained in:
Kovid Goyal
2021-06-29 22:21:01 +05:30
parent 91f0da9dcd
commit b0edbf2857
4 changed files with 113 additions and 2 deletions

View File

@@ -257,6 +257,11 @@ class Tab: # {{{
return 'Could not resize'
def resize_window(self, quality: str, increment: int) -> None:
'''
@ac:win: Resize the active window by the specified amount
See :ref:`window_resizing` for details.
'''
if increment < 1:
raise ValueError(increment)
is_horizontal = quality in ('wider', 'narrower')
@@ -267,6 +272,7 @@ class Tab: # {{{
ring_bell()
def reset_window_sizes(self) -> None:
'@ac:win:Reset window sizes undoing any dynamic resizing of windows'
if self.current_layout.remove_all_biases():
self.relayout()