Skip to content

Commit 78ee713

Browse files
habamaxvim-scripts
authored andcommitted
Version 1.1.1
Follow up bugfix release. * FIX: Issue 122: Dot character in vimwiki's directory path isn't escaped. * FIX: Issue 123: Where is Vimwiki2HTML and other commands? Sometimes filetype is not set up to vimwiki. * FIX: Issue 124: Highlight group not found: Normal
1 parent 458c453 commit 78ee713

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

autoload/vimwiki.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,10 @@ endfunction "}}}
546546

547547
function vimwiki#get_hl_param(hgroup, hparam) "{{{
548548
redir => hlstatus
549-
exe "silent hi ".a:hgroup
549+
try
550+
exe "silent hi ".a:hgroup
551+
catch /E411/
552+
endtry
550553
redir END
551554
return matchstr(hlstatus, a:hparam.'\s*=\s*\zs\S\+')
552555
endfunction "}}}

doc/vimwiki.txt

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
|___| |___| |_| |_||__| |__||___| |___| |_||___| ~
1010

1111

12-
Version: 1.1
12+
Version: 1.1.1
1313

1414
==============================================================================
1515
CONTENTS *vimwiki-contents*
@@ -374,7 +374,9 @@ ic Inner column in a table.
374374

375375
*:VimwikiSearch* /pattern/
376376
*:VWS* /pattern/
377-
Search for /pattern/ in current wiki.
377+
Search for /pattern/ in all files of current wiki.
378+
To display next match use |:cnext| command.
379+
To display previous match use |:cprevious| command.
378380

379381

380382
*:VimwikiTable*
@@ -1648,6 +1650,12 @@ Maxim Kim.
16481650
==============================================================================
16491651
14. Changelog *vimwiki-changelog*
16501652

1653+
1.1.1~
1654+
* FIX: Issue 122: Dot character in vimwiki's directory path isn't escaped.
1655+
* FIX: Issue 123: Where is Vimwiki2HTML and other commands? Sometimes
1656+
filetype is not set up to vimwiki.
1657+
* FIX: Issue 124: Highlight group not found: Normal
1658+
16511659
1.1~
16521660
* NEW: Issue 57: Make it possible to have pre block inside list item.
16531661
* NEW: Issue 82: Add quick goto command. See |:VimwikiGoto|.
@@ -1665,7 +1673,7 @@ Maxim Kim.
16651673
* FIX: Issue 96: Closing bracket at the end of weblink shouldn't be a part
16661674
of that link.
16671675
* FIX: Issue 97: Error opening weblink in a browser if it has # inside.
1668-
* FIX: Issue 99: Vim is not responing while opening arbitrary wiki file.
1676+
* FIX: Issue 99: Vim is not responding while opening arbitrary wiki file.
16691677
* FIX: Issue 100: Additional content on diary index page could be
16701678
corrupted.
16711679
* NEW: Issue 101: Customized HTML tags. See |g:vimwiki_valid_html_tags|

plugin/vimwiki.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ augroup vimwiki
299299
for ext in keys(extensions)
300300
exe 'autocmd BufEnter *'.ext.' call s:setup_buffer_enter()'
301301
exe 'autocmd BufLeave,BufHidden *'.ext.' call s:setup_buffer_leave()'
302-
exe 'autocmd BufNewFile,BufRead, *'.ext.' setf vimwiki'
302+
exe 'autocmd BufNewFile,BufRead, *'.ext.' setlocal filetype=vimwiki'
303303

304304
" ColorScheme could have or could have not a
305305
" VimwikiHeader1..VimwikiHeader6 highlight groups. We need to refresh
@@ -364,7 +364,7 @@ function! s:build_menu(topmenu)
364364
let idx = 0
365365
while idx < len(g:vimwiki_list)
366366
let norm_path = fnamemodify(VimwikiGet('path', idx), ':h:t')
367-
let norm_path = escape(norm_path, '\ ')
367+
let norm_path = escape(norm_path, '\ \.')
368368
execute 'menu '.a:topmenu.'.Open\ index.'.norm_path.
369369
\ ' :call vimwiki#goto_index('.(idx + 1).')<CR>'
370370
execute 'menu '.a:topmenu.'.Open/Create\ diary\ note.'.norm_path.

0 commit comments

Comments
 (0)