soywiki 0.9.8.2.pre → 0.9.8.2.pre.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/soywiki.rb +1 -1
- data/lib/soywiki.vim +9 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 852f7951e21ac3ddcd50c1ee5a841c3da53b7fa0
|
4
|
+
data.tar.gz: c397f50aae03a88286808554feef88a1e161961a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4a5c497bf7f0754481fbc909a52d8d9660c2647e3ccf509232bfd93d34b5860d214b23220c567d3bef0858cc745c50167f91bc015d55210dc948c613da432e3
|
7
|
+
data.tar.gz: f03b08f9d20fea4fd870ca3a2dc86f6f2c5aa416cdc83adfafeb71e60a28decbc42506b0414c35ccbc9878fda6ad264e4cc200c1e41243aef077ec4721f95aec
|
data/lib/soywiki.rb
CHANGED
@@ -2,7 +2,7 @@ require 'string_ext'
|
|
2
2
|
require 'path_helper'
|
3
3
|
module Template_Substitution; end
|
4
4
|
module Soywiki
|
5
|
-
VERSION = '0.9.8.2.pre'
|
5
|
+
VERSION = '0.9.8.2.pre.1'
|
6
6
|
WIKI_WORD = /\b([a-z0-9][\w_]+\.)?[A-Z][a-z]+[A-Z0-9]\w*\b/
|
7
7
|
SCHEMES = %w{https http file soyfile}
|
8
8
|
HYPERLINK = %r|\b(?:#{SCHEMES.join('|')})://[^ >)\n\]]+|
|
data/lib/soywiki.vim
CHANGED
@@ -570,13 +570,16 @@ func! s:insert_divider()
|
|
570
570
|
endfunc
|
571
571
|
"------------------------------------------------------------------------
|
572
572
|
" SEARCH
|
573
|
-
func! s:wiki_search(pattern, in_this_namespace)
|
573
|
+
func! s:wiki_search(pattern, in_this_namespace, display_list)
|
574
574
|
let pattern = (empty(a:pattern) ? @/ : a:pattern)
|
575
575
|
if a:in_this_namespace
|
576
576
|
execute printf('vimgrep/\c%s/ %s', pattern, s:page_namespace()."/*")
|
577
577
|
else
|
578
578
|
execute printf('vimgrep/\c%s/ %s', pattern, "*/*")
|
579
579
|
endif
|
580
|
+
if a:display_list
|
581
|
+
execute 'copen'
|
582
|
+
endif
|
580
583
|
endfunc
|
581
584
|
|
582
585
|
"------------------------------------------------------------------------
|
@@ -682,8 +685,11 @@ func! s:global_mappings()
|
|
682
685
|
command! -bar -nargs=1 -range -complete=file SWLinkAppend :<line1>,<line2>call s:extract(<f-args>, 'append', 1)
|
683
686
|
command! -bar -nargs=1 -range -complete=file SWLinkInsert :<line1>,<line2>call s:extract(<f-args>, 'insert', 1)
|
684
687
|
|
685
|
-
command! -bar -nargs=1 SWSearch :call s:wiki_search(<f-args>, 0)
|
686
|
-
command! -bar -nargs=1
|
688
|
+
command! -bar -nargs=1 SWSearch :call s:wiki_search(<f-args>, 0, 0)
|
689
|
+
command! -bar -nargs=1 SWS SWSearch <args>
|
690
|
+
command! -bar -nargs=1 SWSearchList :call s:wiki_search(<f-args>, 0, 1)
|
691
|
+
command! -bar -nargs=1 SWSL SWSearchList <args>
|
692
|
+
command! -bar -nargs=1 SWNamespaceSearch :call s:wiki_search(<f-args>, 1, 0)
|
687
693
|
|
688
694
|
autocmd BufReadPost,BufNewFile,WinEnter,BufEnter,BufNew,BufAdd * call s:highlight_wikiwords()
|
689
695
|
autocmd BufReadPost,BufNewFile,WinEnter,BufEnter,BufNew,BufAdd * call s:prep_buffer()
|