cherrytree icon indicating copy to clipboard operation
cherrytree copied to clipboard

There's no way to search for two (or more) (key)words with AND as operator ???????

Open chrixxxx opened this issue 5 years ago • 10 comments

While using | and a regex I succeeded to make a search with 2 or more (key)words (the OR operator) .. I can't find a way to perform a search when 2 (or more) words that has to be present - ALL of them - in every document/node scanned by the search function.

Am I missing something ?

chrixxxx avatar Apr 26 '20 16:04 chrixxxx

(that.tools)|(tools.that)

txe avatar Apr 26 '20 16:04 txe

OK, it's not a good example, give a minute, I'll come up with something better

txe avatar Apr 26 '20 16:04 txe

that.*tools|tools.*that

txe avatar Apr 26 '20 16:04 txe

that.*tools|tools.*that

Your syntax works ..but the search will remain limited to 2 key-words using that.

I think there should be a lot simpler - and more straightforward - way to search through notes/nodes, and that should be implemented at least the three main logical operators (OR, AND, NOT) when you make a search to make the search function a bit useful, especially when using tags.

chrixxxx avatar Apr 26 '20 19:04 chrixxxx

Right, or even simpler, to make search over the previous search, so you look up one word, then another, then some negative search.

txe avatar Apr 26 '20 19:04 txe

Right, or even simpler, to make search over the previous search, so you look up one word, then another, then some negative search.

Yes.. that would be also a great solution, indeed. A fast and straightforward way to "narrowing" the results of a search applying new criteria only to such results .. until you have exactly what you was looking for.

chrixxxx avatar Apr 26 '20 19:04 chrixxxx

Right, or even simpler, to make search over the previous search, so you look up one word, then another, then some negative search.

I would love this one, I'm using for years "that.*tools|tools.*that" but that's really limited only to two tags.

mahdi1234 avatar May 23 '20 21:05 mahdi1234

Was there never any movement on this? Its a PITA that every time i want to search for a node entry that i know should contain x, y & z somewhere within it, i have to go and re-learn (remember) how to use regex for such things again.

JackDinn avatar Aug 06 '23 18:08 JackDinn

Although I have used CherryTree for a long time as a key part of my complex workflow I still cannot find in Preferences how to capture the full filepath to the open CherryTree document although I see filerpath in top toolbar (preference setting). My suggestion is that there should be a new command: "paste full filepath to this document/node".

If I can copy this filepath (CherryTree command) I can create an internal CodeBox script to insert code to search though the document or indeed other CherryTree documents (many) scattered through my desktop. i use RipGrep to search for terms within *.ctd. But there can be other uses.

gitvectors avatar Aug 13 '23 13:08 gitvectors

Please try the test version https://www.giuspen.net/cherrytree/#downl so-called v1.5.0+47 and look for a new option in the search dialog

Image

giuspen avatar Aug 23 '25 11:08 giuspen