Take a look at TiddlyTools/Editable (pronounced “edit table”). It does something very similar to your “Wrangler”, but with quite a few additional features:
- Enter/choose a filter to get an initial list of matching tiddlers (e.g.,
[tag[Character]]
- just like the $:/AdvancedSearch > Filters tab)
- Next, select specific tiddlers from the left listbox of matching tiddlers. Use “All/None” buttons or listbox keyboard modifiers (shift-click and/or ctrl-click) to select multiple tiddlers.
- Next, select from the right listbox to choose fieldnames from those selected tiddlers. Use “All/None” buttons or listbox keyboard modifiers (shift-click and/or ctrl-click) to select multiple fieldsnames.
- A table grid view is shown, where rows are tiddlers and columns are fields. Table display options include:
- Choose how many rows to show at a time (5,10,15,20,25,50,100, or all). When there are more tiddlers than the chosen row count, controls are shown for “<<” (first page), “<” (previous page), “>” (next page), and “>>” (last page).
- Select which field to sort by in ascending or descending order. You can also click on any column header to sort by that field (ascending or descending order).
- Options for “wrap text”, “omit missing fields”, and “read-only”.
- Unless the “read-only” option is checked, individual table cells are directly editable as multi-line textarea inputs.
- While editing a table cell, the value stored in the corresponding tiddler field is immediately updated in the usual manner. As long the input focus remains in that table cell, you can press escape to cancel those changes and revert to the previous tiddler field value. However, once the input focus leaves that table cell, any changes you have made cannot be undone.
In addition to editing individual table cells:
- You can perform a keyword text search to “find matching content” within the table cells. The text search input can include multiple space-separated keywords, and is case-sensitive.
- Table cells with matching content are enabled for editing, while fields without matching content are automatically disabled and grayed-out. If “find matching content” is left blank, all table cells remain editable.
- You can also use the “replace with” input to perform a global
search-replace[...],[...]
filter and/or the “apply filter” input to use a custom filter syntax (e.g., the [split[, ]format:titlelist[]join[ ]]
filter from your Wrangler demo) to “transform” text within the enabled table cells.
- The checkboxes in the column headings let you indicate which fields the “replace with” and “apply filter” inputs are allowed to modify.
- Once you have entered “replace with” and/or “apply filter” inputs and selected the desired column heading checkboxes, press the ✓ buttton to perform the “change field values” actions.
The first column in the table shows the tiddler titles, which are NOT editable. These titles are links to the individual tiddlers so you can quickly navigate directly to any desired tiddler.
- The title column heading has a button to toggle the global “update timestamp” setting (so changes can be made without updating the tiddler
modified
field values)
- There are also buttons to “add a new field” (fieldname and value) to all tiddlers currently shown in the table, as well as to delete all tiddlers currently shown in the table (with a confirmation, of course!)
- You can use the checkbox to the left of an individual title to deselect (remove) that tiddler from the table. This is equivalent to using ctrl-click in the listbox of matching tiddlers to deselect individual titles, but is much more direct since it doesn’t involve scrolling the listbox or using modifier keys.
- There are also buttons that allow you to “clone” or “delete” any individual tiddler title without needing to navigate directly to that tiddler.
@stobot: Note that TiddlyTools/Editable is written using only wikitext (no JS plugins), and is self-contained within that single tiddler so you can use drag-and-drop to add TiddlyTools/Editable to your “Wrangler” demo, and then try it out on your [tag[Character]]
Star Wars data.
Hope you like it… let me know what you think…
enjoy,
-e