From 3197f9a639761e1e56b2f5b18b5f7cf5c3d992da Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 20 Mar 2017 22:00:14 +0000 Subject: [PATCH] Add select all/none checkbox to $:/Import Prompted by this discussion: https://groups.google.com/d/topic/tiddlywiki/MYBWCxOc_gM/discussion --- core/ui/ImportListing.tid | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/ui/ImportListing.tid b/core/ui/ImportListing.tid index d57ca6244..3247b329f 100644 --- a/core/ui/ImportListing.tid +++ b/core/ui/ImportListing.tid @@ -1,20 +1,32 @@ title: $:/core/ui/ImportListing \define lingo-base() $:/language/Import/ + \define messageField() message-$(payloadTiddler)$ \end + \define selectionField() selection-$(payloadTiddler)$ \end + \define previewPopupState() $(currentTiddler)$!!popup-$(payloadTiddler)$ \end + +\define select-all-actions() +<$list filter="[all[current]plugintiddlers[]sort[title]]" variable="payloadTiddler"> +<$action-setfield $field={{{ [addprefix[selection-]] }}} $value={{$:/state/import/select-all}}/> + +\end +
+<$checkbox tiddler="$:/state/import/select-all" field="text" checked="checked" unchecked="unchecked" default="checked" actions=<>> <> + <>