Maxim Kim <hab...@gmail.com> Jul 04 05:01AM -0700 ^
Hello Etienne!
What do you do to auto toggle list item? <C-Space>? It might be mac
keybinding issue.
Try :VimwikiToggleListItem command on that item.
Maxim.
Quick questions, I noticed that for list indented using the * symbol, the star symbol get coloured, but not when using - or +. Is that correct behaviour?
Same for the toggling behaviour, on my install, it only works with the star symbol.
Etienne
Okeydokey. On vimwiki 1.2 on MacVim 7.3, only the star symbol is highlighted (in green).
I am guessing regexp are handled differently on other platforms. I'll have a look.
Thanks.
Etienne
Thanks for the help. I have done some more tests, and I don't really understand what is going on.
I am off to Greece for two weeks in a few days, and I don't think I will have time to dig deeper into it by then. I'll come back to you in August then!
I am on MacOS 10.6.8, how about you Stu?
Etienne
Thank you for your help guys, I really appreciate it. Jep, there is definitely something fishy with my install. I made a few tests, see below, and I am not sure what is going on. My latest theory is that it has something to do with the default encoding of my text files, which somehow messes up regexp.
Whatever the case is, I am willing to get my hands greasy and sorting it out but, I am going on holidays on Friday, and I am meant to get a brand new macbook early August. So, I propose that we set this issue to rest for a while, and as soon as I install vimwiki on my new computer, I'll carry on testing.
--
First, I performed the series of command as per your guidance with the installation of macvim 7.3 (59 – I upgrade from 53 to 59 two days ago) and my usual plugin configuration.
With your list indented using "-" symbols, I get the following:
DEBUG> function! vimwiki#lst#ToggleListItem 4 4
DEBUG> function! s:is_list_item 4
DEBUG> function! s:rx_list_item
DEBUG> function! s:rx_list_item
DEBUG> function! s:rx_list_item
DEBUG> function! s:rx_list_item
DEBUG> function! s:find_next_list_item 4
DEBUG> function! s:rx_list_item
DEBUG> function! s:rx_list_item
DEBUG> function! s:rx_list_item
With your list indented using "*" symbols, I get the following:
Nota:
- The "*" symbol is highlighted
- [ ] turns into [X] on item 4, but nothing changes on item1
- Toggling item 1 switches [ ] to [X] and nothing happens to the children.
DEBUG> function! s:prev_list_item 1
DEBUG> function! s:is_cb_list_item 0
DEBUG> function! s:rx_cb_list_item
DEBUG> function! s:rx_list_item
DEBUG> function! s:find_next_list_item 4
DEBUG> function! s:rx_list_item
Then, I got rid of all my plugins, clean-sourced the vimwiki 1.2 vimball, emptied my .vimrc to only contain the following lines, and tried again. To my dismay, whereas <leader>ww does open wiki_1, <CR> does not follow links and <C-Space> does not toggle anything.
""""
" VimWiki
""""
let wiki_1 = {}
let wiki_1.path = '~/Documents/Dropbox/MyWiki'
let wiki_1.syntax = 'media'
let wiki_1.nested_syntaxes = {'python': 'python', 'c++': 'cpp'}
let wiki_2 = {}
let wiki_2.path = '~/Documents/Dropbox/MyPublicWiki'
let wiki_2.syntax = 'media'
let wiki_2.nested_syntaxes = {'python': 'python', 'c++': 'cpp', 'shell': 'sh'}
let g:vimwiki_list = [wiki_1, wiki_2]
let g:vimwiki_use_calendar = 1
let vimwiki_timetrack = "~/Documents/Dropbox/MyWiki/LogTimeTrackCSV.wiki"
> <lst.vim>
I did get my new macbook, and the very first thing I installed was Macvim+vimwiki. I did some tests, and I found why toggling todo items didn't work. Apparently, in a barebone vimrc file, the following line makes the regex go wrong – commenting it out solved the issue:
let wiki_1.syntax = 'media'
The barebone vimrc file I used looks like that:
set nocompatible
filetype plugin on
syntax on
let wiki_1 = {}
let wiki_1.path = '~/Dropbox/MyWiki'
let wiki_1.syntax = 'media'
let wiki_1.nested_syntaxes = {'python': 'python', 'c++': 'cpp'}
let wiki_2 = {}
let wiki_2.path = '~/Dropbox/MyPublicWiki'
let wiki_2.syntax = 'media'
let wiki_2.nested_syntaxes = {'python': 'python', 'c++': 'cpp', 'shell': 'sh'}
let g:vimwiki_list = [wiki_1, wiki_2]
I believe I must have extrapolated the .syntax lines from the paragraph in the help file describing how to define wikis as dictionaries, adding in the vimwiki-option-syntax.
Any thoughts?
Etienne
Hi guys,I did get my new macbook, and the very first thing I installed was Macvim+vimwiki. I did some tests, and I found why toggling todo items didn't work. Apparently, in a barebone vimrc file, the following line makes the regex go wrong – commenting it out solved the issue:
let wiki_1.syntax = 'media'