tmux-cluster icon indicating copy to clipboard operation
tmux-cluster copied to clipboard

Get out of synchronized pane mode

Open onlyanegg opened this issue 8 years ago • 11 comments

Hey, thanks for writing this! I use it all the time on OSX + iterm2 (not that iterm2 needs tmux, but I'm used to xterm). I can't get out of synchronized panes mode. I'm not sure if this is a bug or expected behavior.

onlyanegg avatar Jun 20 '16 18:06 onlyanegg

Hey @coutotyler, I have a few questions:

  1. Is your version of tmux-cluster up to date?
  2. Are you able to change synchronization in manually-created tmux sessions?
  3. Have you seen issue #2, which seems to be similar? That issue should be fixed in the latest version, although I haven't tested it in OSX, so maybe there's a corner case I'm missing.

davidscholberg avatar Jun 20 '16 19:06 davidscholberg

Hey David, thanks for responding. I am up to date:

[tcouto@tcouto tmux-cluster]$ cat .git/config
[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
    ignorecase = true
    precomposeunicode = true
[remote "origin"]
    url = https://github.com/davidscholberg/tmux-cluster.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master
[tcouto@tcouto tmux-cluster]$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

I am able to synchronize and unsynchronize panes in normal tmux sessions. I'll take a look at number 2 a bit later.

onlyanegg avatar Jun 20 '16 23:06 onlyanegg

Please run git show --no-patch --format=oneline to see what the top commit is.

davidscholberg avatar Jun 21 '16 00:06 davidscholberg

[tcouto@tcouto tmux-cluster]$ git show --no-patch --format=oneline
eb531dd7bb0f0524934bad764814b412d1ce56f1 README: updated tmux homepage URL

onlyanegg avatar Jun 22 '16 17:06 onlyanegg

Hey @onlyanegg, sorry that I haven't gotten to this in a while.

It looks like your tmux-cluster is up to date, so that's not the problem.

Did you get a chance to look at issue #2 yet? There shouldn't be any difference between sessions created by tmux-cluster versus sessions created normally, so if the problem is not nested tmux sessions then I'm at a loss.

Unfortunately I don't have an OSX machine, so if this is an OSX-specific issue, that makes it difficult for me to troubleshoot this issue.

davidscholberg avatar Jul 15 '16 14:07 davidscholberg

No worries. I took a brief look at the source, and I couldn't see anything that stood out either. Thanks for your help.

On Jul 15, 2016 7:01 AM, "David Scholberg" [email protected] wrote:

Hey @onlyanegg https://github.com/onlyanegg, sorry that I haven't gotten to this in a while.

It looks like your tmux-cluster is up to date, so that's not the problem.

Did you get a chance to look at issue #2 https://github.com/davidscholberg/tmux-cluster/issues/2 yet? There shouldn't be any difference between sessions created by tmux-cluster versus sessions created normally, so if the problem is not nested tmux sessions then I'm at a loss.

Unfortunately I don't have an OSX machine, so if this is an OSX-specific issue, that makes it difficult for me to troubleshoot this issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/davidscholberg/tmux-cluster/issues/3#issuecomment-232958544, or mute the thread https://github.com/notifications/unsubscribe-auth/AHX3uHV3Y5fFaLK1f2JuPEeSdcyIVi4Pks5qV5KcgaJpZM4I5-SZ .

onlyanegg avatar Jul 18 '16 17:07 onlyanegg

I don't see any documentation on how to get out of synchronized mode. What is the method to do so to see if it works?

ElijahLynn avatar Mar 28 '18 02:03 ElijahLynn

Oh, I see in the source it is a tmux command set-window-option synchronize-panes off/on. We should put this in the README.md.

ElijahLynn avatar Mar 28 '18 02:03 ElijahLynn

We should add this to the readme:

bind-key a set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}

https://stackoverflow.com/a/26774547/292408

ElijahLynn avatar Jun 28 '18 00:06 ElijahLynn

Although, I did use X instead as it made more sense to me.

ElijahLynn avatar Jun 28 '18 00:06 ElijahLynn

And possibly add a tip that says "If you enter fullscreen mode for a pane, it will not synchronize commands to the other panes", this is really useful for a quick non-synchronized command.

ElijahLynn avatar Jun 28 '18 00:06 ElijahLynn