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

fix(custom): stop mixing manual and automatic arg indexing #3617

Merged
merged 5 commits into from
Sep 19, 2024

Conversation

lukasfink1
Copy link
Contributor

The current documentation for the custom module suggests mixing manual ({icon}) and automatic ({}) indexing of format args. Newer versions of the fmt library seem to not support this anymore (see issue #3605).

This commit introduces a name for the text output of the script, so that {text} can now be used instead of {} in the configuration. The documentation in the wiki should be updated upon rolling out this change.

An alternative way would be to just replace {} with {0} in the documentation, then this pull request wouldn’t be required.

The current documentation for the custom module suggests mixing manual
(`{icon}`) and automatic (`{}`) indexing of format args. Newer versions
of the fmt library seem to not support this anymore (see issue Alexays#3605).

This commit introduces a name for the `text` output of the script, so
that `{text}` can now be used instead of `{}` in the configuration.
@alebastr
Copy link
Contributor

Please, update the man (FORMAT REPLACEMENTS in waybar-custom.5.scd) and the example config.

@Alexays
Copy link
Owner

Alexays commented Sep 18, 2024

To help users, can you add a warning if the user's format contains "{}"?

@Alexays Alexays merged commit ac1a422 into Alexays:master Sep 19, 2024
8 of 9 checks passed
@Alexays
Copy link
Owner

Alexays commented Sep 19, 2024

Thanks!

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.

3 participants