tigrawap / slit

slit - a modern PAGER for viewing logs, get more than most in less time
Other
469 stars 19 forks source link

added ctrl+r for switching search type... #79

Closed koreno closed 4 years ago

koreno commented 4 years ago

...because WebSlit's xterm emulator doesn't deal with ctrl+/

tigrawap commented 4 years ago

Did you try checking what it emits on ctrl+/? Maybe it can be caught instead

koreno commented 4 years ago

Believe me I tried... digging into "Go" code is still out of my comfort zone... ctrl+/ seems not very standard, especially in the context of a browser that is expected to send your keystrokes to a javascript that is attempting to mimic a terminal...

If there was a keyboard mapping configuration file you could do away with all this and let the user customize. For now I have a fork with this piece of code, just thought it would make sense offer it upstream.

tigrawap commented 4 years ago

Can you try running this using webssh/hack around webslit to run this instead of slit: https://github.com/nsf/termbox-go/blob/master/_demos/keyboard.go

To see what it receives when you do ctrl+/ in browser?

tigrawap commented 4 years ago

Nevermind, tried webssh directly, it sends nothing