dilemma icon indicating copy to clipboard operation
dilemma copied to clipboard

Cannot navigate through long lists

Open fubarhouse opened this issue 8 years ago • 1 comments

Where the lists of options are quite long, the program will always scroll to the bottom of the list after using the up/down arrow keys.

I'd love for an ability to turn the feature on/off in the config declaration, but what's your opinion on the matter?

fubarhouse avatar Jan 28 '17 07:01 fubarhouse

It is not a feature, more a property of how the library works. Whenever you do a key action it re-renders the entire list to update the selected line with the correct highlight.

Possibly this can be fixed but probably involves trying to not fully re-render but only re-render the lines that are impacted (e.g. the line you were on and the line you are on now). Also the help text would need to be redesigned as it currently always displays at the bottom and can not be seen if the list doesn't fit on the screen.

Another option is to do virtual paging, so fitting to the maximal terminal size and then scrolling the list inside the library (with some visual indication). I imagine this would be easier to implement and possibly looks less weird as well. I think I prefer this option.

I have no immediate plans to address this but you are welcome to give it a go.

robbiev avatar Feb 03 '17 10:02 robbiev