marksman icon indicating copy to clipboard operation
marksman copied to clipboard

Option to ignore headers and/or prefer filenames to headers

Open escapewindow opened this issue 9 months ago • 0 comments

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

escapewindow avatar Apr 26 '24 14:04 escapewindow