cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.87k stars 177 forks source link

Arrow keys sometimes fail to navigate up/down query list #108

Open CreativeCactus opened 3 years ago

CreativeCactus commented 3 years ago

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:

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
cantino commented 3 years ago

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 commented 3 years ago

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

aminya commented 3 years ago

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