-
-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Space in search should be interpreted as _another_ substring #175
Comments
This is not available with a traditional search because items may contain spaces. We would have to implement regexes but this is not urgent at the moment. |
This is trivial with databases like SQLite but even with a traditional search a search string But of course I'm not Kotlin programmer so I have no clue whether this is much more complicated in Kotlin than in other languages. 😞
Well, this issue is open since 2018 so it's obviously not that urgent. 😆 |
Haha, yes I'm reopening the debate because I'm redoing the real time search system with filters, so the regex are forced to adapt to the filters applied with the new model, that's why I bring it up. It wasn't necessarily clear but it allows me to keep track of the issues I looked at. |
I see. I changed my workflow now anyway since I'm since I started using KeePassDX. It's obviously much slower to find something but at least I'm not ending up without any results. 😆 |
Okay, that's very interesting feedback. I didn't implement the Regex because I wanted to partition the developments but in relation to your usage, I'll look into it further so that I don't have any performance issues for the real-time filters. (I also have to say that I've been doing a lot of work on the search and I'm getting a little tired of that feature. But at least it is now possible to search in the current group and filter most of the fields.) |
Now possible to manage regex since version 3.3.0 |
I'm running the F-Droid build version 3.3.1 but it doesn't seem to work. |
It is the regex search that is implemented, you just have to activate it dynamically. Then you can use it to do your special searches as you said in a previous comment. (ie : abc.*def) |
How can I activate it dynamically?
I'm not quite sure whether we have a misunderstanding here. 😆
Therefore I thought that every time I would type But I just learned on StackOverflow though that a match all regexp would even work more elegant: independent from their position (I'm not very good with these lookahead statements). Thus the regular expression could be created like this
It might look cryptic but according to this answer it will match a string independent from the order. Thus, if your KeePass item title is " |
I understood what you wanted but the problem is that it changed the current behavior, so users who use the search in a different way than you would not have the same result. I did indicate that this will be the functionality of Regex that will be implemented : #175 (comment) By leaving the possibility of using Regex, it will be possible to do any type of search in addition to the default one. To activate it, click on the three-dash icon to the right of the search field and then on the Regex button. |
Actually they would have the exact same result in all cases except when they're using whitespaces.
You're right as you wrote:
Which is exactly what I'm referring to. The current behaviour that whitespaces are kept as part of the exact search string differs from every other KeePass client.
That's nice indeed, but
Ah nice. I never recognized this. |
Thank you for KeePassDX. I love it!
There's just one small issue that bothers me:
So in case someone has a key like "
abc def ghi jkl
" a search for "abc ghi
" won't find anything in KeePassDX (it will find something in other KeePass implementations).Thank you and have a wonderful day!
The text was updated successfully, but these errors were encountered: