From 9307d92590b5bfcfbb77eab1d682ae46e20be82e Mon Sep 17 00:00:00 2001 From: yaisog Date: Thu, 9 May 2024 09:48:07 +0200 Subject: [PATCH 1/2] Improve section on subfilter expressions --- editions/tw5.com/tiddlers/widgets/ActionListopsWidget.tid | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/editions/tw5.com/tiddlers/widgets/ActionListopsWidget.tid b/editions/tw5.com/tiddlers/widgets/ActionListopsWidget.tid index 3771ab44597..a2af2d0b042 100644 --- a/editions/tw5.com/tiddlers/widgets/ActionListopsWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/ActionListopsWidget.tid @@ -1,6 +1,6 @@ caption: action-listops created: 20141025120850184 -modified: 20230805103548113 +modified: 20240509074011368 myfield: tags: ActionWidgets Widgets title: ActionListopsWidget @@ -35,10 +35,12 @@ The above widget will toggle the presence of the element <<.value "List Item">> Similarly, if an element is to always be removed when it is present, the `-` / `:except` [[filter run prefix|Filter Expression]] can be used. Both of the following yield the same result: ``` -<$action-listops $subfilter="-[[List Item]]"/> -<$action-listops $subfilter="+[remove[List Item]]"/> +<$action-listops $subfilter="-[[ListItem]]"/> +<$action-listops $subfilter="+[remove[ListItem]]"/> ``` +<<.infoBox """Note that the parameter of the [[remove Operator]] is a [[Title List]]. To remove titles containing spaces, or to remove multiple titles, the individual titles must be wrapped in double square brackets, usually via a variable assignment. See //Filtered List Variable Assignment// in the [[SetWidget]] documentation to learn more.""">> + Without any prefixes, the filter run output is simply [[dominantly appended|Dominant Append]] to the list. See also the [[Examples|ActionListopsWidget (Examples)]]. From b1ebd70daaef957f247720a7d630bf444b7063fc Mon Sep 17 00:00:00 2001 From: yaisog Date: Thu, 9 May 2024 15:53:42 +0200 Subject: [PATCH 2/2] Further refinement of the info box. --- editions/tw5.com/tiddlers/widgets/ActionListopsWidget.tid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editions/tw5.com/tiddlers/widgets/ActionListopsWidget.tid b/editions/tw5.com/tiddlers/widgets/ActionListopsWidget.tid index a2af2d0b042..ec9faf68b44 100644 --- a/editions/tw5.com/tiddlers/widgets/ActionListopsWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/ActionListopsWidget.tid @@ -1,6 +1,6 @@ caption: action-listops created: 20141025120850184 -modified: 20240509074011368 +modified: 20240509135041526 myfield: tags: ActionWidgets Widgets title: ActionListopsWidget @@ -39,7 +39,7 @@ Similarly, if an element is to always be removed when it is present, the `-` / ` <$action-listops $subfilter="+[remove[ListItem]]"/> ``` -<<.infoBox """Note that the parameter of the [[remove Operator]] is a [[Title List]]. To remove titles containing spaces, or to remove multiple titles, the individual titles must be wrapped in double square brackets, usually via a variable assignment. See //Filtered List Variable Assignment// in the [[SetWidget]] documentation to learn more.""">> +<<.infoBox """Note that the parameter of the [[remove Operator]] is a [[Title List]]. To remove one or more titles containing spaces the individual titles must be wrapped in double square brackets, usually via a soft [[Filter Parameter]]. See //Filtered List Variable Assignment// in the [[SetWidget]] documentation to learn more.""">> Without any prefixes, the filter run output is simply [[dominantly appended|Dominant Append]] to the list.