Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble navigating interactive mode on Windows #26

Closed
caycaycarly opened this issue Jan 31, 2020 · 3 comments
Closed

Trouble navigating interactive mode on Windows #26

caycaycarly opened this issue Jan 31, 2020 · 3 comments
Labels

Comments

@caycaycarly
Copy link

caycaycarly commented Jan 31, 2020

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
Copy link
Owner

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

@mithrandie
Copy link
Owner

@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.

  • Ctrl+B (Backward one character)
  • Ctrl+F (Forward one character)
  • Ctrl+P (Previous Line)
  • Ctrl+N (Next Line)

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 mithrandie added the bug label Feb 3, 2020
mithrandie added a commit that referenced this issue Feb 4, 2020
Fix a bug that arrow keys do not work in the interactive shell on Windows. (Github #26)
mithrandie added a commit that referenced this issue Feb 4, 2020
Fix a bug that arrow keys do not work in the interactive shell on Windows. ([Github #26](#26))
@mithrandie
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants