omnivore-app / obsidian-omnivore

Obsidian plugin to fetch articles and highlights from Omnivore
MIT License
813 stars 48 forks source link

Exclude labels in sync query #66

Closed Mattrogers13 closed 1 year ago

Mattrogers13 commented 1 year ago

Is it possible to exclude labels in a sync query? For example, label:!health. This didn't seem to work when tried.

Mattrogers13 commented 1 year ago

I am a dolt, I just updated and read through the page https://omnivore.app/help/search.

Mattrogers13 commented 1 year ago

using the query "-label:ttrpg" worked great, but I did receive an "error fetching articles" message. The console revealed this:

YAMLParseError: Nested mappings are not allowed in compact mappings at line 2, column 8:

title: D&D: Take A Look At Matt Mercer's D&D Session Notes
       ^

    at Wg.onError (app.js:1:688494)
    at app.js:1:676625
    at Pg (app.js:1:677092)
    at Ug (app.js:1:687663)
    at app.js:1:688859
    at Wg.next [as push] (app.js:1:689001)
    at rv.pop (app.js:1:703188)
    at rv.end (app.js:1:702377)
    at rv.parse (app.js:1:702334)
    at app.js:1:712200
fetchOmnivore @ plugin:obsidian-omnivore:8190
YAMLParseError: Unexpected scalar at node end at line 2, column 8:

title: "dnd 5e - How do I decide what is a "reasonable" Suggestion? - Role-play…
       ^

    at Wg.onError (app.js:1:688494)
    at l (app.js:1:683498)
    at Lg (app.js:1:675665)
    at Og (app.js:1:684848)
    at Hg (app.js:1:685796)
    at Ug (app.js:1:687587)
    at app.js:1:676841
    at Pg (app.js:1:677092)
    at Ug (app.js:1:687663)
    at app.js:1:688859
fetchOmnivore @ plugin:obsidian-omnivore:8190
sywhb commented 1 year ago

Hey @Mattrogers13 , sorry for the delay. I have fixed this error in the latest release 1.3.1.

It includes:

Bug Fixes

Feature

Please let me know if it works for you and looking forward to your feedback