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

Support quoting (sections of) left hand side in config file definitions #536

Open
RafDevX opened this issue May 1, 2023 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@RafDevX
Copy link

RafDevX commented May 1, 2023

Currently, setting tag descriptions is done by adding an entry such as tags.acme.description = Work done for ACME Inc. to the timewarrior.cfg file (either directly or through timew config).

This works great for all tags with simple names, but not for tags such as name-with-dashes or "name with spaces".

I propose allowing constructs such as:

tags."a non-obvious name, possibly with periods.in.the.middle".description = The description

At the moment, both the above and the simpler form tags.with-dash.description = Something fail silently (no error is reported, bug timewarrior does not process any further config lines).

NOTE: My use case is with tag descriptions, but I believe this problem can be generalized for all config file definitions.

@andjsmit
Copy link

andjsmit commented May 25, 2023

Ran into this issue today. Created a couple of tags with dashes couple of weeks ago and had set descriptions. Noticed that the description did not show on timew tags but didn't think much about it until today. When setting an exclusion, couldn't figure out why it didn't show up in the summary charts. Went into the configuration and moved the exclusions above the descriptions, and exclusions started showing up.

@lauft lauft added the enhancement New feature or request label Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants