Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Search Query Eval #32

Open
khesed opened this issue Jul 10, 2023 · 2 comments
Open

Feature Request: Search Query Eval #32

khesed opened this issue Jul 10, 2023 · 2 comments
Labels
feature New addition or enhancement onhold Needs to be scheduled

Comments

@khesed
Copy link

khesed commented Jul 10, 2023

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 khesed added the feature New addition or enhancement label Jul 10, 2023
@iamjustkoi
Copy link
Owner

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 iamjustkoi added the todo Scheduled for development label Jul 11, 2023
@iamjustkoi iamjustkoi added onhold Needs to be scheduled and removed todo Scheduled for development labels Nov 11, 2023
@iamjustkoi
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New addition or enhancement onhold Needs to be scheduled
Projects
None yet
Development

No branches or pull requests

2 participants