Open TehPeGaSuS opened 2 years ago
The idea behind moving hot buffers to the top is so that when you get a highlight, you can see the hot buffer when you open the buffer list, and when you get several highlights, you can see all buffers at once and can decide which one to tap on first. This is a poor man's solution, for the reason you mentioned, and also because the buffers end up on the top of the screen where these can be hard to reach.
While having an option to not move hot buffers to top is a perfectly reasonable request, a better solution would be to allows the user to see or at least to get to all hot buffers without shuffling them around. Ideas welcome! And a PR that implements the option would be welcome as well.
Better a late reply then never.
The idea behind moving hot buffers to the top is so that when you get a highlight, you can see the hot buffer when you open the buffer list, and when you get several highlights, you can see all buffers at once and can decide which one to tap on first.
I've been thinking about this and I agree that having all hot buffers at the top is useful for the reasons stated above.
While having an option to not move hot buffers to top is a perfectly reasonable request, a better solution would be to allows the user to see or at least to get to all hot buffers without shuffling them around.
IMHO, we could have an option like Show hot buffers on top?
(checked by default to keep the current behaviour), so users could choose.
We already have the option of tapping the 🔔 icon to be able to cycle around the hot buffers and we can select the appropriate notification from the notifications bar to go to a specific hot buffer. I, personally, use the latter more often.
Cheers
7f02197 is an experimental attempt at fixing the issue.
At large, assuming we don't do anything special about the hot buffers, and if all buffers do not fit the screen, the issues with them is as follows:
Current master solves this in a dumb way, by placing all hot buffers together on the top, and scrolling to the top. It is simple but the obvious drawbacks are:
The branch pointing to 7f02197 adds an option to keep the buffer list ordered by number even when there are hot buffers, instead adding tappable arrows that scroll to the next hot buffer above or below visible buffers, if any. Also, automatic scrolling is only performed if the buffer list isn't visible, and only when we get a new hot buffer. While this works,
Now, we can add more options to suit more use-cases, but going this way will still have drawbacks. I wonder if anyone has better ideas.
Also, automatic scrolling is only performed if the buffer list isn't visible
This is exactly what I was expecting not to happen. This is what I've said on IRC:
<PeGaSuS> in my case, sometimes I'm at the very end of all buffers (222 in my case). then I'm highlighted on buffer 107 but I don't want to check it right away but I need to say something on buffer 220. so, I need to scroll down through all buffers again to buffer 220
Yes, this only happens when the buffers list isn't visible but that's what happens most of the times.
While for some people, with few networks and channels this might not be too bothersome, in my case (more than 250 buffers) it's a little more complicated, especially when I'm in the last buffers on the list.
Because even though I'm in the buffer I'm being highlighted in, that same buffer is sent to the top of the buffer list, which forces me to scroll down through the entire buffer list to get back to the network where that same buffer belongs.
This becomes a bit annoying especially when you're in help channels in different networks and you're highlighted in more than one, and since we have the "Notifications" icon that
teleports
us directly to the buffer, making the buffer list to remain untouched even when we are highlighted would be neat.I hope I've made myself clear enough since English isn't my first language.
Cheers!