cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alek...@apache.org
Subject [1/5] git commit: (cqlsh) enable CTRL-R history search with libedit
Date Mon, 18 Aug 2014 19:02:46 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk ddeb496ee -> e7d65346c


(cqlsh) enable CTRL-R history search with libedit

patch by Aleksey Yeschenko; reviewed by Jeremiah Jordan for
CASSANDRA-7577


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/36382e54
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/36382e54
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/36382e54

Branch: refs/heads/trunk
Commit: 36382e54721d0ba615f94045aa4e8d507928ae70
Parents: 384d4f0
Author: Aleksey Yeschenko <aleksey@apache.org>
Authored: Mon Aug 18 21:52:19 2014 +0300
Committer: Aleksey Yeschenko <aleksey@apache.org>
Committed: Mon Aug 18 21:52:19 2014 +0300

----------------------------------------------------------------------
 CHANGES.txt | 1 +
 bin/cqlsh   | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/36382e54/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 4b1becc..6c2ba2c 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 2.0.10
+ * (cqlsh) enable CTRL-R history search with libedit (CASSANDRA-7577)
  * Fix dropping collection when it's the last regular column (CASSANDRA-7744)
  * Properly reject operations on list index with conditions (CASSANDRA-7499)
  * (Hadoop) allow ACFRW to limit nodes to local DC (CASSANDRA-7252)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/36382e54/bin/cqlsh
----------------------------------------------------------------------
diff --git a/bin/cqlsh b/bin/cqlsh
index 64d7bf5..c99b98c 100755
--- a/bin/cqlsh
+++ b/bin/cqlsh
@@ -741,6 +741,7 @@ class Shell(cmd.Cmd):
                 if readline.__doc__ is not None and 'libedit' in readline.__doc__:
                     readline.parse_and_bind("bind -e")
                     readline.parse_and_bind("bind '" + self.completekey + "' rl_complete")
+                    readline.parse_and_bind("bind ^R em-inc-search-prev")
                 else:
                     readline.parse_and_bind(self.completekey + ": complete")
         try:


Mime
View raw message