gsantner / markor

Text editor - Notes & ToDo (for Android) - Markdown, todo.txt, plaintext, math, ..
https://github.com/gsantner/markor/discussions/2269
Other
3.79k stars 363 forks source link

todo.txt: Option to not prepend creation date for new tasks #2028

Closed cmhobbs closed 1 year ago

cmhobbs commented 1 year ago

⚠️ This issue respects the following points: ⚠️

Description

  1. An option to disable the addition of a creation date when adding a new item to the todo.txt file

Information

Android version: 11 (LineageOS 18.1) Device: OnePlus 8T App Version: v2.10.8 (145)

Source

F-Droid

Format / File type

todo.txt

Additional info / Log

No response

gsantner commented 1 year ago

You may switch to normal plaintext at the top-right menu to not use todo.txt for a file, thus also deactivating automatic formatting.

cmhobbs commented 1 year ago

While that certainly resolves my issue it also disables all other features provided by this mode. I would like to retain the other auto-formatting features but have the ability to omit a creation date.

harshad1 commented 1 year ago

As a hack, you could write a regex search-replace to remove them all.

gsantner commented 1 year ago

There is a settings option to not set "done date" when marking tasks as done. I think this back in the day was implemented to add neither creation nor done date.

But maybe I'm wrong.

cmhobbs commented 1 year ago

That setting appears to be "Add completion date" now and I have it unchecked. It doesn't seem to affect the creation date.

cmhobbs commented 1 year ago

As a hack, you could write a regex search-replace to remove them all.

i already do this when i get back to my computer and edit the file with emacs (i'm using syncthing to transfer it). it's still an annoyance when creating todo items because it takes up so much space and i really don't care when an item was created.

harshad1 commented 1 year ago

Taking a quick look, all the TodoTxt auto formatter is doing is adding the creation date. So you can just disable auto-formatting for the todo file (3 dots -> File settings -> Auto-format).

Note that this setting is per-file

gsantner commented 1 year ago

Ah yes, this is it. Recall there was something existing for this. Thanks!

cmhobbs commented 1 year ago

Thanks so much!