blacksmithgu / obsidian-dataview

A data index and query language over Markdown files, for https://obsidian.md/.
https://blacksmithgu.github.io/obsidian-dataview/
MIT License
6.64k stars 394 forks source link

Values cannot be read if keys are emojis #1346

Open ooker777 opened 1 year ago

ooker777 commented 1 year ago

Input

---
😴: YAML Emoji
A: YAML Text
---

🧠:: "Body Emoji"
B:: Body Text

[🦷:: Bracket Emoji]
[C:: Bracket Text]

- 😜:: Bullet Emoji
- D:: Bullet Text

- [🔥:: Bullet Bracket Emoji]
- [E:: Bullet Bracket Text]

#emojiTagTesting

/``` dataview
TABLE A, B, C, D, E, 😴, 🧠, 🦷, 😜, 🔥
FROM #emojiTagTesting
/```

Result

app___obsidian md_index html

blacksmithgu commented 1 year ago

This is legacy behavior for inline fields since some people do this:

🧠 Thing:: Value

And wanted the emoji to be purely cosmetic (so they could query by "Thing" and not "🧠 Thing").

ooker777 commented 1 year ago

I see. But then why does it still work in YAML?

Why do they don't want to query with 🧠 Thing? This doesn't add much work, and it doesn't seem to add any fluff

AB1908 commented 1 year ago

IMO typing emojis is not as fun on desktop as it is on mobile, which is probably why blacksmithgu went with that idea.

ooker777 commented 1 year ago

On Windows you can open it with windows button+. Not sure about Linux or Mac

On Sat, Aug 20, 2022, 14:28 AB1908 @.***> wrote:

IMO typing emojis is not as fun on desktop as it is on mobile, which is probably why blacksmithgu went with that idea.

— Reply to this email directly, view it on GitHub https://github.com/blacksmithgu/obsidian-dataview/issues/1346#issuecomment-1221250185, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTCUXKV4LKJO2QRXM7N3GTV2CCKDANCNFSM567VT34Q . You are receiving this because you authored the thread.Message ID: @.***>

OmniNaut commented 1 year ago

This is legacy behavior for inline fields since some people do this:

🧠 Thing:: Value

And wanted the emoji to be purely cosmetic (so they could query by "Thing" and not "🧠 Thing").

So if it was a conscious decision to make it like this, than it also should be possible to make it so it includes emoji? Should this issue be changed to a FR as an optional thing so that both possibilities are covered. Apparently there are people who want emoji's in their inline fields. Me included https://github.com/mdelobelle/metadatamenu/issues/300

lightningRalf commented 1 month ago

This is legacy behavior for inline fields since some people do this:

🧠 Thing:: Value

And wanted the emoji to be purely cosmetic (so they could query by "Thing" and not "🧠 Thing").

So if it was a conscious decision to make it like this, than it also should be possible to make it so it includes emoji? Should this issue be changed to a FR as an optional thing so that both possibilities are covered. Apparently there are people who want emoji's in their inline fields. Me included mdelobelle/metadatamenu#300

any chance this can be transformed into a FR?