Improvement: CTRL+SPACE complete started task
«When I hit CTRL+SPACE on a started task - [S] started task , I want to mark the task as complete.»
Observed behavior: - [S] started task becomes - [ ][S] started task
If you can help me on how to do this, I can probably create a PR ! :)
It seems like this shortcut is defined in vimwiki, ftplugin/vimwiki.vim l434 nmap <silent><buffer> <C-Space> <Plug>VimwikiToggleListItem
The way to do it would be probably to remap the CTRL+SPACE to our command, which would run :TaskWikiDone if the line contains a task, and :VimwikiToggleListItem otherwise.
Ok! How would you test that a line contains a task ? testing that it starts with "any number of space, dash, space, opening bracket" ?
Matthieu TALBOT [email protected]
+33 629 22 15 70 fr.linkedin.com/in/matthieutalbot http://www.soundcloud.com/Marty-Lake http://lifehacker.com/5028808/how-eom-makes-your-email-more-efficient
On 18 April 2018 at 16:49, Tomas Babej [email protected] wrote:
The way to do it would be probably to remap the CTRL+SPACE to our command, which would run :TaskWikiDone if the line contains a task, and :VimwikiToggleListItem otherwise.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tbabej/taskwiki/issues/175#issuecomment-382414072, or mute the thread https://github.com/notifications/unsubscribe-auth/ABMGSpaEHH1HrhRBgfU9c2wv-nj56Aqoks5tp1KRgaJpZM4TWbxt .
Have a look into taskwiki/main.py:278.
@MartyLake PR still coming here?
@tbabej Hey, did not take the time to follow up with the PR, sorry. I just got used to replace the space with an X and save the buffer instead.
i will take this one :) in fact, I have already a branch with most of the fix, stay tunned for the PR!