scrod / nv

Notational Velocity: modeless, mouseless Mac OS X note-taking application
http://notational.net
GNU General Public License v3.0
2.07k stars 405 forks source link

Feature request: Other search modes than incremental search #121

Open ashcroft opened 14 years ago

ashcroft commented 14 years ago

Well, probably everybody who's ever written some kind of "Hello world!" in any programming language will understand this request! I'd love to see an extended search grammar for NV, boolean operators and parentheses - if not for full text searches, than at least for searches in tags.

How cool would it be if you could scour for something easily by searching for "X Y NOT Z". Say you would like to list all the notes about topic X you've ever clipped (and properly tagged) within the thousands of notes you've taken. So, you type something like "#quotes #usa #president NOT #bush" or "#earthquake #europe (#2010 OR #2011)" - and there you are!

ghost commented 14 years ago

So, like with regular expressions?

ashcroft commented 14 years ago

I don't speak regex and so doesn't the vast majority of potential users out there, I guess. Also, I wouldn't be eager to learn it in order to use it in NV.

ghost commented 14 years ago

You have a good point. Maybe something like you suggested and regex searches?

ashcroft commented 14 years ago

Yeah, well, I wouldn't be surprised if internally all search expressions were translated to regex anyway. But from a user's pov, the easier or the more "natural" the syntax is, the better.

So, yeah, both would be great!