3 ms·
I'm using https://github.com/tmuxinator/tmuxinator https://github.com/tmuxinator/tmuxinator for quite some time and find it very convenient. Are there any advan
by igordej 10y ago
I'm using https://github.com/tmuxinator/tmuxinator https://github.com/tmuxinator/tmuxinator for quite some time and find it very convenient. Are there any advantages of Tmuxp?
- git-pull 10y agoI haven't used teamocil or tmuxinator in a few years. At the time, both had a few itches to scratch. i was surprised to see how well thought-out and scriptable tmux was. the often overlooked formats [1] and targets [2] options in the tmux manual had a lot of possibilities to do precise tweaks across sessions, windows and panes, but they were cumbersome to articulate. it seemed like a superb candidate to create an object mapper for in python. In recent months, I spun off the low-level python library for mapping sessions, windows and panes to objects to libtmux [3] I will give a try at advantages, but take note its been a while and tmuxinator may have improved on these: 1. focusing a pane in each window, as well as window in the session. So after the session is loaded, the cursor will be focused wherever you entered "focus: true". http://tmuxp.readthedocs.io/en/latest/examples.html#focusing http://tmuxp.readthedocs.io/en/latest/examples.html#focusing. tmuxinator's startup_window seems to only do window focusing, not pane focusing. 2. freezing tmux layouts http://tmuxp.readthedocs.io/en/latest/cli.html#freeze-sessions http://tmuxp.readthedocs.io/en/latest/cli.html#freeze-sessio... 3. JSON support 4. More ability to resolve paths relative to configuration file and relative to start_directory. http://tmuxp.readthedocs.io/en/latest/examples.html#start-directory http://tmuxp.readthedocs.io/en/latest/examples.html#start-di... 5. before_script for bootstrapping project dependencies before launch http://tmuxp.readthedocs.io/en/latest/examples.html#bootstrap-project-before-launch http://tmuxp.readthedocs.io/en/latest/examples.html#bootstra.... Can target bootstrap script via absolute path, relation to start_directory and relation to config directory. 6. Set custom indexes (window numbers) via config These are little conveniences I don't recall seeing in tmuxinator/teamocil in 2013 (I originally used both): - If your tmux session is already loaded, it will offer to attach it for you instead of re-running. (I don't recall if this was tmuxinator or teamocil) - If you're already inside a tmux session and load a session via tmuxp, it will offer to switch-client for you. - There is also an ability to import teamocil and tmuxinator configs, http://tmuxp.readthedocs.io/en/latest/cli.html#import http://tmuxp.readthedocs.io/en/latest/cli.html#import, though it may be out of date with the latest config for them. I'm considering whether I want to remove the feature, or just try to load them natively. It wouldn't be hard. [1] http://www.freebsd.org/cgi/man.cgi?query=tmux&apropos=0&sektion=1&manpath=OpenBSD+5.8&arch=default&format=html#FORMATS http://www.freebsd.org/cgi/man.cgi?query=tmux&apropos=0&sekt... [2] http://www.freebsd.org/cgi/man.cgi?query=tmux&apropos=0&sektion=1&manpath=OpenBSD+5.8&arch=default&format=html#COMMANDS http://www.freebsd.org/cgi/man.cgi?query=tmux&apropos=0&sekt... [3] https://github.com/tony/libtmux https://github.com/tony/libtmux