fzerorubigd / tmass

tmux session manager written in golang
GNU General Public License v3.0
78 stars 7 forks source link

Option to create window in the same tmux session instead of creating a new session #4

Closed pengux closed 9 years ago

pengux commented 9 years ago

I've been using tmuxinator and also created the same issue there (https://github.com/tmuxinator/tmuxinator/issues/265). The rationale is that sometimes you just want to open a new window with your panes layout instead of a whole new session.

fzerorubigd commented 9 years ago

You mean the entire session into another session? tmass already has that (kinda) just go inside active session in tmux, and call tmass load. its load inside that session. I also have plan to polish the command line to allow for specify the target session too. But if you want to load a part of a session (some window from a session) I don't think there is a good way for that

pengux commented 9 years ago

hmm, that is another issue. I wouldn't want tmass to mess with my current session by renaming it. Here is how I wish it would work:

tmass load => yes, load in the current session, but don't rename it tmass new => create a new session (or attach to it if it is already created) no need to use forcenew

fzerorubigd commented 9 years ago

I have another idea. I want to remove the --forcenew flag and add --into=session option. Also I need to force tmux to run inside tmux (with unseting the TMUX env variable) to create a new session in othe session.

pengux commented 9 years ago

Do you really need to run session inside session? Is it possible to just create the windows and panes in the same session instead?

fzerorubigd commented 9 years ago

Currently, it is like that you said. just attach to a session, try to load a session. then new windows are created in current session.