Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 6:00 PM, Chad Perrin c...@apotheon.net wrote: Is there some way to check out the wiki and make edits as one would for standard repository files, to be committed like standard repository files, rather than always having to use a browser to edit the wiki? I Kinda of:

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 6:04 PM, Stephan Beal sgb...@googlemail.com wrote: 'commit' to save the changes. Unfortunate there's not a direct way to preview changes without saving unless you want to use the JSON API (which provides preview feature for wiki text passed to it). If that feature

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Chad Perrin
On Wed, Apr 23, 2014 at 06:04:18PM +0200, Stephan Beal wrote: On Wed, Apr 23, 2014 at 6:00 PM, Chad Perrin c...@apotheon.net wrote: Is there some way to check out the wiki and make edits as one would for standard repository files, to be committed like standard repository files, rather

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 6:29 PM, Chad Perrin c...@apotheon.net wrote: . . . so basically I need to list wiki pages to figure out what I want, export a page, edit that, then commit it to overwrite what's already there, one file at a time, rather than having a checked out directory of wiki

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Chad Perrin
On Wed, Apr 23, 2014 at 06:06:17PM +0200, Stephan Beal wrote: On Wed, Apr 23, 2014 at 6:04 PM, Stephan Beal sgb...@googlemail.com wrote: 'commit' to save the changes. Unfortunate there's not a direct way to preview changes without saving unless you want to use the JSON API (which provides

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Chad Perrin
On Wed, Apr 23, 2014 at 06:36:38PM +0200, Stephan Beal wrote: On Wed, Apr 23, 2014 at 6:29 PM, Chad Perrin c...@apotheon.net wrote: . . . so basically I need to list wiki pages to figure out what I want, export a page, edit that, then commit it to overwrite what's already there, one file

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 6:50 PM, Chad Perrin c...@apotheon.net wrote: Okay, yeah, that'll be handy -- but not suitable for my need/desire to make the wiki editable from the console (obviously), as I definitely need to make wiki pages available for editing from the web interface as well. Does

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Richard Hipp
On Wed, Apr 23, 2014 at 12:50 PM, Chad Perrin c...@apotheon.net wrote: Oh, never mind, the embedded docs won't do me any good, because I use FreeBSD, not GNU/Emacs. ??? What does your OS and editor choice have to do with anything? -- D. Richard Hipp d...@sqlite.org

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 6:52 PM, Richard Hipp d...@sqlite.org wrote: On Wed, Apr 23, 2014 at 12:50 PM, Chad Perrin c...@apotheon.net wrote: Oh, never mind, the embedded docs won't do me any good, because I use FreeBSD, not GNU/Emacs. ??? What does your OS and editor choice have to do

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Matt Welland
Here is a bash script that I use to edit wiki pages: Just use it like this: editwiki wikipagename === #!/bin/bash wikiname=$1 FOSSILBIN=/usr/local/bin/fossil if [ x$wikiname == x ];then echo Usage: viwiki wikipagename exit fi $FOSSILBIN sync wikitmpfile=`mktemp

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 6:53 PM, Matt Welland estifo...@gmail.com wrote: EDITOR=gvim -f Missing quotes? [stephan@host:~/cvs/fossil/fossil/src]$ EDITOR=gvim -f ec-f: command not found But this works: [stephan@host:~/cvs/fossil/fossil/src]$ EDITOR=emacs

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Matt Welland
On Wed, Apr 23, 2014 at 9:55 AM, Stephan Beal sgb...@googlemail.com wrote: On Wed, Apr 23, 2014 at 6:53 PM, Matt Welland estifo...@gmail.com wrote: EDITOR=gvim -f Missing quotes? [stephan@host:~/cvs/fossil/fossil/src]$ EDITOR=gvim -f ec-f: command not found But this works:

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Martin Gagnon
On Wed, Apr 23, 2014 at 06:53:04PM +0200, Stephan Beal wrote: On Wed, Apr 23, 2014 at 6:50 PM, Chad Perrin c...@apotheon.net wrote: Okay, yeah, that'll be handy -- but not suitable for my need/desire to make the wiki editable from the console (obviously), as I definitely need to

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 7:10 PM, Martin Gagnon eme...@gmail.com wrote: And when you edit with your local editor, you can visualize your change before commit using fossil ui and pointing your browser to http://localhost:8080/doc/ckout/../path/to/file.md Nice tip - i never thought of that (or

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Chad Perrin
On Wed, Apr 23, 2014 at 12:52:36PM -0400, Richard Hipp wrote: On Wed, Apr 23, 2014 at 12:50 PM, Chad Perrin c...@apotheon.net wrote: Oh, never mind, the embedded docs won't do me any good, because I use FreeBSD, not GNU/Emacs. ??? What does your OS and editor choice have to do with

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Stephan Beal
1) lol! 2) wikis are stored completely differently. It would possibly be less work to add online edit to embedded docs (currently has the problem of needing a checkout, but that is one of the things libfossil aims to make possible). (sent from a mobile device - please excuse brevity, typos, and