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

Complex search doesn't work #71

Closed
marph91 opened this issue Mar 12, 2024 · 2 comments
Closed

Complex search doesn't work #71

marph91 opened this issue Mar 12, 2024 · 2 comments
Assignees

Comments

@marph91
Copy link

marph91 commented Mar 12, 2024

I have the following search term: notebook:Watchlist Netflix -"Watch State: watched":

  • Search only in the notebook Watchlist
  • Search the term Netflix
  • Exclude the term Watch State: watched

In the usual Joplin search bar, it works. But the plugin throws an error. Here is the complete plugin block:

<!-- note-overview-plugin
search: notebook:Watchlist Netflix -"Watch State: watched"
fields: title
sort: title DESC
-->

This is the error in the dialog:

Noteoverview error
Note: Test

YAML parse error
Nested mappings are not allowed in compact mappings


search: notebook:Watchlist Netflix -"Watch State: watched"
fields: title
sort: title DESC

I guess Watch State: watched is parsed as key-value mapping, but it's only a string.

@JackGruber
Copy link
Owner

Simply write the search in single quotation marks

<!-- note-overview-plugin
search: 'notebook:Watchlist Netflix -"Watch State: watched"'
fields: title
sort: title DESC
-->

@marph91
Copy link
Author

marph91 commented Mar 13, 2024

Works. Thanks!

@marph91 marph91 closed this as completed Mar 13, 2024
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