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
Completions not sorted after filtering #3156
Comments
I previously removed the sorting logic from SortFilter thinking it was unnecessary if we construct the model with a sorted list. However, this only worked when no pattern was set, and the items are misordered as soon as a pattern is input. This patch reintroduces alpha-sorting, which can be disabled by passing sort=False to the ListCategory constructor. The session completion test had to be tweaked as it simulated the incorrect assumption that the session list is not alpha-ordered; sessions come out of the session-manager pre-sorted so we may as well use alpha-sorting in the session completion model. Resolves qutebrowser#3156.
I previously removed the sorting logic from SortFilter thinking it was unnecessary if we construct the model with a sorted list. However, this only worked when no pattern was set, and the items are misordered as soon as a pattern is input. This patch reintroduces alpha-sorting, which can be disabled by passing sort=False to the ListCategory constructor. The session completion test had to be tweaked as it simulated the incorrect assumption that the session list is not alpha-ordered; sessions come out of the session-manager pre-sorted so we may as well use alpha-sorting in the session completion model. Resolves #3156. (cherry picked from commit 47447c0)
Would it be possible to sort specifically by latest used? E.g. when I'm typing stuff to |
@Hi-Angel that should be exactly how If you're talking about |
@rcorre There is a difference between most-recently and most-often used 😉 |
Right, so which do you want? 😉
Latest?
Or most often? The former is implemented, the latter is possible but probably a significant amount of work. Or maybe you're looking for frecency? |
Also see #601. |
Yes, |
From the mailing list:
Looks like we lose sorting after filtering. I thought just inserting items in order would be fine, but looks like I need to bring back the
SortFilter
'ssort
implementation. A bit embarrased I didn't test this 😟The text was updated successfully, but these errors were encountered: