Searching for satellites in the satellite selector
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
I just tried to create a new module with the ISS. Typing ISS in the search field led me to AISSAT 1 where after I had to manually scroll down to ISS. I think this is a change we introduced not so long ago and I don't remember what the rationale was; in any case we may want to reconsider whether this is the "right" behaviour.
On another note, the search seems to be case sensitive. Maybe it has always been like this. We should investigate the possibility to make the search case insensitive, if not possible, maybe we should force the letters to be uppercase since all satellites currently in the database use upper case letter.
Case insensitive would be nice.
Having the list eliminate all entries that do not contain the string seems like one option for the right behavior. Not sure if this is possible easily.
The change to make the search case insensitive is to change strstr to strcasestr
However before launching into this, is it worth switching over from a GtkTreeModel to a GtkTreeModelFilter. This could eliminate the need for muiltiple models, make is so only satellites containing ISS would be visible in the search and add one cool feature which is to make a satellite disappear when it is copied over to the selected column.
Possible New Satellite Selector
Alex,
Please comment on a potential new search functionality for sat selector.
Instead of needing to do a long manual, the list is filtered based on your entry in the search box. The search is case insensitive. This seems to meet the needs you outlined.
Technically this is implemented with TreeModelFilter. It right now only works with the All satellites group before changing the groups. To push it further would require additional since the models cannot be swapped out as easily as without the filtering.
If you like it the idea, I will push on.
I find the idea of filtering interesting, but in the end behaviour must be consistent across all groups. So if the "only
works with the All satellites group" is temporary I'm fine with it.
I will interpret that as this is worth further development to apply it to all the groups.
It still sounds as though it is not what you had in mind.
Yes, please go ahead.
We can try it with the "all sats" group to begin with - I just wanted to make sure that it will eventually be usable with all groups.
Just for historic value and context, this is related to
<http://sourceforge.net/tracker/?func=detail&aid=3050047&group_id=213550&atid=1026164>.
The reason for the original change was that sometime people want to search for a term that appears in the middle of the satellite name and not at the beginning. The example in the prior discussion was SO-66 which was listed as SEEDS II (SO-66).
svn checkin 759 replaces the search capability with a filtering capability that makes it easier to find both ISS and CO-66.
I just tried it and it's awesome! I think it is much more useful than any of the previous implementations. Thanks!