by git-pull · 10y ago · 0 comments
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. 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-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-di...
5. before_script for bootstrapping project dependencies 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, 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&sekt... [2] http://www.freebsd.org/cgi/man.cgi?query=tmux&apropos=0&sekt... [3] https://github.com/tony/libtmux
No comments yet.