-
Notifications
You must be signed in to change notification settings - Fork 209
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
Index wikilinks in frontmatter strings #1066
Index wikilinks in frontmatter strings #1066
Conversation
Short demo of what it allows, credit to Raphwriter |
Would be nice to make them clickable, but I think that becomes a much larger feature, since they shouldn't hide the Considering #736 this would be almost like another editor mode when inside frontmatter: different widgets, different autocomplete etc., I don't know how I would approach that. Hope this bit here helps |
I have this test page:
I would expect 2 entries in Then, when I rename |
Funnily enough, it did work in a small test space, but in my main one, I can't get the frontmatter mention to show up at all. I will look into it more these days, thanks for the heads up 👍 |
c84d2cd
to
8ca9cd7
Compare
Sorry for the delay, but the error was actually quite inconsistent to replicate. At the end I found it's a problem when reusing a Regex object with a global flag for multiple References: There are multiple places in the codebase with |
8ca9cd7
to
96d489c
Compare
Seems to work as advertised now. Thanks! |
And interesting that these regexes are indeed stateful, I don't like that. It may indeed be better not to define them as globals in that case... Labeling them as |
This implements #1000
The link is indexed only if it is the full content of a string node (allowing for quotes and whitespace) to discourage writing essays in the frontmatter 😄
I added an explanation why the quotes are needed on YAML page, I can't think of a page to document that the feature exists at all, I think it's discoverable by looking at
indexPage
in SETTINGS