27medkamal / tmux-session-wizard

One prefix to control all your session creation, naming, switching, etc using fzf & zoxide
MIT License
180 stars 14 forks source link

Feature: Duplicate session with automatically grouping #10

Open mandos opened 8 months ago

mandos commented 8 months ago

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 commented 3 months ago

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 commented 3 months ago
  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.