Skip to content

Catppuccin does too much escaping #281

Closed
@j-xella

Description

Is there an existing issue outlining your problem?

  • I have searched the existing issues and they do not solve my problem.

Describe your problem.

Before, this used to work:

set -g @catppuccin_session_text "#{=10:#{s/^(TFS|KB|SUMMIT-)([0-9]*).*/KB-\\2/:session_name}}"

Basically, I want to apply some formatting to the session name before showing it.

Unfortunately, it does not work any more. For example, session name KB1234_xyz should be displayed as KB-1234, but now the result is always KB-\2.

Checking tmux show -A, it seems that catpuccin sets

status-left* "...#{=10:#{s/^(TFS|KB|SUMMIT-)([0-9]*).*/KB-\\\\2/:session_name}}..."

in other words, the backslashes are escaped. I don't think the plugin should be doing it. If I want to add a \ as text, I can escape it myself.

Paste your configuration.

set -g @catppuccin_session_text "#{=10:#{s/^(TFS|KB|SUMMIT-)([0-9]*).*/KB-\\2/:session_name}}"

Attach screenshots.

No response

What tmux version are you seeing the issue on?

tmux built from recent commit [651891c3]

Any additional comments?

No response

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions