Page 1 of 1

Search "OR" "NOT"

Posted: Thu May 01, 2014 4:22 pm
by jhwhood
Maybe I just don't know how to do it but, In the "Search" field, I'd like to be able to type in something like "Ford NOT Cars" to find my friend Tom Ford's address.

I know SQL-Lite can let you string together a lot of these statements, but I'd just be happy with allowing one expression per search. - available as a dropdown maybe?

This would make search REALLY powerful.

Re: Search "OR" "NOT"

Posted: Thu May 01, 2014 4:32 pm
by CintaNotes Developer
Just type "ford -cars".

Re: Search "OR" "NOT"

Posted: Thu May 01, 2014 5:47 pm
by jhwhood
Works great, doesn't work on tags though, which was what I was originally trying to do. I use a LOT of tags :D

Re: Search "OR" "NOT"

Posted: Thu May 01, 2014 5:51 pm
by CintaNotes Developer
Oh, so "Ford" and "Cars" are tags?
Then you have the following options:

1) Click on "Ford" and then Alt-Click on "Cars"
OR
2) Type "ford" into the search box, press Enter, then type "cars", press Alt+Enter

Re: Search "OR" "NOT"

Posted: Tue May 13, 2014 2:05 pm
by Thomas Lohrum
Funny, i just had the same problem when i wanted to select the following tags "todo -done". Alex, since we already have a feature to apply words as tags, if applicable, i think it makes sense to enhance the feature for "NOT tag" by using the "-" before the tag-word.

Thomas

Re: Search "OR" "NOT"

Posted: Tue May 13, 2014 3:42 pm
by Thomas Lohrum
Thomas Lohrum wrote:Funny, i just had the same problem when i wanted to select the following tags "todo -done". Alex, since we already have a feature to apply words as tags, if applicable, i think it makes sense to enhance the feature for "NOT tag" by using the "-" before the tag-word. Thomas

I just realize, that in this case the tag-drop-down-combo should also be supported, in case the search word begins with "-".

Thomas

Re: Search "OR" "NOT"

Posted: Fri May 23, 2014 10:06 am
by CintaNotes Developer
Thomas Lohrum wrote:Funny, i just had the same problem when i wanted to select the following tags "todo -done". Alex, since we already have a feature to apply words as tags, if applicable, i think it makes sense to enhance the feature for "NOT tag" by using the "-" before the tag-word.

Thomas

Indeed this would be a very logical thing to do, and trivial to implement.
Added to the plan for 2.6.1

Re: Search "OR" "NOT"

Posted: Fri May 23, 2014 10:49 am
by Thomas Lohrum
CintaNotes Developer wrote:
Thomas Lohrum wrote:Funny, i just had the same problem when i wanted to select the following tags "todo -done". Alex, since we already have a feature to apply words as tags, if applicable, i think it makes sense to enhance the feature for "NOT tag" by using the "-" before the tag-word. Thomas
Indeed this would be a very logical thing to do, and trivial to implement. Added to the plan for 2.6.1

AWESOME :D

Re: Search "OR" "NOT"

Posted: Fri May 23, 2014 1:13 pm
by Thomas Lohrum
CintaNotes Developer wrote:Indeed this would be a very logical thing to do, and trivial to implement.

Please be aware, that tag auto-completion (drop-down-box) should be supported too. In other words: even when the word is preceded by "-".

Thomas

Re: Search "OR" "NOT"

Posted: Fri May 23, 2014 2:33 pm
by CintaNotes Developer
Yes, of course

Re: Search "OR" "NOT"

Posted: Tue Jun 03, 2014 8:20 pm
by Thomas Lohrum
Alex, i confirm this is implemented with 2.6.1 beta 2. However there is a performance issue. I will post this to the beta-release-note.

Re: Search "OR" "NOT"

Posted: Wed Jun 04, 2014 8:19 am
by CintaNotes Developer
Ok, thanks