wikilabs / plugins

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

[Feature request] Use mode text/vnd.tiddlywiki for bundles while still displaying as list #143

Closed Marxsal closed 9 months ago

Marxsal commented 10 months ago

Describe the bug

Currently bundles are stored in text mode.

If you rename a tiddler, you can't depend on relink to rename the tiddler in the bundle because it won't process text tiddlers.

If you change the bundle type to text/vnd.tiddlywiki, then relink will work inside the bundle. But the list will not display nicely.

What would be ideal is if the bundles could use text/vnd.tiddlywiki, but the display view would still show a nicely formatted list.

Expected behavior

No response

To Reproduce

No response

Screenshots

No response

TiddlyWiki Configuration

TW files using relink to maintain links.

Additional context

No response

pmario commented 10 months ago

I'm not sure if the relink-plugin can be configured in a way, that it allows tiddler renaming with text/plain typed files. I need to read the relinks docs first

pmario commented 10 months ago

I'll have a look if bundler can use the view template body cascade to show text/plain instead of text/vnd.tiddlywiki, then relink would work in the normal way.

Marxsal commented 10 months ago

Relink has really extensive configuration, but when it comes to tiddler types, not so much:

By default, Relink treats the text body of most tiddlers as Wikitext. This includes all tiddlers that don't have a type field, or have a type field of text/vnd.tiddlywiki. However, different type fields will be relinked differently. For instance, Relink will ignore the text bodies of all text/plain tiddlers, because plain text doesn't have any links or references.

pmario commented 10 months ago

@Marxsal ... I'm changing the bundler plugin atm. It will use the field code-body: yes in the future instead of type: text/plain

This should make it possible for relinks to work. Can you test this and give feedback?

Marxsal commented 10 months ago

Test ... what? Is there new code somewhere? The newest repository entry is from a month ago.

I just did a quick test, and adding the code-body field does not interfere with relink, if that is the question.

Thanks!

pmario commented 10 months ago

If you remove the type-field and set code-body:yes -- then relink should work as expected.

I'm working with bundler atm. Switching from v0.5.2 to v1.0.0 and adding

Done:

Simple story related functions

image

A bit more info in the ViewTemplate for filtered bundles

image

ToDo

pmario commented 9 months ago

bundler V1.0.0 should do this: https://talk.tiddlywiki.org/t/intro-bundler-plugin-allows-you-to-create-export-import-configurations-and-save-them-as-a-bundle/5958/4?u=pmario