Skip to content

Commit c6b297c

Browse files
committed
README, docs
1 parent 9723c39 commit c6b297c

File tree

2 files changed

+30
-116
lines changed

2 files changed

+30
-116
lines changed

README.rst

Lines changed: 25 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,34 @@
1111
:width: 65%
1212
:align: center
1313

14-
Open to testers
15-
---------------
14+
tmuxp, a novel approach to manage `tmux(1)`_ (>= 1.8) workspaces through
15+
`python objects`_.
1616

17-
tmuxp is still **alpha** code and needs a few more weeks until stable.
18-
See the `Issues tracker`_ to see known issues and for any other concerns.
17+
- Basic support for `freezing live sessions`_
18+
- `importing`_ from `teamocil`_ and `tmuxinator`_.
19+
- JSON or YAML for `simple`_ or `very elaborate`_ configurations.
20+
- `bash, zsh and tcsh`_ completion.
21+
- Unit tested against against live tmux (1.8 and git). See `travis.yml`_
22+
file and `testing`_ page.
23+
- Documented `Examples`_, Internals.
24+
- and `much, much more`_
1925

20-
Install
21-
"""""""
26+
Ready to begin? See the `Quickstart`_.
2227

23-
- install ``tmux``, at least version **1.8**
24-
- libyaml is installed for your distribution.
25-
26-
Install ``tmuxp``:
27-
28-
.. code-block:: bash
29-
30-
$ pip install tmuxp
31-
32-
33-
See: `Quickstart`_
28+
.. _tmux(1): http://tmux.sourceforge.net/
29+
.. _tmuxinator: https://github.com/aziz/tmuxinator
30+
.. _teamocil: https://github.com/remiprev/teamocil
31+
.. _Examples: http://tmuxp.readthedocs.org/en/latest/examples.html
32+
.. _freezing live sessions: http://tmuxp.readthedocs.org/en/latest/cli.html#freeze-sessions
33+
.. _importing: http://tmuxp.readthedocs.org/en/latest/cli.html#import
34+
.. _travis.yml: http://tmuxp.readthedocs.org/en/latest/developing.html#travis-ci
35+
.. _testing: http://tmuxp.readthedocs.org/en/latest/developing.html#test-runner
36+
.. _python objects: http://tmuxp.readthedocs.org/en/latest/api.html#api
37+
.. _simple: http://tmuxp.readthedocs.org/en/latest/examples.html#short-hand-inline
38+
.. _very elaborate: http://tmuxp.readthedocs.org/en/latest/examples.html#super-advanced-dev-environment
39+
.. _bash, zsh and tcsh: http://tmuxp.readthedocs.org/en/latest/cli.html#bash-completion
40+
.. _much, much more: http://tmuxp.readthedocs.org/en/latest/about.html#minor-tweaks
41+
.. _Quickstart: http://tmuxp.readthedocs.org/en/latest/quickstart.html
3442

3543
CLI Commands
3644
""""""""""""
@@ -50,93 +58,6 @@ CLI Commands
5058
Import a `teamocil`_ or `tmuxinator`_ config.
5159
========================== ===============================================
5260

