TW-Trashbin icon indicating copy to clipboard operation
TW-Trashbin copied to clipboard

Integration with trashbin-mod ?

Open hchaase opened this issue 4 years ago • 1 comments

I have now made the mod as a macro (in a plugin for convenience)

If you like, I thought that you could include the macro call in your trashbin plugin in the next release. This way, my trash bin mod would work without overriding any of the trash bin tiddlers and the next release of trash bin would (properly) not require a new update of the trashbin-mod.

in $:/plugins/kookma/trashbin/macros/bulk-operation I added <<trashbin-mod "<Item>">> here

\define delete-trashed-tiddlers()
<$list filter="[tag[$:/tags/trashbin]search:title[$:/trashbin/]]" variable="Item">
<$action-deletetiddler $tiddler=<<Item>> /><<trashbin-mod "<Item>">>
</$list>
\end

and in $:/plugins/kookma/trashbin/ui/sidebar I added <<trashbin-mod "<currentTiddler>">>


\define delete-button()
<$button class="tc-btn-invisible" tooltip="Delete permanently">
{{$:/plugins/kookma/trashbin/images/times.svg}}
<$list filter="[list[$:/StoryList]] +[field:title<currentTiddler>>]" variable=ignore>
<$action-sendmessage $message="tm-close-tiddler" $param=<<<currentTiddler>> />
</$list>
<$action-deletetiddler $tiddler=<<currentTiddler>> /><<trashbin-mod "<currentTiddler>">>
</$button>
\end

$__plugins_kookma_trashbin_macros_bulk-operation.txt $__plugins_kookma_trashbin_ui_sidebar.txt

hchaase avatar Apr 03 '20 12:04 hchaase