Skip to content

[BUG] Issues linking to aliased pages #317

@paperclover

Description

@paperclover

Describe the bug
In the input popups, you can use [[ to link to pages, and this autocompletes to aliases exactly to how you can do so in the regular markdown editor, except these two use cases:

  • the frontmatter is a string of comma separated values like aliases: hello, world
  • the frontmatter is capitalized like Aliases: hello

To Reproduce
Steps to reproduce the behavior:

  1. Add a file with the frontmatter aliases: A, B or Aliases: A, B
  2. call inputPrompt() from a script or from a template variable
  3. start typing a link to the alias [[A
  4. observe the autocomplete popup

Expected behavior
to link

Screenshots

image

image

Desktop (please complete the following information):

  • OS: Linux
  • QuickAdd Version: 0.5.5
  • Obsidian Version: 1.0.3

Additional context
looking in the code it might need to be added here: https://github.com/chhoumann/quickadd/blob/master/src/gui/suggesters/fileSuggester.ts#L47-L63

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreleased

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions