wesmoncrief / obsidian-todoist-text

MIT License
56 stars 5 forks source link

[Feature] Automatic Update #28

Open ahbanavi opened 1 year ago

ahbanavi commented 1 year ago

I use Todoist to quickly jot down ideas on the go using my mobile device.
At the end of each day, I go through my "On the Go Ideas" Todoist project and manually create a note for each task.
This plugin allows me to keep all of my Todoist ideas in a single Obsidian note, but the current process of manually removing and inserting keywords to update my notes is time-consuming.
I would greatly appreciate it if the developer could consider implementing an automatic update feature to streamline this workflow.

wesmoncrief commented 1 year ago

To clarify, it sounds like there's two distinct things you're talking about.

  1. You currently have to manually a note per each task in your 'on the go' project
  2. you want to automatically have each of those notes refresh as new tasks are added?
ahbanavi commented 1 year ago
  1. You currently have to manually a note per each task in your 'on the go' project

Adding notes for each task is not something that intent for this Plugin and that is something I should do manually. I talked about my flow so that you have context for the use case I have in my mind for the auto-update feature.

  1. you want to automatically have each of those notes refresh as new tasks are added?

I have a single note with my ideas from Todoist and want that note to be updated at least once or twice a day, right now I have to delete the content and add the keyword to update that manually, that's the part I meant for automation.

see screenshot ![Screenshot_20230113-130342_Obsidian.jpg](https://user-images.githubusercontent.com/39927312/212287107-c5cf7d41-c9a1-4694-8f1e-e97b6cc24887.jpg)

I want only this note to be updated (new tasks are added to the end or front of the list automatically), not others that I link manually.

Also if the auto-update feature has the ability not to delete already done (strike-through texts) tasks from obsidian, would be great for archiving. Think of the task list in obsidian as an append-only list that new tasks come in the front or end of the list (based on user's preferences).

wesmoncrief commented 1 year ago

Makes sense! Similar idea to https://github.com/wesmoncrief/obsidian-todoist-text/issues/17

This would probably be at the top of the priority list if i ever get around to another PR here. Can't promise any specific deliverable time, though if you or anyone else wants to try coding it, i'm happy to review/provide guidance.

I wonder if as a (partial) workaround, you could do something like:


# active things
@@queryActiveTasks@@ 

# finished tasks
@@queryIsCompleteTasks@@ 

Since it looks like the filter API supports retrieving completed tasks, you can presumably get historical data that way. You could also perhaps use a Template from the templates plugin to help auto-generate new notes.

I realize that doesn't really solve it in the proper way though

ahbanavi commented 1 year ago

I didn't know that filtered API supports completed tasks. That workaround will do the job for me for now.
Thanks for the advice and also for this plugin.

gdicker1 commented 1 year ago

@ahbanavi I don't know how helpful this might be maybe just a few keystrokes. But maybe you could add all of your Todoist-text keywords for this file to a Template (from the core plugin). Then you could do something like: "Select All", "Delete", "CMD+P" (command palette), "Templates: Insert template", and select the file containing your desired Todoist-text keywords.