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

Add option to generate Obsidian-compatible wiki links #728

Closed
wants to merge 6 commits into from

Conversation

BeltranLeo
Copy link

This PR adds a new option use_name_only for the wiki_link_func setting that generates links in the [[Foo]] format. This ensures compatibility with the Obsidian desktop app, which might not recognize links in the [[alias]] format.

Changes made:

  • Added the use_name_only option to wiki_link_func, which generates links using the filename and the relative path without the extension.
  • This configuration can be customized to better fit the folder structure of each user.
  • The use_name_only option differs from the existing use_alias_only, as use_alias_only might not work correctly with the desktop version if the alias is not identical to the filename.

Reason for the contribution:

The default autocompletion function generated links that were not recognized by the Obsidian desktop app, making note navigation more difficult. With this function, links are compatible and easy to use in both obsidian.nvim and the Obsidian app.

@BeltranLeo BeltranLeo closed this Sep 28, 2024
@BeltranLeo
Copy link
Author

I've encountered an error in the tests, so I will cancel this pull request for now. I'll fix the issue and open a new PR once everything is resolved. Thank you for your understanding.

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

Successfully merging this pull request may close these issues.

1 participant