]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/paste_plugin.mdwn
response
[ikiwiki.git] / doc / todo / paste_plugin.mdwn
1 It was suggested that using ikiwiki as an alternative to pastebin services
2 could be useful, especially if you want pastes to not expire and be
3 cloneable.
4
5 All you really need is a special purpose ikiwiki instance that you commit
6 to by git. But a web interface for pasting could also be nice.
7
8 There could be a directive that inserts a paste form onto a page. The form
9 would have a big textarea for pasting into, and might also have a file
10 upload button (for uploading instead of pasting). It could also copy the
11 page edit form's dropdown of markup types, which would be especially useful
12 if using the highlight plugin to support programming languages. The default
13 should probably be txt, not mdwn, if the txt plugin is enabled.
14
15 (There's a lot of overlap between that and editpage of course .. similar
16 to the overlap between the comment form and editpage.)
17
18 When posted, the form would just come up with a new, numeric subpage
19 of the page it appears on, and save the paste there.
20
21 Another thing that might be useful is a "copy" (or "paste as new") action
22 on the action bar. This would take an existing paste and copy it into the
23 paste edit form, for editing and saving under a new id.
24
25 ---
26
27 A sample wiki configuration using this might be:
28
29 * enable highlight and txt
30 * enable anonok so anyone can paste; lock anonymous users down to only
31   creating new pastes, not editing other pages
32 * disable modification of existing pastes (how? disabling editpage would
33   work, but that would disallow setting up anonymous git push)
34 * enable comments, so that each paste can be commented on
35 * enable getsource, so the source to a paste can easily be downloaded
36 * optionally, enable untrusted git push