ransome1 / sleek

todo.txt manager for Linux, Windows and MacOS, free and open-source (FOSS)
https://github.com/ransome1/sleek/wiki
MIT License
1.45k stars 113 forks source link

Add setting "Position for new recurring tasks in todo.txt" #704

Open amariusz opened 6 months ago

amariusz commented 6 months ago

Feature Request

What problem does it solve?

I'm using Sleek along with text editor. Sometimes I'd like to be able to split the file into sections for example:

# group 1 h:1
2024-05-01 task 1 t:2024-05-06 rec:7d
# group 2 h:1
2024-05-01 task 2 t:2024-05-06 rec:7d
# inbox h:1

Upon completion of task 1 I'd like to have following result.

# group 1 h:1
x 2024-05-06 2024-05-01 task 1 t:2024-05-06 rec:7d
2024-05-06 task 1 t:2024-05-13 rec:7d
# group 2 h:1
2024-05-06 task 1 t:2024-05-06 rec:7d
# inbox h:1

Inbox section is defined at the end of file and all new tasks created explicitly in Sleek UI goes here. I can visit this section in text editor and dispatch those tasks into groups.

Current Sleek's behaviour is adding new todos (created explicitly) and todos spawned from recurring tasks at the end of file:

# group 1 h:1
x 2024-05-06 2024-05-01 task 1 t:2024-05-06 rec:7d    
# group 2 h:1
2024-05-06 task 1 t:2024-05-06 rec:7d
# inbox h:1
2024-05-06 task 1 t:2024-05-13 rec:7d

With this option on, only new tasks added explicity via Sleek UI would be placed at the end of file and respawned tasks would be placed under or above completed ones.

How does the user interface change to accommodate this request?

Add dropdown in settings with label "Position for new recurring tasks in todo.txt" with options

amariusz commented 6 months ago

If this setting seems too niche to clutter the UI, I wouldn't mind just config.json option :)