kookma / TW-Commander

A tiddler toolkit for Tiddlywiki 5. Batch operations on bulk of tiddlers. Create, delete, add fields, tags, search and replace and inspect tiddlers.
https://kookma.github.io/TW-Commander/
49 stars 8 forks source link

Added Targets filter tiddler #12

Closed flibbles closed 4 years ago

flibbles commented 4 years ago

This is a change I made while trying to address the whole checkbox, commit, dropdown list thing. Instead of having every place reference the indexes of the selected tiddlers list, instead, have a single configuration tiddler which contains a filter used to obtain selected tiddlers.

If someone wants to make the Commander dropdown list inclusive rather than exclusive, they no longer have to touch all these files. They only update that one filter. They could do away with the checkbox list entirely and only have to edit one file.

In general, improves the hackability of Commander. There may be a few other touches that must be done before this is correct though.

kookma commented 4 years ago

@flibbles I have merged the PR and will make some experiments to see how it works. By the way still we need to have the check boxes and drop down lists

flibbles commented 4 years ago

I still think it can do without, but I'll take a crack at it soon and see whether I prove myself wrong.

kookma commented 4 years ago

Thanks please do it! I myself like the search and select inline with TW!