hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Meyer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-120) Add readline support/support for alt-based commands in the CLI
Date Tue, 22 Jan 2013 21:50:20 GMT

    [ https://issues.apache.org/jira/browse/HIVE-120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13560069#comment-13560069
] 

Martin Meyer commented on HIVE-120:
-----------------------------------

FYI, there's a JNI wrap of readline available for Java: http://sourceforge.net/projects/java-readline/
. I imagine that will be helpful in implementing readline support, which I would dearly love
to have. It's pretty annoying when pressing ctrl+left inserts ";5D " instead of moving one
word left on my line. It's packaged for at least Debian stable already, which means probably
available almost everywhere.
                
> Add readline support/support for alt-based commands in the CLI
> --------------------------------------------------------------
>
>                 Key: HIVE-120
>                 URL: https://issues.apache.org/jira/browse/HIVE-120
>             Project: Hive
>          Issue Type: New Feature
>          Components: Clients
>         Environment: OS X/Terminal, but should affect anyone running bash
>            Reporter: Thomas Lento
>
> When I use bash, I can typically navigate using option (alt) based command sequences.
For example, option-f skips forward a word. Option-b skips back. option-d deletes the next
word. option-backspace deletes the previous word.
> The Hive2 CLI only recognizes ctrl-based shortcuts. This makes the CLI much more difficult
to use (at least for me, since it looks like a bash terminal and every other program I use
in bash recognizes these alt-based commands). I find it useful to drop in there for a quick
scripting session, but if I make a typo I have to go character by character from either the
beginning (ctrl-a) or end (ctrl-e) of the line. Tedious.
> If you could support alt-based commands I'd really appreciate it. If that's not possible,
I'll have to stick with -e or -f, which is rather annoying for other reasons.
> Similarly, ctrl+k kills to the end of the line, as expected. Unfortunately, ctrl+y does
not yank the killed text back. Please add support for yanking killed text.
> According to Venky, adding Readline support should solve this issue.
> http://web.mit.edu/gnu/doc/html/rlman_1.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message