Issues due to tab switching in windows
After window switch, coming back to usql window, tab switching problem generally happens when some query is written but not executed and after coming back to usql window and using back space.
- key strokes- d,f,b don't work.
- Back space erases multiple key strokes at once.
@nilayrane this is probably an issue with the readline package that usql uses. Could you elaborate on what operating system / platform you were using, please?
I can confirm it's a bug in readline. Most probably reported upstream there
@thda appreciate the feedback. It's long been on my personal backlog to do a brand new, full native Go package for readline support that would overcome these issues, as I've long been cognizant of the limitations of the readline package that usql uses. Go really needs something akin to prompt-toolkit in Python) but that is a large enough task / time sink that I haven't been able to get around to it. My estimate is that a proper prompt/readline package in Go would be ~4000-5000 lines of code on its own (ie, equivalent to the complexity/line count of usql itself), and as such is why I have yet to undertake it.
@kenshaw hi Ken. It's indeed a lack. There are some building blocks in crypto/ssh/terminal and gdamore/tcell/terminfo though.