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

Auto rename backlinks #239

Open
iacore opened this issue Jun 25, 2024 · 9 comments
Open

Auto rename backlinks #239

iacore opened this issue Jun 25, 2024 · 9 comments

Comments

@iacore
Copy link

iacore commented Jun 25, 2024

In Obsidian, renaming a file will rename all the references to it.

How can I implement this in mycorrhiza?

@bouncepaw
Copy link
Owner

Not possible yet and hard to implement well with current architecture 💔 I want this feature for a couple of years already

@iacore
Copy link
Author

iacore commented Jun 25, 2024

what's the current architecture? do we make a new architecture?

it requires parsing all files and rewriting them. is that difficult?

@bouncepaw
Copy link
Owner

I'm slowly refactoring Mycorrhiza and Mycomarkup to make it more bearable.

it requires parsing all files and rewriting them. is that difficult?

It has many unexpected corner cases

@iacore
Copy link
Author

iacore commented Jun 25, 2024

I'm slowly refactoring Mycorrhiza and Mycomarkup to make it more bearable.

Have you checked Djot? I use it as the markup language for my websites. I really hope that I can use Djot with Mycorrhiza.

@bouncepaw
Copy link
Owner

There are no plans to support markups beside Mycomarkup.

@iacore
Copy link
Author

iacore commented Jun 26, 2024

but like, if i want to implement it, how would i do it? let's say, adding djot alongside of mycomarkup.

@bouncepaw
Copy link
Owner

but like, if i want to implement it, how would i do it? let's say, adding djot alongside of mycomarkup.

This would be a titanic effort, I promise you. From the get-go, I see these questions you will have to address:

  1. How to determine what markup is used in a hypha and how to choose markup for new hyphae.

    Choosing can be done with a dropdown. Storage can be done similarly to how Mycomarkup is stored, but instead of .myco files you would use .djot files.

    Another approach (similar to MoinMoin) would be to make the first line of hypha's text part special. If it says, idk, !djot, consider the document Djot. And the Djot document shall be stored in .myco files.

    Ergonomic-wise, I think both have their pros and cons, you would have to choose one.

  2. Adding transclusion and backlinks determination to Djot.

    Finding backlinks is not that hard, and telling Mycorrhiza about them isn't either. Transclusion is a mess, sorry.

Lucky for you, you wouldn't need to touch the Mycomarkup library!

Do you have a collection of Djot files you want to import? If so, I suggest you to write a converter instead that would turn all the Djot documents into Mycomarkup.

@iacore
Copy link
Author

iacore commented Jun 29, 2024

aaaaaaa i think i'll write my own wiki system and djot parser instead

@bouncepaw
Copy link
Owner

I did the same once, I understand you; good luck. When you start, please tell me, I like to learn all about new wiki engines.

Meanwhile, I'll keep the issue open for the titled problem.

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

2 participants