clipto-pro / Desktop

A comprehensive solution for convenient and efficient work with notes, snippets, clipboard, files, and other information that requires quick access via any device.
195 stars 13 forks source link

Advance Auto-assign rule #96

Open alastaher opened 3 years ago

alastaher commented 3 years ago

Hi, it would be great to have more options when creating an Auto-assign rule.

Let's say that I have the rule Links with filter "http" to filter all links, the second rule CloudIMG with filter "filedn.com" to filter public links from my cloud and the third Company with filter set to "company" to filter all text where I mentioned the name of the company where I work.

In this case, will https://www.androidcentral.com/oneplus-9-pro-review end in Links which is ok.

In addition to the category where I wanted them, they are also assigned to Links https://filedn.com/leeOSmawTWF4JKr1U7WJYW4/Icons/Sel_Tile_Icons/Sel_BL_TIle_512.png https://company.atlassian.net/secure/Dashboard.jspa?selectPageId=1

I can imagine two approaches on how to handle this. Add option to use regex or some rather way to use more specific filtering. Or (probably easier to implement) add an option to sort the order of filtering rules and to choose if after some filter\ is matched and tag/category is assigned will process stop or continue with checking rest of the filters based on the specified order.

So with an order for tag/category set as bellow Company, cloud links in CloudIMG and in Links rest of them:

  1. Company
  2. CloudIMG
  3. Links

Blažej