ncspot icon indicating copy to clipboard operation
ncspot copied to clipboard

VIM navigation in context menu is faulty

Open julianjarjour opened this issue 1 year ago • 1 comments

Describe the bug VIM up-and-down navigation (j and k) have two main issues in the context menu:

  • Close button is accessible via arrow keys but not via pressing j or end.
  • When adding a track to a playlist, using j to scroll down results in the selection moving beyond visibility and the scrollbar not adjusting. The same occurs when trying to scroll up from the bottom of the list with k. Arrow keys and scroll wheel work as expected.

To Reproduce

  1. open ncspot
  2. use o or shift+o to open the context menu for a track
  3. select "Add to playlist" (you must have enough playlists for a scrollbar to appear)
  4. scroll beyond what is visible using j or up from the bottom using k (this is where faulty scrollbar behavior appears)
  5. try to close the menu by holding j (or pressing end) to select the close button

Try the same steps using arrow keys to see expected behavior.

Expected behavior

  • Close button should be selected when scrolling to the bottom with j or when pressing end.
  • "Add to playlist" in context menu should scroll up and down with the selection when scrolling with j and k.

System OS: Arch Linux Terminal: Alacritty Version: 1.1.1 Installed from: cargo

julianjarjour avatar Jun 30 '24 16:06 julianjarjour

for the close button we can do a workaround by using back keybinding to close it

padulkemid avatar Nov 08 '24 19:11 padulkemid