soywiki 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -124,9 +124,9 @@ commands:
124
124
  * `CTRL-k` and `CTRL-j` move the cursor directly to the next or previous WikiLink on the page
125
125
  * `ENTER` follows the WikiLink under the cursor
126
126
  * `,f` follows the first WikiLink after the cursor
127
- * `CTRL-l` opens a WikiLink in a split window
128
- * `CTRL-n` does the same, but in a vertical split window
129
- * Both `q` and `CTRL-h` close a split window
127
+ * `CTRL-l` opens a WikiLink in a vertical split window
128
+ * `CTRL-n` does the same, but in a regular split window
129
+ * Both `CTRL-h` and `q` close a split window
130
130
 
131
131
  These key mappings may not be very mnemonic, but they are easy to
132
132
  memorize through muscle memory and were chosen to keep the hands
@@ -336,10 +336,11 @@ this has happened by including markers along with the WikiWord that was
336
336
  expanded. Seamless expansion does not mark a point of expansion with
337
337
  anything, and it erases the WikiWord that got expanded.
338
338
 
339
- * `,x` expands a wiki page seamfully
340
- * `,X` expands a wiki page seamlessly
341
- * `,vx` expands a wiki page seamfully and opens on a vertical split
342
- * `,vX` expands a wiki page seamlessly and opens on a vertical split
339
+ * `,x` expands a wiki page seamfully and opens on a vertical split
340
+ * `,X` expands a wiki page seamlessly and opens on a vertical split
341
+ * `,nx` expands a wiki page seamfully and opens on normal split
342
+ * `,nX` expands a wiki page seamlessly and opens on a normal split
343
+ * `q` closes the expanded view window
343
344
 
344
345
  Both modes of expansion are useful when you want to assemble a long
345
346
  piece of writing by using one page as a master outline that links to
data/lib/soywiki.rb CHANGED
@@ -20,7 +20,7 @@ end
20
20
 
21
21
 
22
22
  module Soywiki
23
- VERSION = '0.1.2'
23
+ VERSION = '0.1.3'
24
24
  WIKI_WORD = /\b([a-z][\w_]+\.)?[A-Z][a-z]+[A-Z]\w*\b/
25
25
 
26
26
  def self.run
data/lib/soywiki.vim CHANGED
@@ -155,9 +155,9 @@ func! s:load_page(page, split)
155
155
  call writefile([title, '', ''], file)
156
156
  endif
157
157
  if (a:split == 2)
158
- exec "vsplit ". file
158
+ exec "botright vsplit ". file
159
159
  else
160
- exec "split ". file
160
+ exec "botright split ". file
161
161
  endif
162
162
  if (a:split == 0)
163
163
  wincmd p
@@ -530,8 +530,8 @@ func! s:prep_buffer()
530
530
  if (s:is_wiki_page())
531
531
  set textwidth=72
532
532
  nnoremap <buffer> <cr> :call <SID>follow_link_under_cursor(0)<cr>
533
- nnoremap <buffer> <c-l> :call <SID>follow_link_under_cursor(1)<cr>
534
- nnoremap <buffer> <c-n> :call <SID>follow_link_under_cursor(2)<cr>
533
+ nnoremap <buffer> <c-l> :call <SID>follow_link_under_cursor(2)<cr>
534
+ nnoremap <buffer> <c-n> :call <SID>follow_link_under_cursor(1)<cr>
535
535
  noremap <buffer> <leader>f :call <SID>follow_link(0)<CR>
536
536
  noremap <buffer> <c-j> :call <SID>find_next_wiki_link(0)<CR>
537
537
  noremap <buffer> <c-k> :call <SID>find_next_wiki_link(1)<CR>
@@ -546,11 +546,10 @@ func! s:prep_buffer()
546
546
  command! -buffer SWBlame :call s:show_blame()
547
547
  noremap <buffer> <leader>b :call <SID>show_blame()<CR>
548
548
 
549
- noremap <buffer> <leader>x :call <SID>expand(0,0)<CR>
550
- noremap <buffer> <leader>X :call <SID>expand(1,0)<CR>
551
- noremap <buffer> <leader>vx :call <SID>expand(0,1)<CR>
552
- noremap <buffer> <leader>vX :call <SID>expand(1,1)<CR>
553
- noremap <buffer> <leader>VX :call <SID>expand(1,1)<CR>
549
+ noremap <buffer> <leader>x :call <SID>expand(0,1)<CR>
550
+ noremap <buffer> <leader>X :call <SID>expand(1,1)<CR>
551
+ noremap <buffer> <leader>nx :call <SID>expand(0,0)<CR>
552
+ noremap <buffer> <leader>nX :call <SID>expand(1,0)<CR>
554
553
 
555
554
  noremap <silent> <leader>? :call <SID>show_help()<cr>
556
555
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi