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

Option to ignore headers and/or prefer filenames to headers #310

Open
escapewindow opened this issue Apr 26, 2024 · 0 comments
Open

Option to ignore headers and/or prefer filenames to headers #310

escapewindow opened this issue Apr 26, 2024 · 0 comments

Comments

@escapewindow
Copy link

I have an Obsidian markdown vault that has these features:

  • File a/b/string.md exists
  • Files with headers # string or ## string exist

When I turn on marksman on a file containing the string [[string]], I get warnings about Ambiguous link to document 'string'.

If I want to link to a header, I'm fine linking to [[other-file#string]]. (I rarely want to do this.)

Could we do one of these?

  1. Given ambiguous links between a single filename and one or more headers, always choose the filename without warning
  2. Add a pref to ignore/disable [[header]] links, and only allow [[filename]] or `[[filename#header]`` links
  3. Add an option to suppress the warning if a single file with the matching string exists, even if one or more headers with the matching string exist
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

1 participant