• Kirill Smelkov's avatar
    edit: Don't move modified todo items to the end of file · 09208067
    Kirill Smelkov authored
    Before this patch a `t edit ...` will remove todo items selected by
    `...` and then do equivalent of `t add` with input from result of
    editing. This works, but has the property that whenever a todo item is
    edited, it is always moved till the end of todo.txt file.
    
    This property creates noise and makes synchronization harder to implement for
    some of us who uses VCS and different machines to maintain todo.txt .
    
    -> Teach edit to preserve todo items in their places. Adjust existing
    tests and add a couple more exercising cases where either new todo
    items are added in the editor, or vice versa, removed in the editor.
    
    /cc @mruwek
    09208067
EditCommand.py 5.95 KB