obsidian-db-folder icon indicating copy to clipboard operation
obsidian-db-folder copied to clipboard

[FR]: Field type to support YAML multiple values (not tags)

Open www-wagner opened this issue 2 years ago • 3 comments

Contact Details

[email protected]

Present your request

Current DB-Folder Tags field type allow multiple values for a unique field, but those values are saved in DB settings to be used in the entire DB scope. It's perfect to be used to Obsidian internal tags field.

On the other hand, the Obsidian internal field aliases doesn't match any DB-Folder field type. aliases field is meaningful only to a specific row of the DB. For example, if I have "Microsoft Office" in a row, the alias could be "MS-Office" and "Office", but those values doesn't make sense to the other rows, so they couldn't be "suggested".

So I ask for a new field type that allows list without suggestions.

For which platform do you request this request??

Cross

www-wagner avatar Sep 28 '22 14:09 www-wagner

Hi @www-wagner , So for example to use aliases like this example yaml?

aliases: Office, MS-Office
myValue: a
myValue:b

Dataview transforms aliases into an array an our current yaml writter show them as a dot list

aliases: 
  - Office
  - MS-Office
myValue: a
myValue: b

Obsidian does not recognize the second format?

RafaelGB avatar Sep 28 '22 15:09 RafaelGB

Let's show a better example.

If I have the following YAML field: image or image

In the UI, it shows as Text type field (truncated, because I can't resize to fit the contents): image

If I delete the second item using UI, the things are messed up: image

In this case, I have to update the row directly in the file, to keep the things right!

My suggestion is having another field type, like List or Array, to keep itens isolated from each other. Tags type couldn't be used because the values are related only to current row.

www-wagner avatar Sep 28 '22 18:09 www-wagner

I guess could be easy to check if a text cell its an array or add a new toggle config per text column that interprets that it is an array

RafaelGB avatar Sep 28 '22 19:09 RafaelGB

Let's show a better example.

If I have the following YAML field: image or image

In the UI, it shows as Text type field (truncated, because I can't resize to fit the contents): image

If I delete the second item using UI, the things are messed up: image

In this case, I have to update the row directly in the file, to keep the things right!

My suggestion is having another field type, like List or Array, to keep itens isolated from each other. Tags type couldn't be used because the values are related only to current row.

would a temporary workaround be to use inline fields instead of yaml? Im on my phone right now, can’t easily test it out.

I run into this same problem because I use “quick add” plug-in to add to yaml bulleted list throughout the day. But if I make an edit in DB folder GUI, the reformatting essentially breaks my quick add shortcut.

csss1234 avatar Oct 17 '22 18:10 csss1234

with the last update of 2.7.2 we are refactoring the edit engine to support objects.

Could be a partial solution controlling arrays too

try to write [a,b,c] inside a text cell

RafaelGB avatar Oct 17 '22 22:10 RafaelGB

With the next version you can use the text column as a list with [] wrapper

https://user-images.githubusercontent.com/11924043/207966083-3a696021-20fd-41f3-b751-efe5fd004832.mov

RafaelGB avatar Dec 15 '22 21:12 RafaelGB

Well I thought using inline fields was a decent workaround, but with DB Folder 3.2.3, unwanted bullets are showing up. See picture. Would love to be able to use "quick add" to log multiple data into one field throughout the day. Any suggestions for accomplishing that? I was using a YAML method, but there were some problems with that.

Screen Shot 2023-01-11 at 11 45 38 AM

csss1234 avatar Jan 11 '23 16:01 csss1234