soywiki 0.6.1 → 0.6.2
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 +7 -6
- data/lib/soywiki.rb +2 -1
- metadata +2 -2
data/README.markdown
CHANGED
@@ -71,8 +71,6 @@ If you run into any PATH errors, try the following: Install the RVM
|
|
71
71
|
Version Manager, then install Ruby 1.9.2 through RVM, and then run `gem
|
72
72
|
install soywiki`. This should solve any installation issues.
|
73
73
|
|
74
|
-
On some systems you may run into a PATH issue, where the system can't find the
|
75
|
-
`soywiki` command after installation.
|
76
74
|
|
77
75
|
|
78
76
|
|
@@ -262,7 +260,7 @@ launching URLs in an external web browser. This lets me keep all my URL
|
|
262
260
|
bookmarks in regular text files and open, clip, and annotate them all in
|
263
261
|
SoyWiki and Vim. Using `netrw` helps your text editor rather than your
|
264
262
|
web browser dominate your workflow. And you tend to stay focused on
|
265
|
-
your task rather than going down the rabbit hole
|
263
|
+
your task rather than going down the rabbit hole of internet
|
266
264
|
distractions.
|
267
265
|
|
268
266
|
|
@@ -478,11 +476,10 @@ SoyWiki adds a few convenient Vim macros.
|
|
478
476
|
Typing `,?` will open the help webpage in a browser.
|
479
477
|
|
480
478
|
|
481
|
-
##
|
479
|
+
## CamelCase WikiLinks rule!
|
482
480
|
|
483
481
|
Some people don't like the CamelCase (a.k.a. WikiCase) wiki link
|
484
|
-
pattern. But SoyWiki
|
485
|
-
following reasons:
|
482
|
+
pattern. But SoyWiki stands with CamelCase.
|
486
483
|
|
487
484
|
* Besides being the original, CamelCase is the most elegantly minimalist approach to linking wiki pages together -- "with no additional markup whatsoever," [as Ward Cunningham put it][ward].
|
488
485
|
* It encourages you more than other wiki link patterns to create wiki pages with succinctly descriptive names that are easy to remember.
|
@@ -492,6 +489,10 @@ following reasons:
|
|
492
489
|
|
493
490
|
[ward]:http://c2.com/cgi/wiki?WikiCase
|
494
491
|
|
492
|
+
No wiki link pattern is perfect! All involve trade-offs. The CamelCase
|
493
|
+
pattern gives you a lot in return for its particular compromises.
|
494
|
+
|
495
|
+
|
495
496
|
## Bug reports and feature requests
|
496
497
|
|
497
498
|
SoyWiki is very new, so there are kinks and bugs to iron out and lot of
|
data/lib/soywiki.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'string_ext'
|
2
2
|
|
3
3
|
module Soywiki
|
4
|
-
VERSION = '0.6.
|
4
|
+
VERSION = '0.6.2'
|
5
5
|
WIKI_WORD = /\b([a-z][\w_]+\.)?[A-Z][a-z]+[A-Z]\w*\b/
|
6
6
|
HYPERLINK = %r|\bhttps?://[^ >)\n\]]+|
|
7
7
|
|
@@ -29,6 +29,7 @@ END
|
|
29
29
|
plugin_template = File.read(File.join(File.dirname(__FILE__), 'plugin.erb'))
|
30
30
|
vimscript_file = File.join(File.dirname(__FILE__), 'soywiki.vim')
|
31
31
|
plugin_body = ERB.new(plugin_template).result(binding)
|
32
|
+
`mkdir -p #{ENV['HOME']}/.vim/plugin`
|
32
33
|
File.open("#{ENV['HOME']}/.vim/plugin/soywiki_starter.vim", "w") {|f| f.write plugin_body}
|
33
34
|
else
|
34
35
|
vim = ENV['SOYWIKI_VIM'] || 'vim'
|