web commit from 127.0.0.1
[ikiwiki] / doc / todo / terminalclient.mdwn
1 Hack together a local ikiwiki w/o a web server using w3m's cgi-less mode
2 and $EDITOR. Browse around a wiki, select pages to edit and get dropped
3 right into the editor and have the page committed to svn automatically.
4
5 Less grandiosely, a simple command line util to add a new page would be
6 useful, especially if it made it easy to add blog entries to the wiki. I
7 have a special purpose version of this in my [blog
8 script](http://kitenet.net/~joey/code/bin.html).
9
10 ----
11
12 w3m's cgi mode requires that cgis be in /usr/lib/w3m/cgi-bin/, and the url
13 for it can be $LIB/script. This presents a problem, since a regular user
14 can't add an ikiwiki wrapper to there (nor should they). But,
15 /usr/lib/w3m/cgi-bin/ikiwiki could be a meta-wrapper, that is passed the
16 path to the real wrapper in PATH_INFO, validates it, and runs the real
17 wrapper. So:
18
19 <a href="file:///$LIB/ikiwiki.cgi/home/joey/.ikiwiki/wrappers/ikiwiki.cgi">
20
21 Validation is important, because we don't want just any html document
22 including an evil w3m cgi that gets unintentionally run. The validation I'm
23 thinking of is that the ikiwiki meta-wrapper only runs wrappers in
24 $HOME/.ikiwiki/wrappers/, which the user presumably controls.