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

💡 [FEAT] Query TODOs from the commandline #130

Closed
FelixKratz opened this issue Jul 6, 2023 · 4 comments
Closed

💡 [FEAT] Query TODOs from the commandline #130

FelixKratz opened this issue Jul 6, 2023 · 4 comments
Labels
enhancement New feature or request needs work Needs a bit of effort

Comments

@FelixKratz
Copy link

I think it would be great if there was a commandline interface to dooit, with which the todos could be printed to stdout.

My use case would be that I would like to display the todo that is due next in my global system status bar along with some other todo metadata.

Something like dooit --list all --sort due --format "%n %d %t" would be a great addition. The command should then only output the relevant todos to stdout in the specified format (e.g. %n would be the format sequence for the title of the todo, %d would be the due date and %t would be the tags of the todo item etc.) and sorted by the flag supplied in --sort.

@FelixKratz FelixKratz added the enhancement New feature or request label Jul 6, 2023
@kraanzu
Copy link
Member

kraanzu commented Jul 9, 2023

Hey!

My use case would be that I would like to display the todo that is due next in my global system status bar along with some other todo metadata.

Maybe you can currently use python scripts for that?

This is a great idea tho. Altho I am a bit confused about the implementation part since it has a pretty complex structure :(

@kraanzu kraanzu added the needs work Needs a bit of effort label Aug 14, 2023
@maulik13
Copy link

@kraanzu thanks for making this app. Any way you can show an example of a Python script that can query data?
Thanks!

@kraanzu
Copy link
Member

kraanzu commented Nov 10, 2024

Hi @maulik13 , You can check out Backend API from the docs.

If you need any assistance, feel free to open a discussion :)

As for the initial idea of this issue thread, maybe I can create a separate parser just for this and integrate it with dooit. For now, I'll close this issue.

Note: You still can run custom python scripts for regularly used queries :D

@kraanzu kraanzu closed this as completed Nov 10, 2024
Copy link

Did we solve your problem?
Glad we could help!

Consider sponsoring my work through github sponsors 😄
@kraanzu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs work Needs a bit of effort
Projects
None yet
Development

No branches or pull requests

3 participants