@@ -340,12 +340,12 @@ def show_option(
340
340
return value
341
341
342
342
def select_window (self , target_window : t .Union [str , int ]) -> "Window" :
343
- """Select window, return selected window.
343
+ """Select window and return the selected window.
344
344
345
345
Parameters
346
346
----------
347
347
window : str
348
- ``target_window`` also 'last-window' (``-l``), 'next-window'
348
+ ``target_window`` can also be 'last-window' (``-l``), 'next-window'
349
349
(``-n``), or 'previous-window' (``-p``)
350
350
351
351
Returns
@@ -375,12 +375,12 @@ def select_window(self, target_window: t.Union[str, int]) -> "Window":
375
375
#
376
376
@property
377
377
def active_pane (self ) -> t .Optional ["Pane" ]:
378
- """Return active :class:`Pane` object."""
378
+ """Return the active :class:`Pane` object."""
379
379
return self .active_window .active_pane
380
380
381
381
@property
382
382
def active_window (self ) -> "Window" :
383
- """Return active :class:`Window` object."""
383
+ """Return the active :class:`Window` object."""
384
384
active_windows = self .windows .filter (window_active = "1" )
385
385
386
386
if len (active_windows ) == 1 :
@@ -622,6 +622,7 @@ def new_window(
622
622
Returns
623
623
-------
624
624
:class:`Window`
625
+ The newly created window.
625
626
"""
626
627
window_args : t .Tuple [str , ...] = ()
627
628
@@ -757,7 +758,7 @@ def name(self) -> t.Optional[str]:
757
758
#
758
759
@property
759
760
def attached_pane (self ) -> t .Optional ["Pane" ]:
760
- """Return active :class:`Pane` object.
761
+ """Return the active :class:`Pane` object.
761
762
762
763
Notes
763
764
-----
@@ -774,7 +775,7 @@ def attached_pane(self) -> t.Optional["Pane"]:
774
775
775
776
@property
776
777
def attached_window (self ) -> "Window" :
777
- """Return active :class:`Window` object.
778
+ """Return the active :class:`Window` object.
778
779
779
780
Notes
780
781
-----
0 commit comments