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

Suggestion - option to remove quotes (single and/or double) from YAML #8

Open
S-Wil opened this issue May 29, 2021 · 2 comments
Open
Labels
wontfix This will not be worked on

Comments

@S-Wil
Copy link

S-Wil commented May 29, 2021

In my files I have quotes (they happen to be double) around text in order to preserve commas. These are removed in the body but remain the YAML. It would be great to have an option to remove surrounding double (or single) quotes from YAML.

Thanks

@kometenstaub
Copy link
Owner

kometenstaub commented May 31, 2021

Could you post an example?

Quotes are currently stripped but added back to make sure that they are not separate YAML values.

The option to specify that there are multiple values in a column separated by e.g. a comma is made to make it possible to have multiple values.

The quotes are added to make sure that something which is supposed to be one value is not separated by commas which could be in the text.

Do you think that there shouldn't be any quotes in general around YAML values?

@S-Wil
Copy link
Author

S-Wil commented Jun 2, 2021

Yes I understand why you are adding them back now. In my case (which is a slightly different use case) I have any mult-value YAML already together in a single column in the CSV so it's not really an issue for me and the quotes don't add any value but make it messy in the edit view.

I prefer to only have tags and aliases in the YAML (or anything that Obsidian can use), then additional metadata in the body with "column name:: data" for dataview work, then some free form fields without column headings. For example:
/---
Aliases: [Matthew Smith, Matt Smith]
Tags: [ABC_Co]
/---
Full Name:: Matthew Smith
Title:: Manager
Location:: London
Free form notes about Matthew here...

@kometenstaub kometenstaub added the wontfix This will not be worked on label Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants