Skip to content

Commit af3c745

Browse files
committed
more
1 parent f2af129 commit af3c745

File tree

2 files changed

+55
-66
lines changed

2 files changed

+55
-66
lines changed

doc/developing.rst

Lines changed: 7 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ If you found a problem or are trying to write a test, you can file an
7373

7474
.. _test_specific_tests:
7575

76-
Choose tests to run
76+
Test runner options
7777
"""""""""""""""""""
7878

7979
.. note::
@@ -128,9 +128,10 @@ Multiple can be separated by spaces:
128128
.. _test_builder_visually:
129129

130130
Visual testing
131-
""""""""""""""
131+
''''''''''''''
132132

133-
You can watch tmux testsuite build sessions visually also.
133+
You can watch tmux testsuite build sessions visually by keeping a client
134+
open in a separate terminal.
134135

135136
Create two terminals:
136137

@@ -147,7 +148,7 @@ Terminal 1 should have flickered and built the session before your eyes.
147148
tmuxp hides this building from normal users. :)
148149

149150
Verbosity and logging
150-
"""""""""""""""""""""
151+
'''''''''''''''''''''
151152

152153
``./run_tests.py`` supports two options, these are *optional* flags that
153154
may be added to for :ref:`test_specific_tests` and
@@ -174,8 +175,8 @@ may be added to for :ref:`test_specific_tests` and
174175
175176
$ ./run_tests.py --verbosity 0
176177
177-
Watch files and test
178-
--------------------
178+
Run tests on save
179+
-----------------
179180

180181
You can re-run tests automatically on file edit.
181182

@@ -239,66 +240,6 @@ is tested against 1.8 and latest in addition to python 2.7. The
239240
.. literalinclude:: ../.travis.yml
240241
:language: yaml
241242

242-
Internals
243-
---------
244-
245-
Similarities to Tmux and Pythonics
246-
----------------------------------
247-
248-
tmuxp is was built in the spirit of understanding how tmux operates
249-
and how python objects and tools can abstract the API's in a pleasant way.
250-
251-
tmuxp uses the identify ``FORMATTERS`` used by tmux, you can see
252-
them inside of http://sourceforge.net/p/tmux/tmux-code/ci/master/tree/format.c.
253-
254-
In this, I will also begin documenting the API.
255-
256-
the use of:
257-
258-
Session
259-
:meth:`Session.new_window()` - returns a new Window object bound to the session,
260-
also uses ``tmux new-window``.
261-
:meth:`Session.new_session()` - class method - returns a new Session object.
262-
263-
Differences from tmux
264-
---------------------
265-
266-
Because this is a python abstraction and flags like ``start-directory``
267-
have dashes (-) replaced with underscores (_).
268-
269-
interesting observations
270-
------------------------
271-
272-
How is tmuxp able to keep references to panes, windows and sessions?
273-
274-
Tmux has unique ID's for sessions, windows and panes.
275-
276-
panes use ``%``, such as ``%1234``
277-
278-
windows use ``@``, such as ``@2345``
279-
280-
sessions use ``$``, for money, such as ``$``
281-
282-
How is tmuxp able to handle windows with no names?
283-
284-
Tmux provides ``window_id`` as a unique identifier.
285-
286-
What is a {pane,window}_index vs a {pane,window,session}_id?
287-
288-
Pane index refers to the order of a pane on the screen.
289-
290-
Window index refers to the # of the pane in the session.
291-
292-
To assert pane, window and session data, tmuxp will use
293-
:meth:`tmuxp.Server.list_sessions`, :meth:`tmuxp.Session.list_windows`,
294-
:meth:`tmuxp.Window.list_panes` to update objects.
295-
296-
Reference
297-
---------
298-
299-
- tmux docs http://www.openbsd.org/cgi-bin/man.cgi?query=tmux&sektion=1
300-
- tmux source code http://sourceforge.net/p/tmux/tmux-code/ci/master/tree/
301-
302243
.. _travis-ci: http://www.travis-ci.org
303244
.. _travis build site: http://www.travis-ci.org/tony/tmuxp
304245
.. _.travis.yml: https://github.com/tony/tmuxp/blob/master/.travis.yml

doc/orm_al.rst

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,53 @@ Object Prefix Example
4141
:class:`Pane` ``%`` ``%5433``
4242
======================== ======================= =========================
4343

44+
Similarities to Tmux and Pythonics
45+
----------------------------------
46+
47+
tmuxp is was built in the spirit of understanding how tmux operates
48+
and how python objects and tools can abstract the API's in a pleasant way.
49+
50+
tmuxp uses ``FORMATTERS`` in tmux to give identity attributes to
51+
:class:`Session`, :class:`Window` and :class:`Pane` objects. See
52+
`formatters.c`_.
53+
54+
.. _formatters.c: http://sourceforge.net/p/tmux/tmux-code/ci/master/tree/format.c
55+
56+
How is tmuxp able to keep references to panes, windows and sessions?
57+
58+
Tmux has unique ID's for sessions, windows and panes.
59+
60+
panes use ``%``, such as ``%1234``
61+
62+
windows use ``@``, such as ``@2345``
63+
64+
sessions use ``$``, for money, such as ``$``
65+
66+
How is tmuxp able to handle windows with no names?
67+
68+
Tmux provides ``window_id`` as a unique identifier.
69+
70+
What is a {pane,window}_index vs a {pane,window,session}_id?
71+
72+
Pane index refers to the order of a pane on the screen.
73+
74+
Window index refers to the # of the pane in the session.
75+
76+
To assert pane, window and session data, tmuxp will use
77+
:meth:`Server.list_sessions()`, :meth:`Session.list_windows()`,
78+
:meth:`Window.list_panes()` to update objects.
79+
80+
Idiosyncrasies
81+
--------------
82+
83+
Because this is a python abstraction and commands like ``new-window``
84+
have dashes (-) replaced with underscores (_).
85+
86+
Reference
87+
---------
88+
89+
- tmux docs http://www.openbsd.org/cgi-bin/man.cgi?query=tmux&sektion=1
90+
- tmux source code http://sourceforge.net/p/tmux/tmux-code/ci/master/tree/
91+
4492
.. _abstraction layer: http://en.wikipedia.org/wiki/Abstraction_layer
4593
.. _ORM: http://en.wikipedia.org/wiki/Object-relational_mapping

0 commit comments

Comments
 (0)