Hi Jed Perhaps surprisingly, this widget performs the same function as your widget, but by very different methods.
I too began my experiments with the direct approach, using several attributes to specify: -- which list to modify -- what to add/remove from the list -- where to place the items to be added to the list The problem I anticipated with this approach -- the numerous uses to which lists are put. This renders the construction of an all purpose widget very difficult. I began experimenting with the use of filters to modify the list, as this enables a user to construct filters suitable for the task at hand. The initial results 'out of the box', using the existing filter set, appeared promising: -- multiple items could be added or removed -- the list could be sorted in a variety of ways -- prefixes and suffixes could be added/removed to the items -- items could be removed by prefix/suffix The hurdle was that -- there were no filters to insert items at particular positions in the list -- items were always appended to the tail of the list. I have been writing a few filters to remedy this situation. The filters simply move items from the tail of the list (where they have been appended), to the desired location. I now have filters that are equivalent to: 'move before mark' 'move after mark' 'replace mark' and 'move to head of list'. So far these target the first item matching the mark -- repeating the filter would target the first and second matches. This approach seems to be sound; the basic action widget is very simple (all it does is take the list in the target field as input, apply the filters, and save the modified list back to the target field.) There will be no need to change this basic widget -- to add functionality, only extra filters need be constructed (this is not difficult.) Play around with the widgets and filters and see what you think -- the latest version can be found here <http://listops.tiddlyspot.com/>. I don't know what your original aims were, but it would be interesting to know what other filters would be required to achieve these aims (I notice your widget also has 'remove before mark' and 'remove after mark'.) regards On Friday, 16 October 2015 19:36:14 UTC+2, Jed Carty wrote: > > So this is for performing in-place filtering operations on fields? > I no longer think I understand what your goal is, but I don't think that > it is the same as what I made. > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/61767e8f-86c1-4b08-add8-aa5ec8ab4bbf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

