soywiki 0.1.2 → 0.1.3
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.
- data/README.markdown +8 -7
- data/lib/soywiki.rb +1 -1
- data/lib/soywiki.vim +8 -9
- metadata +2 -2
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
|
129
|
-
* Both `
|
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
|
-
* `,
|
342
|
-
* `,
|
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
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(
|
534
|
-
nnoremap <buffer> <c-n> :call <SID>follow_link_under_cursor(
|
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,
|
550
|
-
noremap <buffer> <leader>X :call <SID>expand(1,
|
551
|
-
noremap <buffer> <leader>
|
552
|
-
noremap <buffer> <leader>
|
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
|
|