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

Give text the option of being a list #204

Closed
Neal-Specter opened this issue Feb 4, 2024 · 5 comments
Closed

Give text the option of being a list #204

Neal-Specter opened this issue Feb 4, 2024 · 5 comments
Labels
feature request New feature or request

Comments

@Neal-Specter
Copy link

Is your Feature Request Related to a Problem?

I want to have two text boxes, both be used for listing the workouts I did and other details. The problem is when I type in one of the boxes the other gets filled. I know I can make them different YAML but I want them to show up in the same query column.

Describe the Feature you'd Like

Make an option for the text to be stored as a list item and let cloned text boxes remain empty until another unique list item is typed in.

Additional Context

Would love it if this could be possible for inline select or other features so that the data type can be changed from text to list.

@Neal-Specter Neal-Specter added the feature request New feature or request label Feb 4, 2024
@mProjectsCode
Copy link
Owner

I am not sure I get what you want to do. Can you share what the YAML should look like?

@Neal-Specter
Copy link
Author

Screenshot 2024-02-04 at 12 28 14 PM Screenshot 2024-02-04 at 12 30 22 PM Screenshot 2024-02-04 at 12 28 25 PM

I am hoping that I can copy and past the code snippet and have each new text box and inlineSelect act as one of the items in the YAML list and not automatically copy what was written in the first one.

Maybe adding something like (class(meta-bind-YAML-list)) could format the output text as one entry in the list.

Let me know if anything needs more clarification :) Thanks!

@mProjectsCode
Copy link
Owner

you will have to do something like this. (Increment the number in square brackets)

Fist workout

INPUT[...:WorkoutTypes[0]]
INPUT[...:WorkoutDetails[0]]

Second workout

INPUT[...:WorkoutTypes[1]]
INPUT[...:WorkoutDetails[1]]

Third workout

INPUT[...:WorkoutTypes[2]]
INPUT[...:WorkoutDetails[2]]

...

@Neal-Specter
Copy link
Author

Awesome! Is there I place I should check before coming to GitHub. I don't know how I was supposed to search for this feature. Thanks again :)

@mProjectsCode
Copy link
Owner

There is a page on the docs about bind targets which contains a section on nested metadata.
https://www.moritzjung.dev/obsidian-meta-bind-plugin-docs/guides/bindtargets/#3-the-property

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants