soywiki 0.3.9 → 0.4.0

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.
Files changed (3) hide show
  1. data/lib/soywiki.rb +1 -1
  2. data/lib/soywiki.vim +5 -5
  3. metadata +3 -3
@@ -1,7 +1,7 @@
1
1
  require 'string_ext'
2
2
 
3
3
  module Soywiki
4
- VERSION = '0.3.9'
4
+ VERSION = '0.4.0'
5
5
  WIKI_WORD = /\b([a-z][\w_]+\.)?[A-Z][a-z]+[A-Z]\w*\b/
6
6
  HYPERLINK = %r|\bhttps?://[^ >)\n\]]+|
7
7
 
@@ -192,9 +192,9 @@ func! s:load_page(page, split)
192
192
  call writefile([title, '', ''], file)
193
193
  endif
194
194
  if (a:split == 2)
195
- exec "rightbelow vsplit ". file
195
+ exec "botright vsplit ". file
196
196
  elseif (a:split == 1)
197
- exec "rightbelow split ". file
197
+ exec "botright split ". file
198
198
  elseif (a:split == 0)
199
199
  exec "e ".file
200
200
  endif
@@ -475,7 +475,7 @@ func! s:extract(...) range
475
475
  endif
476
476
  call writefile([page_title, '', ''], file)
477
477
  endif
478
- exec "rightbelow vsplit ".file
478
+ exec "botright vsplit ".file
479
479
  else
480
480
  let targetWindow = bufwinnr(bufnr(file))
481
481
  exe targetWindow."wincmd w"
@@ -527,7 +527,7 @@ func! s:expand(seamless, vertical)
527
527
  let res = system(s:expand_command . " seamful " . bufname('%'))
528
528
  endif
529
529
  if a:vertical
530
- rightbelow vnew
530
+ botright vnew
531
531
  else
532
532
  new
533
533
  endif
@@ -567,7 +567,7 @@ func! s:global_mappings()
567
567
  noremap <silent> <leader>o :call <SID>find_next_href_and_open()<cr>
568
568
  nnoremap <silent> q :close<cr>
569
569
  " for netrw vertical split
570
- nnoremap ,O :exec "silent rightbelow vsplit ". expand("<cWORD>")<cr>
570
+ nnoremap ,O :exec "silent botright vsplit ". expand("<cWORD>")<cr>
571
571
 
572
572
  command! -bar -nargs=1 -range -complete=file SWAppend :<line1>,<line2>call s:extract(<f-args>, 'append', 0)
573
573
  command! -bar -nargs=1 -range -complete=file SWInsert :<line1>,<line2>call s:extract(<f-args>, 'insert', 0)
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 3
8
- - 9
9
- version: 0.3.9
7
+ - 4
8
+ - 0
9
+ version: 0.4.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi