mcfly icon indicating copy to clipboard operation
mcfly copied to clipboard

Arrow keys sometimes fail to navigate up/down query list

Open CreativeCactus opened this issue 5 years ago • 3 comments

I have noticed that arrow keys sometimes fail to navigate up and down in a search list. Can you give an idea of where to look in the code to track this bug down? My Rust is still a bit rusty.

Steps to reproduce:

  • Open new terminal
  • Ctrl+R, can only navigate with PgUp/PgDn
  • echo "-" | less, q to quit
  • Ctrl+R, can now navigate with arrow keys

I expected this to involve some kind of $TERMCAP issue, but the fact that running less has a lasting effect is perplexing.

Suckless Terminal (custom build)
Screen version 4.08.00 (GNU)
GNU bash, version 4.4.23(1)-release

CreativeCactus avatar Oct 21 '20 07:10 CreativeCactus

Hey @CreativeCactus, sorry for the delay! I feel like I've seen that once or twice on Linux. I don't think I've seen it on my Mac, at least not in zsh. I don't know what would cause it.

cantino avatar Nov 15 '20 19:11 cantino

You could try adding a debug line that prints to the screen (or, if that isn't showing up because of the mode, to a file) with each keycode received here: https://github.com/cantino/mcfly/blob/master/src/interface.rs#L362

cantino avatar Nov 15 '20 19:11 cantino

I am having the same issue with broot. See https://github.com/Canop/broot/issues/168

aminya avatar Jun 30 '21 11:06 aminya