Open danielkrajnik opened 1 year ago
I think you basically want to have a different behavior for the cursor within the list. The cursor is basically the keyboard focus within the list and it is highlighted by a rectangle around the row. So when you do any keyboard navigation (up/down, page-up/down) you're actually moving the cursor up and down and if it is currently out of view the list scrolls to the new cursor position.
Selection travels with you when pressing Page Up and Page Down keys, but not when scrolling with the mouse (I think voidtools' Everything works this way).
Do you mean the cursor should also move up and down when you scroll with the mouse? I'm not sure I like that, but I'll see how this works and feels in Everything and report back to you.
Option to make up and down arrow keys to scroll rather than move selection (or be able to assign another key for that purpose).
I like this one better; having a dedicated shortcut for scrolling the list with the keyboard, without moving the cursor. It would be great to know if there are other GUI apps out there which support that, for consistency sake. To me the VIM-like shortcuts sound like a good candidate, something like:
ctrl-j
to scroll down by one rowctrl-k
to scroll up by one rowctrl-h
to scroll to the left by a bitctrl-l
to scroll to the right by a bitctrl-d
to scroll down by half a half a pagectrl-u
to scroll up by half a pageBut this probably feels pretty weird to non-VIM users.
Another solution I can think of would be to use the Alt
modifier for that, so Alt-Up
, Alt-Down
, Alt-PageUp
, ... would then only scroll up and down, without affecting the selection or cursor.
New button to put selection in the middle of the current view.
That also sounds like a good action to have. I'm not sure if it makes sense to assign a default shortcut for that (because I don't know of any app which supports this by default), but with the future custom-keyboard shortcuts you could then simply assign any key-combo you want to that action.
having a dedicated shortcut for scrolling the list with the keyboard, without moving the cursor
yes, that would be great. Emacs works this way (Doom emacs at least)
Do you mean the cursor should also move up and down when you scroll with the mouse
Sorry, I meant that it would move when scrolling with "Page Up" and "Page Down", but wouldn't move when scrolling with the mouse.
I don't have Everything running right now, but I think when you scrolled and pressed either "Up" or "Down" arrow keys the cursor would appear in the top or bottom of the VISIBLE entries. The cursor wouldn't travel with you when scrolling, but would only appear when pressing one of those arrow keys (without changing your current "view").
future custom-keyboard shortcuts
This will be a super useful feature, looking forward to it :)
Is your feature request related to a problem? Please describe. (FSearch 0.3.alpha0 (AUR-devel)) When scrolling selection "stays behind" on the last selected item. It makes the up and down keys "scroll you back" to that item even when you "scrolled away" from it already (because up and down keys move the selection and not the view).
some item selected
"scroll away"
press "up" arrow key - it "scrolls you back" to that item
Describe the solution you'd like Three ideas: