Zim

task activation from outside zim program

Asked by David Parker

Hi, I noticed that if I append a Zim text file with something like this:

[ ] some task @sometag

when I go to view the file in Zim, the checkbox is correctly rendered, but it doesn't show up in the task listing until I check and uncheck it, presumably because there is something that the zim program (the task plugin?) has to do to "activate" the task.

Is there any way to "activate" a task from a little python script (I use Autokey to make new notes or append to existing notes a lot) without actually starting up Zim. I realize that Zim itself starts up really fast, but I'd love it if I could get it to work this way. Another use is for me to add a task on my phone, and when the file gets sync'd up to the Zim folder I'd like it to "just work".

Any suggestions for either senario?

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Zim Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#1

Main thing is that the page has to be indexed for the task to be included in the task list. If you edit pages outside of zim the index function is not triggered automatically. As soon as you change something (like toggling the item) the autosave kicks in and this triggers the page to be re-indexed.

You can have zim check for external edits by running "Tools" -> "Re-build Index".

Can you help with this problem?

Provide an answer of your own, or ask David Parker for more information if necessary.

To post a message you must log in.