You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When searching for e.g. "scrolledwindow" the GtkScrolledWindow class is not in the first page of results. While one can enter any method and go up, it might make sense to sort the results so that the classes appear first.
The text was updated successfully, but these errors were encountered:
I'm actually not quite sure how we can do this. The search results are found using fzy.js which is the module used by gi-docgen as well for fuzzy searching. When someone searches for scrolledwindow, there's no way to know the intention of the user whether they want the class or a method on scrolled window. If we just increase the score of all results which are classes so that they appear at the top, then searching for say "button" will just give GtkButton, AdwTabButton, FontButton...etc before any of the methods or properties of button start. I think it becomes hard to find a good balance.
I understand your point that it's easy to go from a class to a method/property, but if someone just simply wants search for a property or a method it might become harder to find it.
When searching for e.g. "scrolledwindow" the GtkScrolledWindow class is not in the first page of results. While one can enter any method and go up, it might make sense to sort the results so that the classes appear first.
The text was updated successfully, but these errors were encountered: