StudyTimeStats icon indicating copy to clipboard operation
StudyTimeStats copied to clipboard

Feature Request: Search Query Eval

Open khesed opened this issue 2 years ago • 3 comments

Potential Issues This would markedly extend the feature possibilities.

Feature Description Is it possible to have a macro to evaluate a search query and return the number of cards? E.g. %evalsearch{rated:1 prop:due>=1} will return all cards rated today and no longer due today, and %evalsearch{rated:1:3 prop:due>=1 will return all cards rated good today and no longer due today. This way, there can be a count of cards actually being chipped-away at, instead of a number that is hard to correlate to actual work.

Alternatives Considered This may already be possible using %eval{}, but I don't know what the scope/context is that is being evaluated to know what scope-variables can be used.

Alternatively, just implementing a macro for rated:1 prop:due>=1 and rated:1:3 prop:due>=1 are options which would satisfy my personal request.

Thank you for such a wonderful add-on!

khesed avatar Jul 10 '23 18:07 khesed

Oh yeah, that'd defs be a great way to add some more functionality!

Was wondering how I'd be able to set up more specific queries in an understandable way. Honestly didn't think about using the same functionality as Anki's search, though, and I think that does sound like a fantastic way to go about it!

Current time-frame for starting on new updates is looking like a few weeks from now, unfortunately.

But I really appreciate the suggestion a bunch! Will try and see what I can do when I can, thanks! :D

iamjustkoi avatar Jul 11 '23 18:07 iamjustkoi

Been a while, but moving back to onhold for now, until I'm able to work on this again, but I really do want to fix/add this and other requests in as soon as I can!

Thanks again for the request, and really appreciate all the patience!

iamjustkoi avatar Nov 11 '23 17:11 iamjustkoi