-
Notifications
You must be signed in to change notification settings - Fork 138
Simple search functionality #28
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice 🎉. Seems to be functional. However, in Firefox, the icon in the search field is displayed in the center (see screenshot) and the text is not selectable per click (however, pressing CTRL+A in the field works). This should be fixed.
A good enhancement would be if search queries with more than one word are split into its parts. I.e.: a search for "wordA wordB" currently finds only notes where wordB comes directly after wordA (with exactly one space in between). It would be better if this search finds all notes containing wordA and wordB at any position.
And one last question: why do you use an in-app search field and not the search from Nextcloud?
@korelstar Am I right when I guess that you are using a Firefox version <= 48? That would explain the problem with the icon positioning (http://caniuse.com/#feat=background-position-x-y). If this is the case, I believe I know how to fix this. enhancement: noted - could be fixed in a separate PR, but shouldn't be a huge deal (has been done before http://stackoverflow.com/a/23506051) I have created an in-app search, because I have heard a rumor that @jancborchardt is unhappy with the global search 😉 |
Yes, I'm using the latest ESR version of Firefox and that's 45.5.1. I've found out, why the text isn't selectable: because the |
@korelstar possible but requires duplicating some styles from core. But you are right, that is probably better than wrong markup. |
Maybe you can use a Edit: okay, there are still some other issues then. |
Thank you for this feature! Works great on Chrome 54. |
@korelstar @PhSc I implemented the changes to the search functionality you requested. |
👍 Great work! |
Wonderful! Just tested it on Chrome 54 and Nextcloud 10.0.1. Works like a charm.
Ready to be merged, from my point of view. 👍 |
fixes #25
looking forward to your reviews
@affanse @korelstar @PhSc @putt1ck @ThomasDaheim @jancborchardt