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

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: https://issues.apache.org/jira/browse/CASSANDRA-4666
>             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: http://www.atlassian.com/software/jira

Reply via email to