From 36382e54721d0ba615f94045aa4e8d507928ae70 Mon Sep 17 00:00:00 2001 From: Aleksey Yeschenko Date: Mon, 18 Aug 2014 21:52:19 +0300 Subject: [PATCH] (cqlsh) enable CTRL-R history search with libedit patch by Aleksey Yeschenko; reviewed by Jeremiah Jordan for CASSANDRA-7577 --- CHANGES.txt | 1 + bin/cqlsh | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index 4b1becc81e..6c2ba2cf14 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) diff --git a/bin/cqlsh b/bin/cqlsh index 64d7bf586d..c99b98cb85 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: