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

Feature: Duplicate session with automatically grouping #10

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mandos
Copy link
Contributor

@mandos mandos commented Feb 4, 2024

This is my next proposal of feature.
Use case: for multi-monitor setup, I would like to see different windows for same session on different monitors.

Solution: To do it, you can create to identical sessions and group it together, then you can show each session on respective monitors. Navigation thought panels and windows in both sessions are separate, but content is the same.

This draft show one approach, I create separate running script to do it, it is supported by helpers function, and it works inside and outside tmux session.

Some code can be duplicated with #9

@27medkamal
Copy link
Owner

What's the status of this? I've had a think about it and I have a few thoughts:

  1. I'm keen to keep this plugin a simple 1-prefix plugin as opposed to creating a fully fledged session manager. This is to stay in line with the spirit of Write programs that do one thing and do it well
  2. That said, I think this is a useful feature that I would use myself. Can you think of a way to still achieve this within the above?
  3. Otherwise, can this be created as a separate standalone plugin that can work well with tmux-session-wizard?

@mandos
Copy link
Contributor Author

mandos commented Jul 4, 2024

  1. Yes, but you also lose the ability to reuse libraries, test pipelines and helpers scripts from session-wizard. No clear advantages to separate it to another plugin.
  2. I'm right quite busy but I will sit on it in next 2 weeks, unfortunately, currently in work I'm not using multimonitor setup (for coding) so pushing this feature is not high on my list, but as I said, I will try to cleanup code and prepare PR.
  3. I would keep it here but let's wait to see final PR.

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.

2 participants