mProjectsCode / mProjectsCode/obsidian-meta-bind-plugin

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

Open
#670 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
TypeScript
Stars
1k
Forks
86
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing OptionQuery("path/to/folder") with the existing option() and useLinks(partial) behavior described in the issue. Trace how OptionQuery filters selectable files and verify the change against an attachments folder containing both .md and non-.md files; done means supported external files can be selected and opened without breaking markdown links.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.