Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IDEA] Allow reversing the "order" of piped wikilinks' parameters #8906

Open
tomodachi94 opened this issue Jan 25, 2025 · 3 comments
Open

[IDEA] Allow reversing the "order" of piped wikilinks' parameters #8906

tomodachi94 opened this issue Jan 25, 2025 · 3 comments

Comments

@tomodachi94
Copy link

tomodachi94 commented Jan 25, 2025

Is your feature request related to a problem? Please describe.

I'm trying to interoperate with Obsidian.md. I currently have many notes with it that use the inverse of TiddlyWiki's piped wikilink syntax (Obsidian uses [[Tiddler Title|Displayed Link Title]]; for reference, TiddlyWiki uses [[Displayed Link Title|Tiddler Title]].)

Describe the solution you'd like

I would like to be able to set a configuration option to switch the order of the display text and the link target.

Describe alternatives you've considered

I could attempt to use a script to convert the formats, but I would then lose interoperability with Obsidian.

I couldn't find a way to do this without modifying core, but I'd love to be proven wrong :)

@pmario
Copy link
Member

pmario commented Jan 25, 2025

It should be possible to create a plugin, but it would cause a lot of side effects. The TW UI is based on wikitext. So everywhere where the TW syntax is used it would break the core.

There may be a possibility to create a pragma, that can be used on a per tiddler basis. The problem is, that the TW markdown-plugin also uses the TW syntax.

So there will be a lot of work that would need to be done. -- I personally would not recommend it.

I would use the default markdown syntax for links [link text](URL)

@Jermolene
Copy link
Member

Hi @tomodachi94 my first thought would be that the TiddlyWiki Markdown plugin might make an easier target than native TiddlyWiki wikitext.

I am not sure how closely Obsidian matches the Markdown spec that we use. If necessary we could consider a special Obsidian mode.

Closely related, I don't know how easy it is to import Obsidian data into TiddlyWiki, but I'd be happy to see an Obsidian importer in the core if necessary.

@tomodachi94
Copy link
Author

I don't know how easy it is to import Obsidian data into TiddlyWiki

It's fairly easy if you don't make use of YAML frontmatter. I had to write a script to process it into a .meta file, which added some difficulty.

I would use the default markdown syntax for links link text

I ended up starting another script to process all of the "piped" wikilinks into Markdown links, but didn't finish.

I am not sure how closely Obsidian matches the Markdown spec that we use

Here is a list of all of their custom Markdown extensions, if that's helpful: https://help.obsidian.md/Editing+and+formatting/Obsidian+Flavored+Markdown

I'd be happy to see an Obsidian importer in the core if necessary.

I'll post here (or perhaps in another issue) if I encounter other "conversion" steps that I needed to take to get things working smoothly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants