oterm icon indicating copy to clipboard operation
oterm copied to clipboard

Suggestion: Scroll history of current chat via keyboard

Open nossidge opened this issue 10 months ago • 2 comments

This is a great UI, it's almost 100% what I want!

It's perfect for my requirements, but for one thing. It seems to be necessary to use the mouse to scroll up and down through a chat.

I'd like to be able to use this program through the full-screen TTY Linux session (via Ctrl+Alt+F5) where using the mouse isn't an option.

Would it be possible to make this 100% keyboard-only compatible, by perhaps allowing the use of the PageUp and PageDown keys to scroll through the chat history?

Thanks, and I hope you give this feature a thought!

nossidge avatar Apr 13 '24 23:04 nossidge

Hey thank you so much for the kind words :) This has popped up before, it's something that I also miss. The difficulty is that the underlying markdown widget does not get focus (it's only a view) and does not support afaik keyboard scrolling. It is hard to capture keyboard events without messing with the terminal's own events. Let me think a bit about it, perhaps I can can figure out something by binding to the inputs.

ggozad avatar Apr 14 '24 06:04 ggozad

As a workaround, it is possible to use an app call homerow allows for keyboard only scrolling of the chat history via a keyboard shortcut. working on macos using iTerm.

On that note, I do have to remove in iTerm the default binding of ctrl-tab to switch tab. to allow the keypress to reach oTerm. and I only manage to get the tabbing working running oterm directly under a iTerm tab. The control-tabbing doesn't work if I run it under byobu. But that is another issue.

pekcheey avatar Aug 26 '24 01:08 pekcheey