-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
search options #104
Comments
Do you mean "Incremental" vs. "Float" vs. "Show results in dialog" vs. "Global search" or something else? |
I mean exactly these. |
Do you have an idea how they should be named? |
For the record, this seems to come from the mailing list: http://sourceforge.net/p/jabref/mailman/message/34383062/ |
I have not thougth about the naming yet, since I do not understand these or their logic. E.g. If these options are different types of searches why the "show results in dialog" is an option in this group. These should be two option groups. One group for the search types the other for the display type. Or if all of these options indicate some of the display option or mode of the search then checking any of them and search for a word I shuld get the same results. I ran into this, since I could not perform a search within only a given group. I was tald to perform "float" to have a search only in the given group. |
Some ("Incremental", "Float", "Filter" "Show results in dialog") are different ways to display the results. |
Search: query, caseSensitive, isRegex. Scope: current file or all files (global) Display: float, filter, dialog, incremental Incremental is an option that is more a unix style of going through the results using a next button. I am not sure if we still need such an option. |
Thank you Simon for the clarification. About Incremental:
In general, I conclude that:
|
I suggest to make it simpler by
I do not have good suggestions on scope and the dialog option, as they are intertwined. A global search always opens up in a dialog. |
Currently, the various possibilities take 6 lines. Let's try to keep it as compact, or even smaller
Only 5 lines, and still explicit about the (important) choices BTW, why not to contact our GUI specialist? |
Minor comment: pressing |
Ahhh, instead of 103 what I should have written in the commit message I wrote 104. What a mess. |
I think this is related to #162 |
In #162, there is also the "live" option which does everything after each keystroke. |
Current road map for the new search
This should reduce the complexity of the search. |
Can you please elaborate on why the incremental and filter search should be removed? But even the incremental search has some use cases. It is a good search mode whenever the context of the other non-matched items is important (which is admittedly not very often). (This is why Control + G jumps to the given position in most text editors instead of just displaying the single line 😷) In my opinion, the search is one of the most underdeveloped areas in JabRef and I can't see how removing search modes helps here. (Indeed, quite often I don't understand why some features should be removed. It would be ok if we try to implement something new and the old code posses a problem. Then removing the old feature is ok in my eyes. But just removing for the purpose of removing is not very profitable.) |
JabRef at the moment has a few issues:
This makes working on JabRef interesting as in every part of the program, one can improve something. :) JabRef 3.0 is the first effort to try to fix a lot of these issues. But with the available man-power we have at the moment, it is not feasible to keep all the existing features and fix/rewrite them so that we can maintain them again. We currently use three approaches: a) rewrite and put under test to improve quality and fix bugs, b) replace preference options with fixed values to reduce the number of available options, and c) remove features that have never worked or are extremely rarely used. Regarding the search functionality, we wanted to apply b and c. You applied a in your PR, but without the tests. I am open to rescue the search modes within an effort to reduce the overall complexity of the search and make it more usable. If you like, we can talk via a skype call regarding this. For me, the most annoying this regarding search are:
|
Thanks @simonharrer for the explanations. They helped a lot in understanding your/the teams reasoning. You should add a few of these sentences to the wiki! Regarding the search options: all the (main) open issues are ui-problems, right? So wouldn't it be a better strategy to wait with further modifications of the search until we have a new ui concept for Jabref? |
Hm, good points. Will do that. Regarding customizability, this is an interesting point. We should discuss this in the next dev-call as well. Regarding the search options: yes, you are right, but we do not know how long the port to JavaFX will take. So we have to decide in that trade-off. Something for the dev-call, maybe. Thank you for the comment. |
@tobiasdiez have a look at the current results of the search-improvements branch. I adapted your code and created a search ui per tab, making it local to each database with an option to do a global search as well. |
Good work! A few remarks:
|
Help! I cannot close the "settings" pop up 😢 You removed the "toggle search bar" option completely - so it should not be possible to close the search bar? Apart from this: Awesome! @tobiasdiez Simon already posted an explanation regarding case sensitivity and regex above:
See the following screenshots: In this examples it is directly visible which settings affected the search. |
... as I see the screenshot from IntelliJ now: The red marking and the "x" to clear the search are also cool features I'd like to have in JabRef 😜 |
I'm not so sure that we should take developer text editors as a guide. Microsoft Office, Google, Windows, Firefox as well as all music and reference library manager I looked at just show a search field without any settings buttons. If we focus on power users than it is ok to show these buttons (since then the target audience should be similar to the one of code editors). But if we want to provide a reference manager for everybody (not even necessarily Latex users), then we should orient ourselves at the usual office programs. But this is a discussion which we should have before changing ui things... At least I would like to have an option to show/hide all these buttons. I also welcome an option to toggle between my minimalistic and your more elaborate approach. (regarding "we have to many configuration options", you may have a look at the motivation for creating the Vivaldi browser) +1 for the little "x" |
At least Firefox has a "case sensitive" option ;-) I see your point, but the difference between the MS Office and the other searches is: MS Office only provides a "dumb" feature which is not configurable - if you provide some configurations, the settings affecting the search result should be displayed - and if shown as "toggle buttons" it is also easy to change them afterwards without the need of opening a popup menu.
This would be a valid option yes! However, I think we should use our time for more crucial discussions ;-) |
Implemented your suggestions except the X within the search field - this is quite complicated to do with a lot of UI hacks. I could offer a clear button if this is really required. |
Ok, please have a look at the current version of #332 which is good to go from my point of view. |
@simonharrer and @tobiasdiez commented on Nov 11 2015 about
I was running an older JabRef version that had search in the LHS panel, but now it is in the Tab and I can't find where to turn off incremental search. This is a major PIA, because I have a very large .bib file and the incremental search messes up typing in the search field because of the lag as it incrementally searches 45Mb. Am I not seeing the setting, or has it VERY UNFORTUNATELY been removed as the post seem to say? Should I request it be reinstated as a feature request? Incremental ON makes searching very frustrating. Can I set in manually OFF in a config file? |
Yes, as far as I know the incremental search was removed. |
The naming and docs for search options are not clear and/or logical for me.
The text was updated successfully, but these errors were encountered: