Skip to content

Commit 64ee135

Browse files
committed
Add TODO
1 parent b928d54 commit 64ee135

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

TODO

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
TODO
33
====
44

5+
- Remove duplicate between ``_list_panes``, ``_panes``, etc.
6+
57
.. # vim: set filetype=rst:

libtmux/common.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,23 @@ class TmuxRelationalObject(object):
244244
Children of :class:`TmuxRelationalObject` are going to have a
245245
``self.children``, ``self.child_id_attribute`` and ``self.list_children``.
246246
247-
================ ================== ======================= ============================
248-
Object ``.children`` ``.child_id_attribute`` method
249-
================ ================== ======================= ============================
250-
:class:`Server` ``self._sessions`` 'session_id' :meth:`Server.list_sessions`
251-
:class:`Session` ``self._windows`` 'window_id' :meth:`Session.list_windows`
252-
:class:`Window` ``self._panes`` 'pane_id' :meth:`Window.list_panes`
247+
================ ======================== ==================================
248+
Object .children method
249+
================ ======================== ==================================
250+
:class:`Server` :attr:`Server._sessions` :meth:`Server.list_sessions`
251+
:class:`Session` :attr:`Windows._windows` :meth:`Session.list_windows`
252+
:class:`Window` :attr:`Panes._panes` :meth:`Window.list_panes`
253253
:class:`Pane`
254-
================ ================== ======================= ============================
255-
254+
================ ======================== ==================================
255+
256+
================ ================================== ==============
257+
Object child_id_attribute value
258+
================ ================================== ==============
259+
:class:`Server` :attr:`Server.child_id_attribute`` ``session_id``
260+
:class:`Session` :attr:`Session.window_id` ``window_id``
261+
:class:`Window` :attr:`Window.pane_id` ``pane_id``
262+
:class:`Pane`
263+
================ ================================== ==============
256264
"""
257265

258266
def find_where(self, attrs):

0 commit comments

Comments
 (0)