metadatamenu icon indicating copy to clipboard operation
metadatamenu copied to clipboard

Feature request: MultiInput Field Type

Open maia-sh opened this issue 5 months ago • 3 comments

It would be great to have a MultiInput field type, i.e., multiple Input in a list. My current workarounds are to use either:

  1. Input and then create the list in YAML manually (pro is using the input template for at least 1 item, con is manually formatting list)
  2. Multi and then just "add" new values each time (pro is auto formatted list, con is not having a template)

Here is an example: Let's say that I want to capture all repos of interest on a certain topic. The Template for Input would be https://github.com/{{username}}/{{repository}}/

The YAML field might look like:

---
repos:
  - https://github.com/mdelobelle/metadatamenu/
  - https://github.com/blacksmithgu/obsidian-dataview/
---

Thank you for this fantastic plug-in and for considering this feature request!

maia-sh avatar Jan 27 '24 14:01 maia-sh

Hi! why not use the YAML field type?

mdelobelle avatar Feb 04 '24 18:02 mdelobelle

I'm also looking for this feature. My use cases:

  • list of related web URLs;
  • list of aliases.

why not use the YAML field type?

  • inconvenient - general purpose text editor, while I expect a constraint of string/URL list editor;
  • counterintuitive - I only realized I can try YAML type after seeing this comment.

I'm considering YAML type a workaround. It doesn't fully communicate the intent of the field.

KillyMXI avatar Feb 13 '24 16:02 KillyMXI

This is a bit related to #498 - that's one where it would be good to keep the Tag autocomplete functionality, but also allow for multiple values in the proper YAML fashion.

mo-seph avatar Feb 14 '24 13:02 mo-seph