VladimirMarkelov / ttdl

TTDL - Terminal Todo List Manager
MIT License
202 stars 17 forks source link

`--set-rec` seems to have no effect #57

Closed SevereOverfl0w closed 2 years ago

SevereOverfl0w commented 2 years ago

Reproduction, last commands shows that edit generally works. It seems specific to rec that's broken.

/tmp 2m 17s
❯ ttdl --version                                               
TTDL Version 3.3.0

/tmp
❯ ttdl --todo-file todo.txt add 'Hello, world +filter'
Added todo:
# D P Created    Finished   Due        Subject
-----------------------------------------------
1     2022-07-24                       Hello, world +filter

/tmp
❯ ttdl --todo-file todo.txt ls +filter                
# D P Created    Finished   Due        Subject
-----------------------------------------------
1     2022-07-24                       Hello, world +filter
-----------------------------------------------
1 todos (of 1 total)

/tmp
❯ ttdl --todo-file todo.txt edit +filter --set-rec=1w
No todo was changed

/tmp
❯ ttdl --todo-file todo.txt edit +filter --set-proj=someproject 
Changed todos:
# D P Created    Finished   Due        Subject
-----------------------------------------------
1     2022-07-24                       Hello, world +filter +someproject
-----------------------------------------------
1 todos
VladimirMarkelov commented 2 years ago

Thanks for the report. I'll check it.

VladimirMarkelov commented 2 years ago

Fixed in 3.4.0 - just published

SevereOverfl0w commented 2 years ago

Works great, thanks!