Skip to content

Commit f25e5d3

Browse files
committed
docs(libtmux modules): Base index output improvements
1 parent eb452b7 commit f25e5d3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

libtmux/pane.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ class Pane(TmuxMappingObject):
3939
Examples
4040
--------
4141
>>> pane
42-
Pane(%1 Window(@1 ...:..., Session($1 ...)))
42+
Pane(%1 Window(@1 1:..., Session($1 ...)))
4343
4444
>>> pane in window.panes
4545
True
4646
4747
>>> pane.window
48-
Window(@1 ...:..., Session($1 ...))
48+
Window(@1 1:..., Session($1 ...))
4949
5050
>>> pane.session
5151
Session($1 ...)

libtmux/server.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ class Server(TmuxRelationalObject["Session", "SessionDict"], EnvironmentMixin):
5656
[Session($1 ...)]
5757
5858
>>> server.sessions[0].windows
59-
[Window(@1 ...:..., Session($1 ...)]
59+
[Window(@1 1:..., Session($1 ...)]
6060
6161
>>> server.sessions[0].attached_window
62-
Window(@1 ...:..., Session($1 ...)
62+
Window(@1 1:..., Session($1 ...)
6363
6464
>>> server.sessions[0].attached_pane
65-
Pane(%1 Window(@1 ...:..., Session($1 ...)))
65+
Pane(%1 Window(@1 1:..., Session($1 ...)))
6666
6767
References
6868
----------

libtmux/window.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Window(TmuxMappingObject, TmuxRelationalObject["Pane", "PaneDict"]):
4444
>>> window = session.new_window('My project')
4545
4646
>>> window
47-
Window(@... ...:My project, Session($... ...))
47+
Window(@... 1:My project, Session($... ...))
4848
4949
Windows have panes:
5050
@@ -329,10 +329,10 @@ def rename_window(self, new_name: str) -> "Window":
329329
>>> window = session.attached_window
330330
331331
>>> window.rename_window('My project')
332-
Window(@1 ...:My project, Session($1 ...))
332+
Window(@1 1:My project, Session($1 ...))
333333
334334
>>> window.rename_window('New name')
335-
Window(@1 ...:New name, Session($1 ...))
335+
Window(@1 1:New name, Session($1 ...))
336336
"""
337337

338338
import shlex

0 commit comments

Comments
 (0)