-
-
Notifications
You must be signed in to change notification settings - Fork 71
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?
I use a lot of inline list suggester inputs to link to different notes, usually via optionQuery to a specific folder of notes, and often times I'd really like the list item cell to display something different than the title of the note, such as an emoji or abbreviation for a long title, be able to style it specifically easily with CSS, and have the suggester picker window to display the title different as well.
Describe the Feature you'd like
In thinking about the feature request I submitted here and the way that option(value, name) works I had the thought that it would be really neat if you could set the field for the metadata list items of the note with a metadata property on the note itself. Then when a meta bind list suggester queries a note, it would use the metadata properties to fill in the fields, the way that manually inputting them in option() would do. This becomes even more valuable with the option to add a description for the suggester picker and a custom css class.
For example, if I have a "Food Options" folder with the following notes with the listed properties:
Coffee.md
mb-list-name: "β"
mb-list-description: "β Coffee"
mb-list-class: "brown"
Salad.md
mb-list-name: "π₯"
mb-list-description: "π₯ Salad"
mb-list-class: "green"
Sushi.md
mb-list-name: "π£ "
mb-list-description: "π£ Sushi"
mb-list-class: "red"
and I made a metabind inlineListSuggester that was querying the "Food Options" folder, the suggester picker would look like this:
and the inline list items would look like this:
where each would be linked to their respective note and the color is changed with a simple css snippet.
That would be amazing and offer a lot of flexibility I think, especially since it can be modified on the note, rather than needing to find every instance of an input where it was listed as a manual option to update it.
An advanced option would be to accept a link to images as the display as well, therefore offering the ability to have custom icons. (This could technically be achieved with css snippets using pseudo elements if not innate from the plug in though)
I'm not sure how difficult this would be to implement, possibly easier than having it automatically pick the first alias?, but I wanted to suggest it since I think it'd add a lot of power to this plug-in and input type.
Alternatives
No response
Additional Context
PS. Thanks for such an awesome plug-in. It's a huge part of how/why I use obsidian! The meta-bind embed is especially fantastic for daily-notes. πΈ