soywiki 0.9.8.2.pre → 0.9.8.2.pre.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/soywiki.rb +1 -1
  3. data/lib/soywiki.vim +9 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98a51fe1ebac00b9092d1bfe178f3a9d7f15d055
4
- data.tar.gz: 9574b97cebdf39046e3d64aa242aac22e99d1256
3
+ metadata.gz: 852f7951e21ac3ddcd50c1ee5a841c3da53b7fa0
4
+ data.tar.gz: c397f50aae03a88286808554feef88a1e161961a
5
5
  SHA512:
6
- metadata.gz: 29eace8db49ee376d82531f7742c0ef900c2bfd933d677665f5c38fca8a58e08772d07401771d73a5d04a4adff56625c636165783d3f53bef3e6d6205a4a505c
7
- data.tar.gz: 97d14aa79b5da98ad5e9b2929f09c75592314915bcb5dc8e59a30e37851f4e17ab139228216d8830951b91c400b0e402c667fe7b6574b64f7c5f063272d85ba5
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 SWNamespaceSearch :call s:wiki_search(<f-args>, 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()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soywiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8.2.pre
4
+ version: 0.9.8.2.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Choi