soywiki 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.markdown +4 -0
  2. data/lib/soywiki.rb +1 -1
  3. data/lib/soywiki.vim +10 -2
  4. metadata +2 -2
data/README.markdown CHANGED
@@ -311,6 +311,10 @@ this to other wiki pages that include the real content. And since
311
311
  expansion is recursive, you can effectively nest outlines within
312
312
  outlines, like dreams within dreams.
313
313
 
314
+ ## Getting help
315
+
316
+ Typing `,?` will open this webpage in a browser.
317
+
314
318
 
315
319
  ## Why CamelCase WikiLinks rule
316
320
 
data/lib/soywiki.rb CHANGED
@@ -27,7 +27,7 @@ end
27
27
 
28
28
 
29
29
  module Soywiki
30
- VERSION = '0.0.2'
30
+ VERSION = '0.0.3'
31
31
  WIKI_WORD = /\b([a-z][\w_]+\.)?[A-Z][a-z]+[A-Z]\w*\b|\.[A-Z][a-z]+[A-Z]\w*\b/
32
32
 
33
33
  def self.run
data/lib/soywiki.vim CHANGED
@@ -497,6 +497,14 @@ func! s:open_href()
497
497
  echom command
498
498
  endfunc
499
499
 
500
+ " --------------------------------------------------------------------------------
501
+ " HELP
502
+ func! s:show_help()
503
+ let command = g:SoyWiki#browser_command . ' ' . shellescape('http://danielchoi.com/software/soywiki.html')
504
+ call system(command)
505
+ endfunc
506
+
507
+
500
508
  "------------------------------------------------------------------------
501
509
 
502
510
  func! s:global_mappings()
@@ -537,11 +545,11 @@ func! s:prep_buffer()
537
545
  command! -buffer SWBlame :call s:show_blame()
538
546
  noremap <buffer> <leader>b :call <SID>show_blame()<CR>
539
547
 
540
-
541
-
542
548
  noremap <buffer> <leader>x :call <SID>expand(0)<CR>
543
549
  noremap <buffer> <leader>X :call <SID>expand(1)<CR>
544
550
 
551
+ noremap <silent> <leader>? :call <SID>show_help()<cr>
552
+
545
553
  set nu
546
554
  setlocal completefunc=CompletePage
547
555
  augroup <buffer>
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi