mithrandie / csvq

SQL-like query language for csv
https://mithrandie.github.io/csvq
MIT License
1.5k stars 65 forks source link

Trouble navigating interactive mode on Windows #26

Closed caycaycarly closed 4 years ago

caycaycarly commented 4 years ago

I couldn't use csvq in interactive mode on git-bash because it isn't a real shell, so I went ahead and ran it on powershell.

But I ran into a few problems, like...

[Some of these problems seem really weird and I hope it might be isolated to just my computer, but looking for a confirmation]

1> Navigating using the arrow keys. Going backwards is not possible without using backspace. 2> Typing single or double quotes autocompleted the closing quote and I couldn't navigate my cursor out of the quote without deleting the closing quote using Ctrl+D and manually closing it myself later. 3> Not being able to run the previous command run in the interactive mode using the up arrow key

mithrandie commented 4 years ago

Let me check the behavior later. It may take a few days.

mithrandie commented 4 years ago

@caycaycarly

I checked the behavior on Windows. Certainly the arrow keys are not working on Windows.

As a workaround, the following shortcut keys can be used instead of the arrow keys.

See this page for available shortcut keys. https://github.com/chzyer/readline/blob/master/doc/shortcut.md

The interactive shell uses an external library, so I don't know if it can be fixed soon. I'll investigate the cause anyway.

mithrandie commented 4 years ago

This bug has been fixed and the fix is released as version 1.12.4. Thank you for reporting.