Repository navigation
Creates the ability to dynamically query tasks based on a selected note. Selectable notes come from configuration of front matter property and value - #4
Conversation
|
My idea built out, works exactly how I'd like it to work and links into GTD methodology: #2 (comment) |
|
Thanks a lot for the work on this — the feature idea (per-group note selector feeding 1. CI failure: type checkThe
- let selectedPath = this.selectedGroupNotePaths[this.activeGroup];
+ let selectedPath = this.selectedGroupNotePaths[this.activeGroup] ?? '';Please also run the build locally with the real compiler before pushing — see the next point. 2. Please remove the
|
ichris007
left a comment
There was a problem hiding this comment.
Details are in my comment above. Please address items 1–6 and push an update —
CI will re-run automatically. Thanks!
299a53e to
6cec935
Compare
ichris007
left a comment
There was a problem hiding this comment.
Regarding the "note filter + limit" row added in this PR, I noticed an aesthetic issue: when a group has no frontmatter property configured, the note selector doesn't appear on the front end, but the limit input box is still shown there all by itself — it looks out of place and breaks the overall layout.
Two suggested fixes:
- Move the limit setting into the group configuration modal (leaving only the note selector in that front-end row);
- Only show the limit together with the note selector, i.e. only when the note selector appears.
I'd recommend option 1: a limit is essentially a group-level config, so it fits better in the group edit modal; whereas "which note to filter by" is a runtime, per-session selection and makes more sense on the front end — this keeps their responsibilities cleanly separated. Also, with option 1 the limit still applies to the whole group even when no note filter is configured, unlike option 2 which would also disable the "group-wide limit without a note filter" capability. Implementation-wise, the taskLimit field already exists in the data model, so this is mainly relocating the input from the front-end renderGroupNoteSelector() to GroupEditModal — a fairly small change.
Would you be open to going with option 1? Once it's done I'll verify it on my end.
|
I understand what you are saying and agree in principle, however my use case (and so for you to inform what you think) is expanding the returned results dynamically when I "feel" I'm missing tasks I expected to be returned and so in runtime works better. You could leave it out all together too and make it a feature if you think it adds value to your plugin |
|
Thanks, merging — I'll refine the limit UI on top |
Resolved. Merging now and will refine the limit UI in a follow-up commit.
feat: selectable note for task queries with query.file use.
add configurable task limit