soywiki 0.5.9 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -17,6 +17,7 @@ A quick overview of SoyWiki's characteristics and features:
17
17
  * autocompletion of wiki words
18
18
  * automated global renaming of wiki words
19
19
  * syntax colored wiki words
20
+ * can open web hyperlinks in external browser or inside Vim
20
21
  * outliner-like capability with expansion commands
21
22
  * operates on all POSIX systems (e.g. OS X, Linux, FreeBSD)
22
23
 
@@ -229,6 +230,9 @@ you'll be taken there automatically.
229
230
  `,n` lets you select from your namespaces. Choosing one will take you to
230
231
  the `HomePage` of that namespace.
231
232
 
233
+
234
+ ## Opening web hyperlinks
235
+
232
236
  * `,o` opens the first web hyperlink under or after the cursor in the default external web browser
233
237
  * `ENTER` opens the web hyperlink under the cursor in the default external web browser
234
238
  * `,O` opens the web hyperlink under the cursor in a vertical split window
data/lib/soywiki.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'string_ext'
2
2
 
3
3
  module Soywiki
4
- VERSION = '0.5.9'
4
+ VERSION = '0.6.0'
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
@@ -241,7 +241,7 @@ func! s:delete_page()
241
241
  endif
242
242
 
243
243
  echo system("git rm " . file)
244
- call system("git commit " . file . " -m 'deletion'")
244
+ call system("git commit -am 'page deletion'")
245
245
  exec "bdelete " . bufnr
246
246
  redraw
247
247
  echom "Deleted " . file
@@ -256,6 +256,7 @@ func! s:rename_page(page_path_or_title)
256
256
  endif
257
257
  if s:valid_wiki_word(page_title)
258
258
  write!
259
+ call system("mkdir -p " . s:namespace_of_title(page_title))
259
260
  let original_file = bufname('')
260
261
  echo system("git mv " . original_file . " " . newfile)
261
262
  call system("git commit -am 'rename wiki page'")
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 5
8
- - 9
9
- version: 0.5.9
7
+ - 6
8
+ - 0
9
+ version: 0.6.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi