-
-
Notifications
You must be signed in to change notification settings - Fork 815
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
added recent search #1168
added recent search #1168
Conversation
This pull request introduces 1 alert when merging 2495773 into ed68387 - view on LGTM.com new alerts:
|
Q1: alpha And = α And |
0a4a530
to
c7022d3
Compare
This pull request introduces 1 alert when merging c7022d3 into 0a5ce7a - view on LGTM.com new alerts:
|
Please add depth of history as option in "Options" tab and prepare binary package for windows (just use word [publish] in commit message) |
0c453a5
to
a1bdeed
Compare
This pull request introduces 1 alert when merging a1bdeed into 14112d6 - view on LGTM.com new alerts:
|
a1bdeed
to
74de9b8
Compare
This pull request introduces 1 alert when merging 74de9b8 into 50bf1e7 - view on LGTM.com new alerts:
|
Hi @alex-w I updated the code to include an option for max history size. But one of the tests failed because of a "redundant line" so I removed it. Then the updated code failed because of the "Travis CI" build errored out. I am not sure what I did wrong or need to fix. |
@Astrotourist-info in vacation now, but I had some discussion to him by voice. :) He want to see a dropdown list of previously searched objects before and without new search. @gzotti and @chithihuynh maybe just add a new additional tab with table (with few columns, e.g. name of object, him designation, type...) of previously searched objects? |
Sorry, not before next weekend. |
Sorry for taking so long. After trying a few different configuration for the drop down search, below is a demo of the drop down search. (It's only searching through a limited database). I have to incorporate the change into the real search dialog.
1) Opened up demo search dialog (with recent already populated) 4) Backspace until search is empty (recent objects will re-populate)
|
This pull request introduces 1 alert when merging 4957e70 into 505beed - view on LGTM.com new alerts:
|
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.
No need tab "Recent" in this case.
Please enable opening first tab by default also |
Please fix crash when user clicked at item of list after search |
This pull request introduces 1 alert when merging 02f9ed2 into 7e839fa - view on LGTM.com new alerts:
|
deaba50
to
508a59f
Compare
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.
OK, the new feature looks good, thanks!
I have one question: you are using white color for text in list of recent names, but previously was used black color for text for similar block - are you tested visibility of text with different colors?
@gzotti your opinion for feature please
I just left it as the default color but I think I can change it. |
This pull request introduces 1 alert when merging 508a59f into 7e839fa - view on LGTM.com new alerts:
|
Please fix LGTM alerts |
Please back visual style :) |
915b809
to
93f6f9f
Compare
Would you add into the Options tab a button for clear history? |
Nice feature! |
@chithihuynh Yes, additions to the User Guide with a detailed description are welcome. Before the merge! Please mark it as \newFeature{v0.20.3} I have meanwhile found a solution for the problem mentioned above. It is indeed outside this PR, no need to bother. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Please add description of new feature to the User Guide as final streak of PR |
Sorry it took me a while for the user guide but I came across a git issue. I accidentally commit a practice version then restore the "ch_interface.tex" file. So now, all the Is there a way I can fix it? All my work was done on a new branch which has the old blames but when ever I try to put it on this branch, all the blame goes back to me. |
I am not a git expert but I think you can totally remove a commit from your private git so a bad commit really vanishes (?) |
3086f45
to
6a9b89d
Compare
…rium into recentSearchOneCommit
Ok, I believe I fixed the problem regarding the user's guide git issue. In the user's guide, in addition to adding the recent search information:
|
Where is you find it? |
I found it in here stellarium/guide/ch_interface.tex Line 911 in 4083f7e
I meant this line: stellarium/guide/ch_interface.tex Line 912 in 4083f7e
|
Oops, seems we have updated the GUI but not the Guide. Please edit in the Guide and replace "Extend Search" by "Use SIMBAD". |
21d2a92
to
c58c36e
Compare
@chithihuynh this is a very nice feature, thank you. do you think following would be possible: to delete an item from the recent searches by hitting the Delete button while an item is selected? So in this case, I use cursor control to descend to "SOYUZ..." and then hit the Delete button to remove that item from the list. |
@axd1967 I think that would be a great feature to add in. If you put in an issue request, I can get to it this summer (sorry I can't get to it sooner). |
QUESTIONS:
Description
Order of search objects (using "F3") are now ordered from relevance recently searched then the rest of relevance searches (compare to just ordered by relevence).Recent searches are italicized so user can tell which one are recent and not.
A new search will be added to the recently searched list after the user clicks enter on an object's name within the search dialog. The list will contain the user's last 10 searches is stored in a JSON file under "/user directory/data/recentObjectSearches.json".
Fixes #1050
Screenshots (if appropriate):
Search output (no recent searches saved/how it currently is)
After use clicks "enter" on "1P/Halley", then tries to search for "1P/Halley" again.
User has selected "Alkalbain I" (before clicking "enter")
User is searching for "l" and the following results appears.
Type of change
How Has This Been Tested?
All test cases successfully executed locally.
I tested the new search function by searching for a few different objects and see if the expected results comes up. The expected results should include:
Test Configuration:
Checklist: