obsidian-todoist-plugin
obsidian-todoist-plugin copied to clipboard
"Show: labels" doesn't work
Describe the bug Putting "Show: labels" in a query doesn't work
To Reproduce Steps to reproduce the behavior:
- Ensure the setting "Enable labels" is turned off (especially since this will be deprecated anyway)
- Insert the following YAML query (note: filter is not important - as long as the shown tasks have labels):
name: "My Tasks"
filter: "today | overdue"
show:
- labels
Note: the above query was created referencing the documentation
- Tasks are shown without labels
Expected behavior Tasks should respect the "show" part of the query, but instead seem to be only respecting the plugin settings (which will be deprecated soon)
Screenshots
Desktop (please complete the following information):
- Plugin Version 1.13.0
- Obsidian Version 1.15.12
This is actually the intended behaviour (if slightly unintuitive). The settings option is "global" and will take precedence over the local setting.
If you are using the show option in queries, I recommend leaving the all the global options turned on since this:
- gives you fine-grained control
- matches the behaviour once the options are removed
In any case, the global options are going to be removed in the next release, so this will cease to be a problem shortly
Ok, then I guess the problem description should be rephrased: it does not appear to be currently possible with this plugin to show two or more lists of todoist tasks where some lists show labels and some don't. That is to say: the setting "Enable labels" in the plugin settings is the only control for whether labels are shown and changing the query "Show: labels" (adding it or removing it) doesn't do anything.
For instance: 1.
- Plugin setting "Enable labels" turned ON
- Query contains
show: labels(yaml formatted, of course) - Result: labels shown (expected)
- Plugin setting "Enable labels" turned ON
- Query DOES NOT CONTAIN
show: labels - Result: labels are still shown (even though query did not "ask" for it) (not expected)
- Plugin setting "Enable labels" turned OFF
- Query contains
show: labels(yaml formatted, of course) - Result: labels NOT shown (not expected)
- Plugin setting "Enable labels" turned OFF
- Query DOES NOT CONTAIN
show: labels - Result: labels NOT shown (expected)
To be clear, the global settings are going to be removed in the next release - so this behaviour will go away. In the interim, I will not be changing the interaction of the global & query-specific configuration.