Lachim / redis

Automatically exported from code.google.com/p/redis
2 stars 0 forks source link

LOW PRIORITY: redis-cli doesn't understand "home" and "end" commands #449

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
redis-cli version 2.1.11 on Ubuntu 10.04

Example: I have a long key and I set some value and now I want to get it, I 
can't just press 'home' and change the 'set' to a 'get'. Slight inconvenience 
but I'm sure it's a common one.

Original issue reported on code.google.com by TheD...@gmail.com on 4 Feb 2011 at 5:20

GoogleCodeExporter commented 8 years ago
You can use ctrl-a and ctrl-e to jump to the beginning or end of line.

Original comment by pcnoordh...@gmail.com on 4 Feb 2011 at 6:07

GoogleCodeExporter commented 8 years ago
Hi,

please find two patches below for your consideration.
They are meant to be applied on linenoise master
on top of 03e8e4dab590a2de2d1880a8700af0d69b7a1b14.
(same linenoise version used in redis/2.2 branch)

The first one adds HOME/END support (at least on Linux).
It has been tested on Linux xterm, KDE term, and console.

The second one is a dummy tool to display key codes.

Regards,
Didier.

Original comment by didier...@gmail.com on 5 Feb 2011 at 12:02

Attachments:

GoogleCodeExporter commented 8 years ago
This is frustrating. I'm using redis-cli inside tmux (which uses CTRL-A as a 
special command). Having home and end work as expected (at least on all PCs and 
for many MacOS users) is pretty much essential.

Original comment by ket...@gmail.com on 27 Sep 2013 at 11:14