On Wednesday, June 17, 2020 at 5:00:58 PM UTC-3, Saq Imtiaz wrote:
>
>
> So the issue is that when you set tv-enable-drag-and-drop, it is only set 
> in that widget and its children.
> The import message is handled by the navigator widget which is an ancestor 
> of your widget.
>
> I use something like this:
>
> A tiddler called *$:/sq/macros/tv-auto-open-on-import* with the tag 
> *$:/tagsMacro* and the content:
> \define tv-auto-open-on-import()
> {{$:/config/tv-auto-open-on-import}}
> \end
>
>
I tried doing this without success. Not sure what I am doing wrong but it 
seemed to ignore the transcluded "no" setting and opened $:/Import anyways. 
I trying something similar by not using the transclusion and adding and 
removing the $:/tags/Macro. But it seems that macros are a bit sticky and 
once enabled, it stays that way until reload.

Your idea of using enlist is more elegant since it is list delimiter and 
spacing agnostic. I initially tried to use enlist but couldn't get it to 
work since I was using [] rather than {} ... it is the subtle things that 
get you ... I will likely forget about that the next time that I want to 
use enlist :]

However, I will end up blending our solutions to form:

<$list filter="[enlist{$:/Import}each[]]" variable=imported>
...
</$list>

I used to use "rest" (aka "bf" aka "butfirst") however switched to "each" 
since it will cull any number of preamble words/lines that appear in 
$:/Import in the future and not just a fixed quantity and will test the 
existence of the tiddlers before tagging them in case something goes 
sideways in the import. 

/Mike 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6d0c3a01-46f3-4c7b-b5b1-d59356eede93o%40googlegroups.com.

Reply via email to