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

Update tmux.conf so it conforms to tmux3 & 2 style #31

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

Conversation

ldhieu
Copy link

@ldhieu ldhieu commented Dec 24, 2019

The new format for tmux3 has listed two incompatible changes as follow (source)

INCOMPATIBLE: tmux's configuration parsing has changed to use yacc(1). There is one incompatible change: a \ on its own must be escaped or quoted as either \ or '' (the latter works on older tmux versions).
INCOMPATIBLE: Add a new {} syntax to the configuration file. This is a string similar to single quotes but also includes newlines and allows commands that take other commands as string arguments to be expressed more clearly and without additional escaping.

So now {, } and \ have to be escaped to '{', '}' and '\' (to maintain compatibility with tmux2)

The new format for tmux3 has listed two incompatible changes as follow ([source](https://github.com/tmux/tmux/blob/master/CHANGES))

>INCOMPATIBLE: tmux's configuration parsing has changed to use yacc(1). There is one incompatible change: a \ on its own must be escaped or quoted as either \\ or '\' (the latter works on older tmux versions).
>INCOMPATIBLE: Add a new {} syntax to the configuration file. This is a string similar to single quotes but also includes newlines and allows commands that take other commands as string arguments to be expressed more clearly and without additional escaping.

So now ``{``, ``}`` and ``\`` have to be escaped to ``'{'``, ``'}'`` and ``'\'`` (to maintain compatibility with tmux2)
@MichaelAllen MichaelAllen mentioned this pull request Dec 29, 2019
@mohitt
Copy link

mohitt commented Jan 13, 2020

The color background of the tab pane title has some issue, after making these changes on tmxu 3.0a version

Copy link

@RafiSayag RafiSayag left a comment

Choose a reason for hiding this comment

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

Reached the same fix myself (except for maybe aligning the comment offset for the unbind commands :) )
Tested and worked for me on version 2.8 and 3.0a

Thanks!

hughplay added a commit to hughplay/tmux-config that referenced this pull request Aug 31, 2021
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.

4 participants