lib/soywiki.vim in soywiki-0.5.9 vs lib/soywiki.vim in soywiki-0.6.0
- old
+ new
@@ -239,11 +239,11 @@
endif
wincmd p
endif
echo system("git rm " . file)
- call system("git commit " . file . " -m 'deletion'")
+ call system("git commit -am 'page deletion'")
exec "bdelete " . bufnr
redraw
echom "Deleted " . file
endfunc
@@ -254,9 +254,10 @@
exe "echom '" . newfile . " already exists!'"
return
endif
if s:valid_wiki_word(page_title)
write!
+ call system("mkdir -p " . s:namespace_of_title(page_title))
let original_file = bufname('')
echo system("git mv " . original_file . " " . newfile)
call system("git commit -am 'rename wiki page'")
exec "!" . s:rename_links_command . original_file . " " . newfile
call system("git commit -am 'rename wiki links'")