Skip to content

Toggle between creation and modification date of item #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

theg4sh
Copy link
Contributor

@theg4sh theg4sh commented Jul 11, 2019

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 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.

@aserebryakov aserebryakov self-assigned this Aug 11, 2019
@aserebryakov aserebryakov added this to the 0.8.0 milestone Apr 23, 2020
@aserebryakov
Copy link
Owner

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

@aserebryakov aserebryakov modified the milestones: 0.8.0, 0.9.0 Jun 29, 2020
@theg4sh
Copy link
Contributor Author

theg4sh commented Sep 1, 2020

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants