cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Horsfall (alh) (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-4666) Add multi-line support to cqlsh history buffer
Date Thu, 13 Sep 2012 19:39:07 GMT


Matthew Horsfall (alh) commented on CASSANDRA-4666:

Also I just realized that if you exit out of cqlsh and go back in, the written history has
everything broken out by line so you once again lose the multi-line support for anything saved
prior running cqlsh.

This is still a step in the right direction I think. To solve we could just concat the string
together before calling readline.add_history().
> Add multi-line support to cqlsh history buffer
> ----------------------------------------------
>                 Key: CASSANDRA-4666
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>            Reporter: Matthew Horsfall (alh)
>            Priority: Minor
>              Labels: newbie, patch
>             Fix For: 1.2.0
>         Attachments: trunk-4666.patch
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> The cqlsh tool has history support. If you press the up arrow, you get previous entries.
> If you do a multi-line command however like:
> {noformat}
>  cqlsh > do
> something;
> {noformat}
> when you press the up arrow you get each individual statement separately. (First "something;"
and then "do").
> This is not useful if you type a large create statement and typo one of the pieces.
> It'd be nice if cqlsh supported multi-line history items and could bring them back with
the up arrow.

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:

View raw message