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 to hide "file:" from list sugggester using option query #458

Open Graywaren opened 1 week ago

Graywaren commented 1 week ago

Please fill out these Check-boxes

Is your Feature Request related to a Problem or Annoyance?

I really dislike having the list suggester append "file:" before all the options of an optionquery list. I already know they're files and find it distracting and messy. I was hoping I'd be able to hide it with css, but it's part of the title text input and not in it's own span, so there's no hiding it with just css.

Describe the Feature you'd like

I'd love to have the option to turn this off, perhaps showPrefix(true/false) as an option within the suggester? if true "file:" is not added to the file title when it's displayed in the suggester.

Alternatives

No response

Additional Context

No response

mProjectsCode commented 1 week ago

I added it because theoretically, you can mix files and non files and maybe more types of things in the future. But I dislike it myself as well. An argument to disable those labels sounds good.

mProjectsCode commented 1 week ago

Or maybe I can find a more elegant way to denote that a specific option is a file.

Graywaren commented 1 week ago

I think an option to turn it off would be beneficial either way, but perhaps icons would be more pleasing indicators?

Out of curiosity, how would one get non-files in there? It doesn't list images when they're in the folder query, and I'm unaware if it's possible to have an additional manual text option in addition to the query, but perhaps that is possible and I misunderstood how something works.