soywiki 0.6.7 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -452,11 +452,17 @@ system at all. It's all plain text to SoyWiki. The HTML export feature
452
452
  just wraps your content in <pre> tags after turning your WikiWords
453
453
  into hyperlinks, so no markup system is really necessary.
454
454
 
455
- In the future, the HTML export feature may let you specify a markup
456
- system for rendering your content. Another possible feature is a Sinatra
457
- application that translates wiki pages into web pages upon request.
455
+ HTML export is no-frills and basic. Hopefully, someday, SoyWiki will be
456
+ able to
458
457
 
459
- If you want to contribute such features, please feel free to implement
458
+ * sport an alternative web interface that is as cool as [TiddlyWiki's][tiddly] and [GTDTiddlyWiki's][gtd]
459
+ * let you specify a markup system for rendering the HTML version of your content
460
+ * come bundled with a Sinatra application that translates wiki pages into web pages upon request
461
+
462
+ [tiddly]:http://www.tiddlywiki.com/
463
+ [gtd]:http://nathanbowers.com/gtdtw/
464
+
465
+ If you want to contribute any of these features, please feel free to implement
460
466
  them and submit a pull request.
461
467
 
462
468
 
data/bin/soywiki-rename CHANGED
@@ -33,7 +33,7 @@ def change_unqualified_inbound_links_in_same_namespace(oldname, newname)
33
33
  target_files.select {|f| f !~ /(\.swp|\.swo)$/}.each do |file|
34
34
  text = File.read(file)
35
35
  begin
36
- text = text.gsub(/(\A|\s)#{oldname.short_page_title}\b/, newname.to_page_title)
36
+ text = text.gsub(/(\A|\s)(#{oldname.short_page_title}\b)/, '\1' + newname.to_page_title)
37
37
  File.open(file, 'w') {|f| f.puts text}
38
38
  report file, oldname.short_page_title, newname
39
39
  rescue
@@ -86,7 +86,7 @@ if oldname.namespace == newname.namespace
86
86
  target_files.select {|f| f !~ /(\.swp|\.swo)$/}.each do |file|
87
87
  text = File.read(file)
88
88
  begin
89
- text = text.gsub(/(\A|\s)(#{oldname.short_page_title})\b/, newname.short_page_title)
89
+ text = text.gsub(/(\A|\s)(#{oldname.short_page_title})\b/, '\1' + newname.short_page_title)
90
90
  File.open(file, 'w') {|f| f.puts text}
91
91
  report file, oldname.short_page_title, newname.short_page_title
92
92
  rescue
data/lib/soywiki.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'string_ext'
2
2
 
3
3
  module Soywiki
4
- VERSION = '0.6.7'
4
+ VERSION = '0.7.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
@@ -370,6 +370,7 @@ function! s:page_list_window(page_match_list, buffer_name, prompt)
370
370
  setlocal buftype=nofile
371
371
  setlocal noswapfile
372
372
  setlocal modifiable
373
+ setlocal textwidth=0
373
374
  resize 1
374
375
  inoremap <silent> <buffer> <cr> <Esc>:call <SID>select_page()<CR>
375
376
  inoremap <buffer> <Tab> <Esc>:call <SID>reduce_matches()<cr>
@@ -409,7 +410,10 @@ function! CompletePageTitle(findstart, base)
409
410
  endfor
410
411
  else
411
412
  " autocomplete inline
412
- let pages = base =~ '\C^[a-z]' ? s:matching_pages : s:pages_in_this_namespace(s:matching_pages)
413
+ if ! exists("s:matching_pages")
414
+ let s:matching_pages = s:get_page_list()
415
+ endif
416
+ let pages = base =~ '\C^[a-z]' ? s:matching_pages[:] : s:pages_in_this_namespace(s:matching_pages[:])
413
417
  for m in pages
414
418
  if m =~ '^\c' . base
415
419
  call add(res, m)
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 6
8
7
  - 7
9
- version: 0.6.7
8
+ - 0
9
+ version: 0.7.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-02-20 00:00:00 -05:00
17
+ date: 2011-02-21 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency