Haiku Depot search and feature packages

The search function on haiku depot searchs only packages on the currently selected view (all or featured) and on startup the selected view is featured this means that if you search a package that is not in featured (golang for example) you will have an empty list, at first glance this looks like there isnt a golang package but if you switch to the ‘all’ tab is there.
screenshot1
screenshot2
I modified HaikuDepot so that it switches automatically to the all tab when you search for a package because for me is better that way. Is there a reason why it doesnt works this way currently?

I can see the confusion. But what about when you want to search within a section and not all?

The All tab should be default

1 Like

I think I remember that it used to do just that. But it’s more intuitive that the search function works with the current view state (featured/all packages or in the set category).
As HaikuDepot remembers the last focused tab, I suppose most users do as I do: on first launch, check the recommended packages, after that start on the “All packages” tab and enter a keyword to find what you’re looking for…

1 Like

If a package is in featured it will be in *all" too. You are going to find it anyway.
In the Windows Store and Play Store you can’t serach within the equivalent “Featured” category. In Yast and Synaptics (GUI for package managers on linux) there are two indepent search functions: Global search and Search for the current list, this list can be a list of featured packages or even the result of the last global search. I think this is a better approach.

As usual, is all about personal taste, but for me the “Featured” package is some kind of showcase, like “Ok, there are what Haiku recommends you to try, look and see if you find something for you”. In other ways, is like browsing the shelfs in the supermarket.

Continuing with the supermarket example, the search means “I know what I want and find it wathever is in the shelfs or deeply hidden in the deposit”. Then, for me, is better that the search function looks inside “all” packages.

After all, the “Featured” is a bit vague classification. Is not like we try to find something only in the source packages category, or maybe just inside the “development” packages, that could be reasonable based in what you are trying to do.

I’d love to have a search bar in supermarkets, plus a navigation app that plans route to all articles… :smile:

4 Likes