QOwnNotes icon indicating copy to clipboard operation
QOwnNotes copied to clipboard

Feature Request: Regex search of notes

Open jjisnow opened this issue 4 years ago • 17 comments

Under 'search or create note', it would be great to create some variation of a regex or plain text option similar to how there is an option in the in-note search to use regex.

jjisnow avatar Jan 24 '21 04:01 jjisnow

How would that look like in the user interface? Currently this is how you can search: https://www.qownnotes.org/getting-started/searching.html

pbek avatar Jan 24 '21 06:01 pbek

Clicking the magnifying glass could bring up a dialogue that might allow for a regex style search of ALL notes, similar to the one at the bottom of notes for regex within a note

On Sun, 24 Jan. 2021, 5:00 pm Patrizio Bekerle, [email protected] wrote:

How would that look like in the user interface? Currently this is how you can search: https://www.qownnotes.org/getting-started/searching.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pbek/QOwnNotes/issues/2022#issuecomment-766297592, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXJ6QMGQHORF7OC4WVJDXLS3OZRNANCNFSM4WQHR2MA .

jjisnow avatar Jan 24 '21 12:01 jjisnow

Interaction with the glass sounds like a possible idea (although the glass currently is a background image). And the reg-exp search shouldn't go against the current search syntax from https://www.qownnotes.org/getting-started/searching.html.

pbek avatar Jan 24 '21 12:01 pbek

I think this will require a bit of work

  • A search dialog?
  • Possibly a dockwidget to display the search results from all the notes

Waqar144 avatar Feb 04 '21 21:02 Waqar144

Not sure how the devs here operate yet as far as requests, but as a recent fan of QOwnNotes, I'd like to give a +1 to this feature request. The more regex the better.

jg55 avatar Mar 19 '21 00:03 jg55

You could create a search bar similar to https://www.voidtools.com/en-au/support/everything/ where there's an option in the menu to 'enable regex search' or create a new note under a 'file' option like in most office applications

jjisnow avatar Mar 19 '21 07:03 jjisnow

I support this request. Regex search or at least wildcard search is an absolutely necessary feature. Without it, it's impossible to find the right fragments.

quicktrick avatar Dec 21 '21 05:12 quicktrick

https://www.qownnotes.org/getting-started/searching.html?

pbek avatar Dec 21 '21 06:12 pbek

One somewhat simple and fast way to do this could be to use grep or whatever the platform provides to do the search and use the results to create a UI.

Waqar144 avatar Dec 21 '21 06:12 Waqar144

Excuse me, @pbek, I don't see there a regex or wildcard search options. I saw that page previously. And I tried to find something like foo*bar or foo.*bar and I could not get it working. What am I doing wrong?

quicktrick avatar Dec 21 '21 06:12 quicktrick

I don't see there a regex or wildcard search options.

There is none, you can only do a sub-string search, for your simple case foo*bar that would be foo bar (but in any order).

pbek avatar Dec 21 '21 06:12 pbek

that would be foo bar (but in any order)

But it searches for any of the two words foo or bar separately, and not the sequence foo and some bar.

quicktrick avatar Dec 21 '21 07:12 quicktrick

That's correct.

pbek avatar Dec 21 '21 08:12 pbek

First thing: I'm new to QOwnNotes and a big fan. I'll be thrilled to find a OneNote killer. You're closing in. I offer only support and suggestions for productive change.

  1. Search function: I agree with @jjisnow: New capabilities in search will make QOneNotes more of a OneNote killer.
  • You don't need all OneNote capability to attract me. Yet, this search capability is important to me.
  • @quicktrick says above this is "an absolutely necessary feature"; maybe it's more important to them than to me.
  • For me, a sub-string search might be a good first response to this Issue. I acknowledge the value of regex, but if it would block doing a sub-string search, I'd delay it.
  1. Feedback on https://www.qownnotes.org/getting-started/searching.html: The meaning of the page isn't getting to me. Maybe it assumes the reader will understand the full context. I looked for a while; I didn't find a panel that renders a search field the same as the one in the picture (reformatting of all search fields after doing these docs? value in updating the picture?) I didn't find a search field that found a target in a different note.

"The difference between ignorance and stupidity is that ignorance is curable with education." I hope I'll be good after getting some education! Thanks in advance.

GarryFlemings avatar Jun 18 '22 16:06 GarryFlemings

Thank you for your suggestions!

pbek avatar Jun 20 '22 06:06 pbek

Feedback on https://www.qownnotes.org/getting-started/searching.html:

Do you have any suggestions for the text? You could edit the page on https://github.com/pbek/QOwnNotes/edit/develop/webpage/src/getting-started/searching.md

pbek avatar Jun 20 '22 06:06 pbek

I now added some more extra description to the "searching" page.

pbek avatar Jun 27 '22 17:06 pbek