soywiki 0.2.7 → 0.2.8
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 +18 -18
- data/Rakefile +1 -0
- data/lib/soywiki.rb +1 -1
- data/lib/soywiki.vim +6 -8
- data/website/soywiki-template.html +1 -1
- metadata +2 -2
data/README.markdown
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# SoyWiki
|
2
2
|
|
3
|
-
SoyWiki turns Vim into a powerful, lean, and fast wiki. It's got all
|
4
|
-
|
3
|
+
SoyWiki turns Vim into a powerful, lean, and fast wiki. It's got all the
|
4
|
+
protein of a more conventional wiki, but less saturated fat and no
|
5
5
|
cholesterol.
|
6
6
|
|
7
7
|
A quick overview of its characteristics and features:
|
@@ -26,15 +26,15 @@ and refactor wiki content at the speed of thought.
|
|
26
26
|
|
27
27
|
SoyWiki is good for tracking projects, contacts, ideas, and collecting
|
28
28
|
and organizing research. SoyWiki combines the affordances of notebooks,
|
29
|
-
index cards, and Post-it notes, and adds to them the power of
|
30
|
-
and
|
29
|
+
index cards, and Post-it notes, and adds to them the power of
|
30
|
+
hyperlinks, search, and automated refactoring.
|
31
31
|
|
32
|
-
SoyWiki makes a
|
32
|
+
SoyWiki makes a good writing aid, especially if you do your writing in
|
33
33
|
Vim. You can have SoyWiki open in multiple Vim windows, tabs, and
|
34
34
|
buffers, alongside any number of regular Vim windows. Throw in a bunch
|
35
35
|
of Vim abbreviations (`:help abbreviations`), a large monitor, and a
|
36
|
-
teapot, and you'll have your paper, essay,
|
37
|
-
|
36
|
+
teapot, and you'll have a powerful toolkit for writing your paper, essay,
|
37
|
+
book, or screenplay.
|
38
38
|
|
39
39
|
SoyWiki is free and open source.
|
40
40
|
|
@@ -245,11 +245,12 @@ Then, type
|
|
245
245
|
* `:SWLinkAppend [target]` performs `:SWAppend` and replaces the text with a WikiWord link
|
246
246
|
|
247
247
|
`[target]` is the name of the file that contains the wiki page you're
|
248
|
-
targeting. Press `TAB` for
|
248
|
+
targeting, e.g. `recipes/SoyRaspberrySmoothie`. Press `TAB` for
|
249
|
+
autocompletion help.
|
249
250
|
|
250
|
-
These commands will open the target page (if it isn't open already)
|
251
|
-
split window and insert or append the selected text into it. If
|
252
|
-
target page doesn't exist, it will be created.
|
251
|
+
These four commands will open the target page (if it isn't open already)
|
252
|
+
in a split window and insert or append the selected text into it. If
|
253
|
+
the target page doesn't exist, it will be created.
|
253
254
|
|
254
255
|
You can use these shortcuts:
|
255
256
|
|
@@ -325,12 +326,11 @@ upstream on some server for all your computers to push to and pull from.
|
|
325
326
|
|
326
327
|
|
327
328
|
If you want to edit a common SoyWiki with many other people, it's
|
328
|
-
probably best to set up a common upstream Git repository
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
user-friendly interface for distributed collaboration workflows.
|
329
|
+
probably best to set up a common upstream Git repository (e.g. on
|
330
|
+
GitHub, if the wiki content is for public consumption). This process
|
331
|
+
may be intimidating for non-programmers, so a future version of SoyWiki
|
332
|
+
may provide a more user-friendly interface for distributed collaboration
|
333
|
+
workflows.
|
334
334
|
|
335
335
|
|
336
336
|
|
@@ -378,7 +378,7 @@ of html pages. Type `soywiki --html` from the root directory of your wiki.
|
|
378
378
|
SoyWiki adds a few convenient Vim macros that you can use anytime.
|
379
379
|
|
380
380
|
|
381
|
-
*
|
381
|
+
* `\` in normal mode reformats the current paragraph. It is equivalent to
|
382
382
|
`gwap`. (`:help formatting`)
|
383
383
|
* `,-` inserts a long dashed line
|
384
384
|
* `,d` inserts the current date and time
|
data/Rakefile
CHANGED
@@ -31,6 +31,7 @@ desc "build and push website"
|
|
31
31
|
task :web => :build_webpage do
|
32
32
|
puts "Building and pushing website"
|
33
33
|
`scp website/soywiki.html zoe2@instantwatcher.com:~/danielchoi.com/public/software/`
|
34
|
+
`scp -r website/images-soywiki zoe2@instantwatcher.com:~/danielchoi.com/public/software/`
|
34
35
|
`open http://danielchoi.com/software/soywiki.html`
|
35
36
|
end
|
36
37
|
|
data/lib/soywiki.rb
CHANGED
data/lib/soywiki.vim
CHANGED
@@ -557,13 +557,7 @@ func! s:global_mappings()
|
|
557
557
|
noremap <silent> <leader>o :call <SID>find_next_href_and_open()<cr>
|
558
558
|
nnoremap <silent> q :close<cr>
|
559
559
|
|
560
|
-
|
561
|
-
nnoremap \ gwap
|
562
|
-
" insert a line
|
563
|
-
nmap <Leader>- o<Esc>k72i-<Esc><CR>
|
564
|
-
" insert date
|
565
|
-
map <Leader>d :r !date<CR>o
|
566
|
-
|
560
|
+
|
567
561
|
command! -bar -nargs=1 -range -complete=file SWAppend :<line1>,<line2>call s:extract(<f-args>, 'append', 0)
|
568
562
|
command! -bar -nargs=1 -range -complete=file SWInsert :<line1>,<line2>call s:extract(<f-args>, 'insert', 0)
|
569
563
|
command! -bar -nargs=1 -range -complete=file SWLinkAppend :<line1>,<line2>call s:extract(<f-args>, 'append', 1)
|
@@ -605,7 +599,11 @@ func! s:prep_buffer()
|
|
605
599
|
|
606
600
|
noremap <silent> <leader>? :call <SID>show_help()<cr>
|
607
601
|
|
608
|
-
|
602
|
+
nnoremap \ gwap
|
603
|
+
nmap <Leader>- o<Esc>k72i-<Esc><CR>
|
604
|
+
map <Leader>d :r !date<CR>o
|
605
|
+
|
606
|
+
" set nu
|
609
607
|
setlocal completefunc=CompletePageTitle
|
610
608
|
augroup <buffer>
|
611
609
|
au!
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<html lang="en">
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
5
|
-
<title>
|
5
|
+
<title>SoyWiki</title>
|
6
6
|
<link href="stylesheets-vmail/reset.css?{{timestamp}}" media="screen" rel="stylesheet" type="text/css" />
|
7
7
|
<link href="stylesheets-vmail/960.css?{{timestamp}}" media="screen" rel="stylesheet" type="text/css" />
|
8
8
|
<link href="stylesheets-vmail/text.css?{{timestamp}}" media="screen" rel="stylesheet" type="text/css" />
|