tmux icon indicating copy to clipboard operation
tmux copied to clipboard

Added plugin for the window option "Synchronize panes"

Open JannoTjarks opened this issue 4 years ago • 9 comments

Hi guys,

i added a plugin for your tmux theme. It's called "synchronize panes" because it gives me in the rigth status bar an info whether the window option synchronize panes (:setw synchronize panes) is on or off.

I added an info to the README.md and INSTALL.md already. Maybe you have an idea for a better infotext. At the moment the label is called "Sync" in default and the value is "on" or "off". The label is customizable for the enduser in the .tmux.conf.

I hope the code meets your requirements! grafik

JannoTjarks avatar Oct 21 '21 21:10 JannoTjarks

This is cool, but why would someone need this?

ethancedwards8 avatar Oct 23 '21 16:10 ethancedwards8

Often I use the synchronize panes option to configure cisco switches & router which need/have the same configuration (a port-channel on a vpc cluster as example) or to work on redundant linux clusters. Most time i have multiple windows open and need to know if synchronize panes is set in the current window. Other people are adding a color to the status bar: https://blog.jpalardy.com/posts/tmux-synchronized-panes/

JannoTjarks avatar Oct 23 '21 19:10 JannoTjarks

I see, I misunderstood before hand. I can actually see how this can be very helpful. I'll do a code review soon.

ethancedwards8 avatar Oct 24 '21 02:10 ethancedwards8

Code LGTM, but we're going to have to clean up the commits. Otherwise, looks great and I look forward to using this feature. I would also like to get it merged in by tomorrow so we can give you credit for hacktoberfest.

ethancedwards8 avatar Oct 30 '21 06:10 ethancedwards8

That sounds great! Thank you!

JannoTjarks avatar Oct 30 '21 22:10 JannoTjarks

Could you squash the commits?

ethancedwards8 avatar Nov 07 '21 22:11 ethancedwards8

I squashed the commits. Now there is only one.

JannoTjarks avatar Nov 12 '21 19:11 JannoTjarks

Thanks, will test.

ethancedwards8 avatar Nov 14 '21 13:11 ethancedwards8

Hi @ethancedwards8, what is the status of this pr?

JannoTjarks avatar Jun 03 '22 21:06 JannoTjarks

Hi @ethancedwards8, what is the current status?

JannoTjarks avatar Oct 26 '22 06:10 JannoTjarks

Please resolve the merge conflicts.

ethancedwards8 avatar Oct 26 '22 11:10 ethancedwards8

Please resolve the merge conflicts.

@ethancedwards8 Done!

JannoTjarks avatar Oct 28 '22 20:10 JannoTjarks

Bump :-) I would also benefit from this niche-but-amazing use case

magnuslarsen avatar Jul 12 '23 11:07 magnuslarsen

Thanks for the reminder!

ethancedwards8 avatar Jul 12 '23 18:07 ethancedwards8