53-
Bash completion
54-
"""""""""""""""
55-
56-
For bash, ``.bashrc``:
57-
58-
.. code-block:: bash
59-
60-
$ source tmuxp.bash
61-
62-
For tcsh, ``.tcshrc``:
63-
64-
.. code-block:: bash
65-
66-
$ complete tmuxp 'p/*/`tmuxp.tcsh`/'
67-
68-
For zsh, ``.zshrc``:
69-
70-
.. code-block:: bash
71-
72-
$ source tmuxp.zsh
73-
74-
See `installing bash completion`_ to get bash, zsh and tcsh completion
75-
working on your machine.
76-
77-
Mini Quickstart
78-
"""""""""""""""
79-
80-
See the full `Quickstart`_ in the documentation.
81-
82-
Load from ``~/.tmuxp.yaml`` or ``~/.tmuxp.json`` in current directory.
83-
84-
.. code-block:: bash
85-
86-
$ tmuxp load .
87-
88-
Load ``myconfig.yaml`` from ``~/.tmuxp``
89-
90-
.. code-block:: bash
91-
92-
$ tmuxp load myconfig.yaml
93-
94-
Load a relative or full config file (bash complete supports this too)
95-
96-
.. code-block:: bash
97-
98-
$ tmuxp load ./myconfig.yaml
99-
$ tmuxp load ../myconfig.yaml
100-
$ tmuxp load /var/www/mywebproject/myconfig.yaml
101-
102-
``$ mkdir ~/.tmuxp`` and make a file ``~/.tmuxp/test.yaml``.
103-
104-
.. code-block:: yaml
105-
106-
session_name: 2-pane-vertical
107-
windows:
108-
- window_name: my test window
109-
panes:
110-
- pwd
111-
- pwd
112-
113-
.. code-block:: bash
114-
115-
$ tmuxp load test.yaml
116-
117-
or ``~/.tmuxp/test.json``:
118-
119-
.. code-block:: json
120-
121-
{
122-
"windows": [
123-
{
124-
"panes": [
125-
"pwd",
126-
"pwd"
127-
],
128-
"window_name": "my test window"
129-
}
130-
],
131-
"session_name": "2-pane-vertical"
132-
}
133-
134-
.. code-block:: bash
135-
136-
$ tmuxp load test.json
137-
138-
See: `Examples`_
139-
14061
============== ==========================================================
14162
tmux support 1.8, 1.9-dev
14263
config support yaml, json, python dict

doc/index.rst

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,20 @@ tmuxp, a novel approach to manage `tmux(1)`_ (>= 1.8) workspaces through
2121

2222
Ready to begin? See the `Quickstart`_.
2323

24+
.. _tmux(1): http://tmux.sourceforge.net/
25+
.. _tmuxinator: https://github.com/aziz/tmuxinator
26+
.. _teamocil: https://github.com/remiprev/teamocil
2427
.. _Examples: http://tmuxp.readthedocs.org/en/latest/examples.html
2528
.. _freezing live sessions: http://tmuxp.readthedocs.org/en/latest/cli.html#freeze-sessions
2629
.. _importing: http://tmuxp.readthedocs.org/en/latest/cli.html#import
27-
.. _travis.yaml: http://tmuxp.readthedocs.org/en/latest/developing.html#travis-ci
30+
.. _travis.yml: http://tmuxp.readthedocs.org/en/latest/developing.html#travis-ci
2831
.. _testing: http://tmuxp.readthedocs.org/en/latest/developing.html#test-runner
2932
.. _python objects: http://tmuxp.readthedocs.org/en/latest/api.html#api
3033
.. _simple: http://tmuxp.readthedocs.org/en/latest/examples.html#short-hand-inline
3134
.. _very elaborate: http://tmuxp.readthedocs.org/en/latest/examples.html#super-advanced-dev-environment
3235
.. _bash, zsh and tcsh: http://tmuxp.readthedocs.org/en/latest/cli.html#bash-completion
3336
.. _much, much more: http://tmuxp.readthedocs.org/en/latest/about.html#minor-tweaks
37+
.. _Quickstart: http://tmuxp.readthedocs.org/en/latest/quickstart.html
3438

3539
Explore:
3640

@@ -54,14 +58,3 @@ Indices and tables
5458
* :ref:`genindex`
5559
* :ref:`modindex`
5660
* :ref:`search`
57-
58-
.. _tmuxinator: https://github.com/aziz/tmuxinator
59-
.. _teamocil: https://github.com/remiprev/teamocil
60-
.. _abstraction layer: http://en.wikipedia.org/wiki/Abstraction_layer
61-
.. _ORM: http://en.wikipedia.org/wiki/Object-relational_mapping
62-
.. _Examples: http://tmuxp.readthedocs.org/en/latest/examples.html
63-
.. _Quickstart: http://tmuxp.readthedocs.org/en/latest/quickstart.html
64-
.. _bash completion: http://tmuxp.readthedocs.org/en/latest/quickstart.html#bash-completion
65-
.. _tmux(1): http://tmux.sourceforge.net/
66-
.. _Issues tracker: https://github.com/tony/tmuxp/issues
67-
.. _python dict: http://docs.python.org/2/library/stdtypes.html#dict

0 commit comments

Comments
 (0)