soywiki 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +7 -3
- data/lib/soywiki.rb +1 -1
- data/lib/soywiki.vim +3 -2
- metadata +2 -2
data/README.markdown
CHANGED
@@ -168,9 +168,8 @@ You can navigate a SoyWiki wiki very quickly with the following
|
|
168
168
|
commands:
|
169
169
|
|
170
170
|
* `CTRL-j` and `CTRL-k` move the cursor directly to the next or previous WikiLink on the page
|
171
|
-
* `ENTER` follows the WikiLink under the cursor
|
172
|
-
under the cursor, `ENTER` is equivalent to `CTRL-w p` and moves the
|
173
|
-
cursor to the last accessed window
|
171
|
+
* `ENTER` follows the WikiLink under the cursor
|
172
|
+
* If there is nothing under the cursor, `ENTER` is equivalent to `CTRL-w p` and moves the cursor to the last accessed window
|
174
173
|
* `,f` follows the first WikiLink after the cursor
|
175
174
|
* `CTRL-l` opens a WikiLink in a vertical split window; press `CTRL-l` again
|
176
175
|
while the cursor is on the top line to close the new window
|
@@ -250,6 +249,11 @@ page. The form of the argument here should be `namespace/WikiWord`. You
|
|
250
249
|
may use command line file path autocomplete to fill out the namespace
|
251
250
|
subdirectory if it already exists.
|
252
251
|
|
252
|
+
Tip: I recommend not using :SWCreate to create wiki pages. Prefer the
|
253
|
+
method of writing a WikiLink and then traversing it. This will make your
|
254
|
+
wiki more interlinked, better organized, and easier to traverse in an
|
255
|
+
organic way.
|
256
|
+
|
253
257
|
Beyond the standard cut and paste, SoyWiki gives you four fast ways of
|
254
258
|
shuttling text from one wiki page to another.
|
255
259
|
|
data/lib/soywiki.rb
CHANGED
data/lib/soywiki.vim
CHANGED
@@ -129,7 +129,8 @@ endfunc
|
|
129
129
|
func! s:follow_link_under_cursor(split)
|
130
130
|
if expand("<cWORD>>") == ''
|
131
131
|
" just switch windows
|
132
|
-
wincmd p
|
132
|
+
silent wincmd p
|
133
|
+
echom "Switched to last accessed window"
|
133
134
|
return
|
134
135
|
endif
|
135
136
|
if match(expand("<cWORD>>"), s:http_link_pattern) != -1
|
@@ -138,7 +139,7 @@ func! s:follow_link_under_cursor(split)
|
|
138
139
|
endif
|
139
140
|
let link = s:link_under_cursor()
|
140
141
|
if link == ""
|
141
|
-
echom
|
142
|
+
echom "'" . expand("<cWORD>") . "' is not a wiki link"
|
142
143
|
return ""
|
143
144
|
elseif line('.') == 1
|
144
145
|
" SPECIAL CASE
|