New plugin: edit todo.txt files in obsidian

Features

  • @context is treated as #tags. You can ctrl click on them.
  • +Project are treated at [[Project]]. You can ctrl click them.
  • _ in +Projects to represent spaces. Ex +Hello_World
8 Likes

This could turn out useful, thanks for starting it. I especially like the idea of @context tags and +project links.

Am I assuming right that it currently is only basic manual editing, so I’d have to mark finished tasks (x YYYY-MM-DD) myself, and handle rec:, rec:+, due: and t: elsewhere (like in Todour which I currently use)?

Is it possible to have the todo.txt file outside the vault?

Thanks! I’d love to expand it to include more features I just not sure where to go next. I was going to start using it day to day and see if anything popped out.

That’s correct. If its useful I could build a view that has checkboxes that handles some of this. Or add a hotkey that “dones” the current line. What do you think would be useful here?

Hmm. I don’t know how to open a file in obsidian that is outside the vault. Maybe symlink it into the vault?

Good question. Personally, I use Todour on Linux and Markor on Android to handle all this. Maybe let’s ask others what they’d like in Obsidian.

Thinking about it, I’d probably want to use “Done” most, and maybe a method to clear out todo.txt by moving the “done” items into done.txt (as Todour does). Problem with done.txt would be accessing it, to get Obsidian links to what was done … Hmm.

That’s a good idea. I already use a symlink for my shopping list, so it gets sync’ed to my smartphone.


As I mentioned somewhere else, there are even JS implementations for handling todo.txt, if you need some inspiration:

This is awesome, thank you for doing this, would be great to have a pane that lets us have this open all the time and also sort, filter etc…

1 Like

Hey, when I activate to detect all filetypes and click on the .txt file, it opens in the standard application. When I rename it to todo.md, the plugin also doesn’t work. Maybe I’m doing something wrong? Thanks for any help! :slight_smile:

@phlind Very strange I dont even have that option checked. The plugin assumes the extension is .txt. Is it possible you have a different plugin enabled competing for the .txt extension like obsidian-releases/community-plugins.json at master · obsidianmd/obsidian-releases · GitHub

@trashhalo Thanks, it works now. I had to deactivate the option to detect all filetypes. They don’t seem to work together.

Ill put a call-out in the readme!! thank you

At the moment it doesn’t recognize projects like +Project-Name right? Would it be possible to make that work?

Quick tip for those using the vim mode: You can select all lines and type :sort to sort for priority. :wink:

Edit: Cmd-clicking +Projects doesn’t work for me on macOs.

At the moment it doesn’t recognize projects like +Project-Name right? Would it be possible to make that work?

yep easy peasy. will do tonight

Edit: Cmd-clicking +Projects doesn’t work for me on macOs.

Do you want that to work? I can do that to. right now its ctrl click

First of all, thank you very much for this.

I am testing it but seems like ctrl+click is not working.

I am using obsidian 0.12.10 and windows.