vim-todo-lists icon indicating copy to clipboard operation
vim-todo-lists copied to clipboard

Toggle between creation and modification date of item

Open theg4sh opened this issue 6 years ago • 2 comments

This PR's fixup a bug when date could be appended twice or more times. To reproduce the bug edit an existing item with pressing <CR> key few times.

Behavior which date should be stored for item is configurable. let g:VimTodoListsDatesKeepCreation = 1 (or any value not eq to 0) to keep the date of item creation when the value of config is equal to 0 (zero) timestamp of item will be overwriten with current timestamp.

theg4sh avatar Jul 11 '19 21:07 theg4sh

@theg4sh, can you please describe the issue with a couple steps? I couldn't reproduce it.

aserebryakov avatar Jun 29 '20 06:06 aserebryakov

@aserebryakov oh, sorry for long response time, here is command to reproduce the issue:

$ vim /tmp/test.todo
:execute "normal i\<cr>first\<cr>\<esc>dd3Ea second\<cr>\<esc>dd4Ea third\<cr>"

The result will be the following:

 (18:01:11, 01 sep 2020)
- [ ] first second third (18:01:11, 01 sep 2020) (18:01:11, 01 sep 2020) (18:01:11, 01 sep 2020)

With option in that PR you could toggle between line's creation time and modify time.

theg4sh avatar Sep 01 '20 15:09 theg4sh