Skip to content

Commit

Permalink
v0.0.16
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Oct 27, 2013
1 parent 1651012 commit 044c63f
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 7 deletions.
9 changes: 9 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ tmuxp Changelog

Here you can find the recent changes to tmuxp.

2013-10-27
----------

- [cli] `argcomplete`_ overhaul for CLI bash completion.
- [cli] ``tmuxp load``, ``tmuxp convert`` and ``tmuxp import`` now support
relative and full filenames in addition to searching the config
directory.

2013-10-26
----------

Expand Down Expand Up @@ -244,3 +252,4 @@ initial

.. _tmuxinator: https://github.com/aziz/tmuxinator
.. _teamocil: https://github.com/remiprev/teamocil
.. _argcomplete: https://github.com/kislyuk/argcomplete
29 changes: 25 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,19 @@ Install ``tmuxp``:
See: `Quickstart`_

tmux bash completion
""""""""""""""""""""
CLI Commands
""""""""""""

tmuxp uses ``switch-client`` for you if already in a TMUX client.

.. code-block:: bash
$ tmuxp attach-session<tab> # current sessions
Kill session

.. code-block:: bash
$ tmuxp kill-session<tab> # current sessions
Load a session configuration from a YAML or JSON file.
Expand All @@ -54,7 +59,15 @@ Convert a session config JSON <=> YAML:
$ tmuxp convert<tab> # configs in config dir, current directory
See: `installing bash completion`_
Experimental: Import configuration from `teamocil`_ or `tmuxinator`_:

.. code-block:: bash
$ tmuxp import teamocil<tab> # configs in ~/.teamocil dir
$ tmuxp import tmuxinator<tab> # configs in ~/.tmuxinator dir
See `installing bash completion`_ to get bash, zsh and tcsh completion
working on your machine.

load tmux sessions from yaml and json
"""""""""""""""""""""""""""""""""""""
Expand All @@ -65,12 +78,20 @@ Load from ``~/.tmuxp.yaml`` or ``~/.tmuxp.json`` in current directory.
$ tmuxp load .
Load ``myconfig.yaml``.
Load ``myconfig.yaml`` from ``~/.tmuxp``

.. code-block:: bash
$ tmuxp load myconfig.yaml
Load a relative or full config file (bash complete supports this too)

.. code-block:: bash
$ tmuxp load ./myconfig.yaml
$ tmuxp load ../myconfig.yaml
$ tmuxp load /var/www/mywebproject/myconfig.yaml
``$ mkdir ~/.tmuxp`` and make a file ``~/.tmuxp/test.yaml``.

.. code-block:: yaml
Expand Down
2 changes: 1 addition & 1 deletion tmuxp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@

import logging

__version__ = '0.0.15-dev'
__version__ = '0.0.16-dev'
2 changes: 0 additions & 2 deletions tmuxp/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,6 @@ def cli_parser():
will check launch a ~/.pullv.yaml / ~/.pullv.json from the cwd.
will also check for any ./*.yaml and ./*.json.
''' % (cwd_dir + '/', config_dir),
#).completer = ConfigCompleter
#).completer = argcomplete.completers.FilesCompleter(allowednames=('.yaml', '.json'), directories=False)
).completer = ConfigCompleter(allowednames=('.yaml', '.json'), directories=False)
load.set_defaults(callback=subcommand_load)

Expand Down

0 comments on commit 044c63f

Please sign in to comment.