Settings

Theme

Show HN: IRedis: CLI for Redis with AutoCompletion and Syntax Highlighting

github.com

97 points by laixintao 6 years ago · 10 comments

Reader

dpbriggs 6 years ago

This is really great! The tui is very intuitive and the auto-complete a great addition.

It even highlights keys and values differently: https://i.imgur.com/mrOMBUi.png

It also handles redis server weirdness as well by faithfully relaying error messages.

I haven't explored the tool too deeply but would it be possible to get keys from redis itself to assist with auto-complete?

fiatjaf 6 years ago

I installed it with the only hope it would recognize Redis URIs like redis://name:password@host:port/db, unlike redis-cli, which requires me to type each part of the URI separated in different flags I never remember.

Turns out it doesn't, but maybe someone will hear me in the future!

drivers99 6 years ago

I just took a peek in the code to make sure it didn't use the "keys" command. I see you give a warning for a list of dangerous commands. Good thinking!

  • laixintaoOP 6 years ago

    Yes currently iredis won't send any command secretly, behave like redis-cli. The completion is based on history.

kbumsik 6 years ago

That looks great! I guess it can support other DB from its base.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection