wikilabs / plugins

TW5 plugins: https://wikilabs.github.io
30 stars 8 forks source link

Bundles with filters export empty #105

Closed E-vd-H closed 3 years ago

E-vd-H commented 3 years ago

Demonstration on Youtube of the bundler plug-in is done based on tiddler lists, where the list contains the full array of tiddler titles. When exporting with the button (1) in the sidebar, the one in the information of the tiddler under bundle (2) or the one in the advanced search (3), this results correctly in JSON or *.tid files that contain the information of these riddlers in the bundle.

However when doing the same thing with a filter, e.g. [tag[abc]] instead of the fully spelled out array of tiddler titles, only the button (3) in the advanced search is exporting the content correctly. The export button in the Sidebar (1) and the one in the Info field of the tiddler (2) result in an empty JSON string: i.e. []. The same for TID exports.

I created the following tiddlers to demonstrate: Screenshot 2021-09-05 at 16 47 22

When I now try to export these in a JSON, or TID file by the button Screenshot 2021-09-05 at 16 52 00 on the left or the right,

Screenshot 2021-09-05 at 16 51 54

I get an empty file: Screenshot 2021-09-05 at 16 55 31

Doing the same with the Advanced Search export, by first selecting to open the list in the Advanced Search Screenshot 2021-09-05 at 16 59 09 and then selecting the export button

Screenshot 2021-09-05 at 17 01 00

results in the expected result (content wise, except for the name of the export file) Screenshot 2021-09-05 at 17 02 11

pmario commented 3 years ago

Hi, Thanks for the feedback. But I think you need to enable filtered bundles. .. The bundled list can not work with [tag[abc]] in it. ... I did mention a new video for filtered bundles, but I didn't do the video yet. ... Sorry

Filtered bundles are enabled with:

grafik

The configuration has to look like this:

grafik

pmario commented 3 years ago

@E-vd-H Eric, I do have to think about some improvements in the UI, since it shouldn't happen that users are confused like that. ... It needs to be more obvious that filtered bundles need to be enabled. ...

There are 2 different settings, because "filtered bundles" are compatible with the dropdown list in the Advanced Search tab. .. so if you create a "test" configuration and you have a look at the Advanced Search dropdown, it will be there.

E-vd-H commented 3 years ago

Thank you Mario. To me that was not so clear indeed. I tried it out in this way and I can confirm that with this explanation everything works as intended.

I will close the issues now and I thank you as well for all the good work in the last decade that you provided the community. Take care.