Skip to content

Support for escaping comment symbols in configuration file.#231

Open
helgihg wants to merge 1 commit intoisamert:developfrom
helgihg:develop
Open

Support for escaping comment symbols in configuration file.#231
helgihg wants to merge 1 commit intoisamert:developfrom
helgihg:develop

Conversation

@helgihg
Copy link
Copy Markdown

@helgihg helgihg commented Nov 26, 2025

I wanted to color the incoming/outgoing messages using the config file instead of command arguments, like this:

save-history = true
debug = true
contacts-autohide = true
show-inline = true
one-sided = true
show-names = true
color = ["\#0aa", "\#bb0"]

But I ran into the problem that the # symbol which is used to specify colors precisely, conflicted with the same symbol being used to indicate a comment.

I thought of changing how colors were handled, i.e. by removing the # from color definitions, but that would be a software design decision that I felt uncomfortable making.

This allows hash symbols in configuration values by escaping them. It shouldn't break existing configurations.

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.

1 participant