Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: List Input Type #54

Closed
tsteckenborn opened this issue Sep 29, 2023 · 8 comments · Fixed by #196
Closed

Feature Request: List Input Type #54

tsteckenborn opened this issue Sep 29, 2023 · 8 comments · Fixed by #196
Labels
enhancement New feature or request new-input

Comments

@tsteckenborn
Copy link

Could be helpful to have a text input type as a sort of list entry. Could e.g. be an array of strings we could iterate over with templater.

@danielo515
Copy link
Owner

Do you mind giving me an example? I'm afraid I'm not understanding. How is this different from multi select?

@tsteckenborn
Copy link
Author

tsteckenborn commented Sep 29, 2023

Multiselect works - to my understanding - on a selection of existing values. Let's imagine you want to have a contact note, in which while creation you want to add comments as a bullet list, like:

### Skills & Interests
- Proficient in X
- Skill 2
- Skill 3
- Prefers design over implementation

Or agenda items to meeting minutes

| Topic 1 | 10 | 08:00 | 08:10 |
| Topic 2 | 5 | 08:10 | 08:15|

The latter, while preferably even more structured, could also work on an array of strings.

It might also work with a single field, but then you'd by convention need to have some sort of indication for a line / entry break.

Currently - to my understanding - you can not achieve this with multiselect, as it would defy the purpose of selecting something specific / predefined.

@danielo515
Copy link
Owner

Ok, I see. So what you want is an input field where you can add any text and, when press enter that value is added as a separate element to a list of values within the same result. Right?

@tsteckenborn
Copy link
Author

Correct.

@danielo515 danielo515 added enhancement New feature or request new-input labels Oct 11, 2023
@dannywrayuk
Copy link

Just wanted to +1 this.

I'm using the tags option to add tags to a note (which seems to use multiselect under the hood), but if that tag doesn't already exist then it doesn't appear as an option. This means I can't create new tags.

Having a 'List' type would help make this easier. It would be nice to still be able to provide 'suggestions' but allow anything to be submitted.

I'm not sure if this even needs to be a new input type, maybe an additional option on multiselect to 'accept-any'.

@danielo515
Copy link
Owner

I agree that just adding an option to allow unknown values will probably be the nest of both worlds. I'll see how hard is to implement

@dannywrayuk
Copy link

Works great! Thanks a lot :)

@danielo515
Copy link
Owner

danielo515 commented Jan 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment