timewarrior icon indicating copy to clipboard operation
timewarrior copied to clipboard

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

Open RafDevX opened this issue 2 years ago • 1 comments

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, but 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.

RafDevX avatar May 01 '23 22:05 RafDevX

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.

andjsmit avatar May 25 '23 20:05 andjsmit