datacore icon indicating copy to clipboard operation
datacore copied to clipboard

[bug] Tasks not indexed or queryable in a file without other preceeding text

Open gtg922r opened this issue 9 months ago • 1 comments

If I create a blank new file with only checklist items, and no sections or other text, the checklist items don't seem to be added to the index, and are not queryable

Minimal steps to reproduce with Sandbox:

  1. Create a new sandbox vault. Delete all files
  2. install BRAT and then add Datacore via brat
  3. Create new file. Add a single line:
- [ ] Task to do this thing!
  1. in console, run app.plugins.getPlugin('datacore').api.query('@task') > []
  2. Add a new line with any text above checlist, for example
test
- [ ] Task to do this thing!
  1. app.plugins.getPlugin('datacore').api.query('@task') > [_MarkdownTaskItem]

gtg922r avatar Mar 13 '25 06:03 gtg922r

i remember running into this issue myself. will look into it tomorrow

GamerGirlandCo avatar Apr 19 '25 08:04 GamerGirlandCo

Any news on that bug ? 🥵

William-A-A avatar May 26 '25 16:05 William-A-A

Any news on that bug ? 🥵

i think i've fixed it, see #114 :)

GamerGirlandCo avatar Jun 28 '25 21:06 GamerGirlandCo