Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added possibility to choose a different session #138

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

m42e
Copy link
Contributor

@m42e m42e commented Oct 8, 2015

Allow to specify a session which shall be used to create a new window in it.

Many developers have a second or third screen. To allow usage as output screen, this PR allows to specify a tmux session by name where the command should be run in. The current active window within the session is used if the session exists else a new session is created.

@dkrieger
Copy link

There are several places in 2285ce that rely on [window].[pane] to specify panes. This feature should change those to use the unique id of the pane instead. In general, vimux assumes we want the current session throughout the code, so some careful refactoring throughout the whole plugin would be necessary for this feature to be "complete" and integrated with the codebase, IMHO

Copy link
Member

@alerque alerque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the time to contribute this. Much of the refactoring suggested in a previous comment has been done and the plugin is now as of #110 using IDs for panes and windows. I would be happy to consider merging this for better session interaction as well, but it will need to be rebased on master and perhaps refactored a little bit to interact well with the new way of doing things.

@m42e
Copy link
Contributor Author

m42e commented Feb 13, 2021

I'll update it :) Thanks for the effort you put in.

@m42e
Copy link
Contributor Author

m42e commented Feb 14, 2021

After rethinking it, I am not a 100% sure it is kind of required anymore. tmux meanwhile supports multiple clients viewing different windows. So you could simply use another window in the same session with an additional client attached to it.

So what do you think?

@alerque
Copy link
Member

alerque commented Feb 14, 2021

I agree Tmux does have another way to skin this cat. However being able to set this up in Vimux without messing with the shared client features of Tmux might make more sense in some people's workflow. I'm also curious as to whether this might fix the issue in #70. Obviously that wasn't what it was originally for, but it does seem like it would solve that problem too, no?

@m42e
Copy link
Contributor Author

m42e commented Feb 14, 2021

Yeah, you might be right, that may enable a workflow which is like the one described in #70. Ok, I will give it a try.

@alerque
Copy link
Member

alerque commented Feb 14, 2021

Does the merger of #180 render this PR obsolete?

@m42e
Copy link
Contributor Author

m42e commented Feb 14, 2021

No it doesn't. It is kind of the first step towards a good solution for this change. I investigate a bit further to see what's the best solution to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants