soywiki 0.3.2 → 0.3.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 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; if there is nothing
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
@@ -1,7 +1,7 @@
1
1
  require 'string_ext'
2
2
 
3
3
  module Soywiki
4
- VERSION = '0.3.2'
4
+ VERSION = '0.3.3'
5
5
  WIKI_WORD = /\b([a-z][\w_]+\.)?[A-Z][a-z]+[A-Z]\w*\b/
6
6
  HYPERLINK = %r|\bhttps?://[^ >)\n\]]+|
7
7
 
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 link . " is not a wiki link"
142
+ echom "'" . expand("<cWORD>") . "' is not a wiki link"
142
143
  return ""
143
144
  elseif line('.') == 1
144
145
  " SPECIAL CASE
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 2
9
- version: 0.3.2
8
+ - 3
9
+ version: 0.3.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi