-
Notifications
You must be signed in to change notification settings - Fork 37
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
Support wiki links titles #136
Comments
Thanks for raising this @gmcusaro. Supporting titles in wiki-links definitely makes sense. |
ooooh man. this would make my year!! 🥲 |
Hello, I don't know much F# but I wouldn't mind giving this a shot if it's just a matter of changing a regex or similar and you can point me to the relevant section of the code 😬 ...because Obsidian often automatically creates notes with titles/aliases, e.g. to hide |
@eguiraud sounds good! Not quite "tweaking a regex" experience, because the parsing library wants to do it in a 'char-by-char matching' way, but the relevant section of the parser is this one And you would probably want to tweak this definition of a wiki link to also include the title node. LMK if you decide to give it a shot! |
Hello, yes I can try to give this a shot either this week or the next. |
With this patch wikilinks of the form [[doc#heading|title]] are correctly recognized as links to doc#heading. Also go-to-definition works as normal. This fixes artempyanykh#136.
With this patch wikilinks of the form [[doc#heading|title]] are correctly recognized as links to doc#heading. Also go-to-definition works as normal. This fixes artempyanykh#136.
With this patch wiki links of the form [[doc#heading|title]] are correctly recognized as links to doc#heading. Also go-to-definition works as normal. This fixes #136.
year made ✅. thanks @eguiraud |
Happy to help! |
As mentioned in docs:
and in this reply, like in Obsidian and Foam it could be really useful to add a
|
for a title/alias to the slug or filename/path:[[destination|title]]
Example:
Check my [[short-bio|bio]]
Preview:
Check my bio
The text was updated successfully, but these errors were encountered: