jceb / vim-orgmode

Text outlining and task management for Vim based on Emacs' Org-Mode
http://www.vim.org/scripts/script.php?script_id=3642
Other
3.12k stars 266 forks source link

Unable to toggle checkbox when embeded with plainlist #209

Closed Ron89 closed 8 years ago

Ron89 commented 8 years ago

In the example down below:

  - [ ] Task A regarding to information:
        - Info 1
        - Info 2
        - Info 3
  - [ ] Task B
  - [ ] Task C
        - [ ] Task C-1
        - [ ] Task C-2

The check box on Task A is impossible to toggle with <LocalLeader>cc. Is this a designed choice or is it really an issue like I suspected? I tried toggling the exact case in Emacs's orgmode, and the toggling works fine.

jceb commented 8 years ago

I guess this is an issue. Since there are subitems the code assumes that these are not done although they can't be checked.

Ron89 commented 8 years ago

I'm not familiar with your structure, but is it simple to take (list-identifier) (check-box-identifier) rather than '(list-identifier)' as an subitem indicator?

jceb commented 8 years ago

I haven't written the checkbox functionality and can't say much about how it works. Would you be able to check the code and verify your assumption?

Ron89 commented 8 years ago

Ya, I'll look into it. When I'm done, I'll send a PR.

jceb commented 8 years ago

Merged.