@@ -284,27 +284,32 @@ def split(
284284 Parameters
285285 ----------
286286 attach : bool, optional
287- make new window the current window after creating it, default
287+ Make new window the current window after creating it, default
288288 True.
289289 start_directory : str or PathLike, optional
290- specifies the working directory in which the new window is created.
290+ Specifies the working directory in which the new window is created.
291291 direction : PaneDirection, optional
292- split in direction. If none is specified, assume down.
293- full_window_split: bool, optional
294- split across full window width or height, rather than active pane.
295- zoom: bool, optional
296- expand pane
292+ Split in direction. If none is specified, assume down.
293+ full_window_split : bool, optional
294+ Split across full window width or height, rather than active pane.
295+ zoom : bool, optional
296+ Expand pane.
297297 shell : str, optional
298- execute a command on splitting the window. The pane will close
298+ Execute a command on splitting the window. The pane will close
299299 when the command exits.
300300
301- NOTE: When this command exits the pane will close. This feature
301+ NOTE: When this command exits the pane will close. This feature
302302 is useful for long-running processes where the closing of the
303303 window upon completion is desired.
304- size: int, optional
304+ size : int, optional
305305 Cell/row or percentage to occupy with respect to current window.
306- environment: dict, optional
306+ environment : dict, optional
307307 Environmental variables for new pane. Passthrough to ``-e``.
308+
309+ Returns
310+ -------
311+ :class:`Pane`
312+ The newly created pane.
308313 """
309314 active_pane = self .active_pane or self .panes [0 ]
310315 return active_pane .split (
@@ -409,7 +414,7 @@ def select_layout(self, layout: str | None = None) -> Window:
409414 Parameters
410415 ----------
411416 layout : str, optional
412- string of the layout, 'even-horizontal', 'tiled', etc. Entering
417+ String of the layout, 'even-horizontal', 'tiled', etc. Entering
413418 None (leaving this blank) is same as ``select-layout`` with no
414419 layout. In recent tmux versions, it picks the most recently
415420 set layout.
@@ -430,7 +435,17 @@ def select_layout(self, layout: str | None = None) -> Window:
430435 Panes are spread out as evenly as possible over the window in
431436 both rows and columns.
432437 'custom'
433- custom dimensions (see :term:`tmux(1)` manpages).
438+ Custom dimensions (see :term:`tmux(1)` manpages).
439+
440+ Returns
441+ -------
442+ :class:`Window`
443+ Self, for method chaining.
444+
445+ Raises
446+ ------
447+ :exc:`libtmux.exc.LibTmuxException`
448+ If tmux returns an error.
434449 """
435450 cmd = ["select-layout" ]
436451
@@ -539,11 +554,21 @@ def move_window(
539554 Parameters
540555 ----------
541556 destination : str, optional
542- the ``target window`` or index to move the window to, default:
543- empty string
557+ The ``target window`` or index to move the window to, default:
558+ empty string.
544559 session : str, optional
545- the ``target session`` or index to move the window to, default:
560+ The ``target session`` or index to move the window to, default:
546561 current session.
562+
563+ Returns
564+ -------
565+ :class:`Window`
566+ Self, for method chaining.
567+
568+ Raises
569+ ------
570+ :exc:`libtmux.exc.LibTmuxException`
571+ If tmux returns an error.
547572 """
548573 session = session or self .session_id
549574 proc = self .cmd (
0 commit comments