nheko icon indicating copy to clipboard operation
nheko copied to clipboard

Sort Ctrl-K search based on room activity

Open hifi opened this issue 3 years ago • 4 comments

The Problem

I have non-closed DMs with the same people on multiple different homeservers and Ctrl-K search always sorts the wrong rooms first.

The Solution

Simple fix would be to order based on activity after relevance is filtered.

Alternatives

Sort based on room prioritization (I've set them to low) but activity sorting should be a one-size-fits-all solution. Combining them would probably be the ultimate fix but :shrug:

Additional context

I'm on current nightly (0.9.1-19e2527b).

Happens in the latest version

  • [X] Yes, this feature is still missing.

hifi avatar Feb 07 '22 11:02 hifi

Also, it would be great to identify the current room (or at least hide it). I have multiple DMs with the same users (for historical reasons; often one of them is encrypted and not the other). If I select the wrong one and Ctrl-K to switch away, it's always a guess as to which is which.

MayeulC avatar Mar 25 '22 18:03 MayeulC

I think this suggestion might fit here too, instead of opening an empty ctrl+k, and wait for the user to type something, it could open with a bunch of suggestions already, even with an empty input.

duarm avatar Oct 04 '23 17:10 duarm

I think this suggestion might fit here too, instead of opening an empty ctrl+k, and wait for the user to type something, it could open with a bunch of suggestion already, even with empty input.

I had been thinking about this for a while, and I think showing the last visited rooms would be great (same "ribbon" of recent rooms that Element clients show, it would be great to show it on Ctrl-K before the user types).

MayeulC avatar Oct 05 '23 11:10 MayeulC

We do some sorting now, if you have 2 rooms with the same name, the one with more recent messages should be first. We don't do anything more advanced though and interaction with the search matching makes sorting rooms with different names tricky.

deepbluev7 avatar Jan 09 '24 04:01 deepbluev7