Folks, imagin I have a dictionary tiddler, or line delimited text tiddler, the text field is not normaly wikitext rendered because its main use is by reference from other tiddlers. Any wikitext or tiddlywiki script if it exists can only be valid within a single line.
I would love to have a line editor (for want of a better name) that allows you to view the tiddler, then clicking somewhere in the tiddler allows you to edit a line at a time. Lets call this current line, On enter save the line back to its place in the text field and edit the next line. Similarly hit insert to add a line after the current line or at the end to add lines to the bottom.
Edited
perhaps this solution could be extended to a cell editor such as in a csv, table cell etc,
I raise this here because amongst our developer comuniity I suspect there are some who may find it trivial to implement this.
- I would hope to use a view template cascade to triger this on a subset of tiddlers meeting a desired filter condition.
Idealy one could programaticaly invoke the perline editor and add aditional tiddlywiki script before and after so the designer could implement other code against each line, both in view and edit modes. eg delete line, insert line above/below, add something to the front of the line, wrapp [[ ]]
round the line etc…
- Perhaps if we could change the line delimiter from new line to other delimiters another set of possibilities open up? or even JavaScript data.
- Could we use a toolbar when editing each line?
- Could we drag and drop reorder lines in view mode?
Why?
This would provide a useful editor for the editing of such line based tiddlers as already exist in tiddlywiki but also others that may be designed to leverage it. eg edit a dictionary tiddler item, pallet tiddlers, csv etc…
It seems to me an interface that is missing from tiddlywiki, although codemirror is similar in its operation, although not obviously so. Perhaps we could leverage codemirror code?