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 t

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

2014-04-23 Thread Chad Perrin
On Wed, Apr 23, 2014 at 07:22:20PM +0200, Stephan Beal wrote: > On Wed, Apr 23, 2014 at 7:10 PM, Martin Gagnon 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/

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 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 anythi

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 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 had forgotte

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 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 pag

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 wrote: > On Wed, Apr 23, 2014 at 6:53 PM, Matt Welland 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/fossi

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 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 [stephan@host:~/cvs/fossil/fossil/src]$ ;) -- -

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 /tmp/${USER}

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 wrote: > On Wed, Apr 23, 2014 at 12:50 PM, Chad Perrin 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? > He was

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 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:50 PM, Chad Perrin 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 the embedded

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 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

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 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" fe

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 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 stuff I can just e

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 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 h

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 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 would really help y

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 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: [stephan@host:

[fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Chad Perrin
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 have searched through the "fossil help -a" documentation and tried searching the fossil-