omnivore-app / obsidian-omnivore

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

Can I choose which articles to sync? #19

Closed StrollStars closed 1 year ago

StrollStars commented 1 year ago

Now I can only save or mark specific articles first, or delete the articles that I don't want to sync, and then sync.

ltroj commented 1 year ago

Adding to this, setting a Custom query like label:send-to-vault has no effect, it still fetches all new articles. Is this a bug or is something wrong with my query? It works in the Omnivore search bar.

sywhb commented 1 year ago

Hey @ltroj, may I know if you have selected "advanced" filter type in the settings? We need it to be selected to make the custom query work.

Screenshot 2023-02-28 at 11 10 34 AM
sywhb commented 1 year ago

Hey @StrollStars, this is currently not configurable in the plugin.

What I'm doing right now is the same as @ltroj. I add the label "sent to obsidian" to the articles in Omnivore. In the plugin, I select "advanced" Filter type and set the Custom query to label:"sent to obsidian" in the settings

ltroj commented 1 year ago

Hey @ltroj, may I know if you have selected "advanced" filter type in the settings? We need it to be selected to make the custom query work.

Thanks, that works! Those settings aren't really self-explanatory though, maybe these should be labeled different. Filter: import all my articles and Filter: import just highlights fetches the same articles it seems? Or do I need to use the content variable in my template to see the effects?

StrollStars commented 1 year ago

In the plugin, I select "advanced" Filter type and set the Custom query to label:"sent to obsidian" in the settings

Thanks for your help, so can it support multiple conditions?

ltroj commented 1 year ago

so can it support multiple conditions?

Yes, please see the docs.

sywhb commented 1 year ago

Glad to know it works, @ltroj. Yeah, we are working on a doc to guide users on the configuration of the plugin.

Filter: import all my articles is to import all the articles with or without highlights and Filter: import just highlights is to import articles with highlights that are the results from the search filter: has:highlights. These two are a bit confusing and I will rewrite the descriptions

StrollStars commented 1 year ago

@ltroj Thanks for your help.

@sywhb Perhaps the setting can be made easier. For example, label, status, type and other options can be provided in the drop-down box, and then followed by the content that the user wants to input, so as to combine a filter. Going a step further, it supports AND and OR clauses to join multiple combinations.

sywhb commented 1 year ago

@StrollStars we support AND, OR and NOT clauses in label filters.

Some examples:

I agree with you it's good to have a UI for such a complex feature. Probably we can add it after the functionality is stablized and we can move on to some enhancements

StrollStars commented 1 year ago

@sywhb I agree with you, thank you for your help, it has met my needs so far, closed.

GonzOdin commented 8 months ago

@StrollStars we support AND, OR and NOT clauses in label filters.

Some examples:

  • label:Newsletter finds all pages that have the label Newsletter
  • label:Cooking,Fitness finds all your pages with either the Cooking or Fitness labels
  • label:Newsletter label:Surfing finds all pages with both the Newsletter and Surfing labels
  • label:Coding -label:News finds all pages with the Coding label that do not have the News label

I agree with you it's good to have a UI for such a complex feature. Probably we can add it after the functionality is stablized and we can move on to some enhancements

For clarity, we should express that quotes are to be used when multiple words are used in a label and that it is case sensitive.

Recommend appending to the list of examples.

Some examples:

  • label:Newsletter finds all pages that have the label Newsletter
  • label:Cooking,Fitness finds all your pages with either the Cooking or Fitness labels
  • label:Newsletter label:Surfing finds all pages with both the Newsletter and Surfing labels
  • label:Coding -label:News finds all pages with the Coding label that do not have the News label
  • label:"send to obsidian" finds all pages with the send to obsidian mutli-word label
StrollStars commented 8 months ago

@GonzOdin Thank you for your help.