Skip to content

FileSuggester / OptionQuery argument to allow Suggester to link to Non-.md files for opening in external application #670

Description

@zacmanthedamned

Please fill out these Check-boxes

  • I checked for existing similar feature requests
  • I have read the docs and checked that the feature I am requesting is not already implemented
  • My feature request consists of only one feature

Is your Feature Request related to a Problem or Annoyance?

No response

Describe the Feature you'd like

Probably fairly niche for my use case, but suggester at the moment only allows links to .md files. Other supported (or unsupported) files can't be selected. However, Obsidian can link to attachments it doesn't support and automatically open them in external programs (the chief example in my use-case being .gcs files for the GURPS character sheet). I'd like the ability to allow a suggester to link to files with extensions other than md for this kind of work - that way I could, by batch copying files into Attachments, use Metabind to link RPG characters to their (external) character sheet from a fairly simple template setup.

This behaviour is already supported and fully-functional if using the option() argument with useLinks(partial), it's only OptionQuery("path/to/folder") that is strictly limited to .md files.

Alternatives

No response

Additional Context

Image a link to a .gcs file in the Attachments Folder, working perfectly if manually assigned to a metabind field as an option

Image an optionQuery directed to the Attachments Folder, only able to query for the readme.md from an icon library

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions