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

Some emoji break the overview definition #43

Closed
zblesk opened this issue Jan 8, 2022 · 2 comments
Closed

Some emoji break the overview definition #43

zblesk opened this issue Jan 8, 2022 · 2 comments

Comments

@zblesk
Copy link

zblesk commented Jan 8, 2022

I have a definiton like this:

<!-- note-overview-plugin
search: tag:"some tag"
fields: title, breadcrumb, tags, updated_time
alias: title AS Nazov, updated_time AS 💾🕒, tags as #️⃣ Tagy, breadcrumb AS Umiesnenie,
sort: updated_time DESC
-->

When the overview is refreshed, everything from #️⃣ until the end of that line is deleted.
The other emoji in that line cause no problems, and neither does changing the order of fields in the alias line.

I'm running an up-to-date version of the plugin under Joplin for Desktop 2.6.10 on Windows 10.

@JackGruber
Copy link
Owner

Ok there are tow problems:

1) Your keyword as is lower case, for this a fix will be implemented
2) The emoji #️⃣ is special, because it is in Hex: 233F3F, and the staring 23 is a # witch starts a comment in YAML.
The comment sign is the reason why everything after that also disappears, if a character other than a space is placed in front of the the comment character, this will not be interpreted as a comment. But the best way is to enclose the alias text in quotes ".

<!-- note-overview-plugin
search: tag:emoji
fields: title, breadcrumb, tags, updated_time
alias: "title AS Nazov, updated_time AS 💾🕒, tags AS #️⃣ Tagy, breadcrumb AS Umiesnenie"
sort: updated_time DESC
-->

grafik

@zblesk
Copy link
Author

zblesk commented Jan 9, 2022

Ah. I have tried things like quotes around "#️⃣ Tagy", like you have to do in the search sometimes. Didn't try enclosing the whole thing.

I don't understand the 'as' comment, but since that bit works as it is, I guess it doesn't matter that much.

Thanks!

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

No branches or pull requests

2 participants