mProjectsCode / obsidian-meta-bind-plugin

A plugin for Obsidian to make your notes interactive with inline input fields, metadata displays, and buttons.
https://www.moritzjung.dev/obsidian-meta-bind-plugin-docs/
GNU General Public License v3.0
534 stars 42 forks source link

"Option Tags" Input Field Arguments for use with suggester, list, and select Input Fields. #423

Open reidgould opened 1 month ago

reidgould commented 1 month ago

Please fill out these Check-boxes

Is your Feature Request related to a Problem or Annoyance?

I'm frustrated when I want to type a tag in to a suggester, list, or select field, and I receive no auto completion hints for the tags that are available.

Describe the Feature you'd like

I would like an optionTags Input Field Argument that can be mixed in just like the existing option and optionQuery arguments.

When used, it should include existing tags in the available values.

A string argument to optionTags should limit the returned tags to those nested under the tag named in the argument. For example, optionTags(#include/me) should cause options to appear for tags #include/me/A and #include/me/B, but not #other/tag.

Alternatives

I tried using the optionQuery argument, but it is limited to Dataview sources. While a tag can be a source of querying for pages, a list of the tags themselves cannot be retrieved this way.

Additional Context

The suggester UI is already well suited for this feature.

For the list, and inlineList types, I wonder if it would be possible to reuse Obsidian's built in feature that hints values for the tags property that appears at the top of the file in preview view mode.

For select types, I think it should be available, unlike the optionQuery argument that is not available. Perhaps an additional number argument to optionTags to limit the number of results would be worthwhile.