influxdb console shell should make use of the history

Created on 11 Oct 2016  路  5Comments  路  Source: influxdata/influxdb

using arrow up and arrow down on the influxdb console is giving this result:

> ^[[A^[[A^[[B^[[B

forcing me to re-enter each query manually. This is really annoying.
I know the webUI is providing this feature but I would like the console to it as well.

arecli kinbug

Most helpful comment

And frankly, if it doesn't support Vim mode, then it's broken. Yes I know _many_ people are happy with CTRL-R etc, but actually if you're a vi user , then you set -o vi at the shell, and expect utilities which support history to also support vi-mode - or at least to be able to be compiled to support readline, which does.

All 5 comments

Influx is using Liner for the CLI.

You should be able to search the history (cmd+r) -> search term.
However it seems there is currently no support for ArrowUp/ArrowDown within that lib.

What are you running this inside of? If you run it in a normal terminal, this should already work. I think there might be an issue though if you run the CLI within Docker. I haven't investigated why the arrow keys don't work in Docker yet, but I think I remember running into that before.

I know it works on Mac OS X. If you can tell us where this happens, we can work on getting the issue to the appropriate spot.

I am running influxdb in a Docker container. I am using tmux, and my terminal is item.

While running influxdb in a container, you do not want to open the port to access the UI. You just want a console that work.

thank a lot for your interest in this issue

Closing this in favor of influxdata/influxdata-docker#26.

And frankly, if it doesn't support Vim mode, then it's broken. Yes I know _many_ people are happy with CTRL-R etc, but actually if you're a vi user , then you set -o vi at the shell, and expect utilities which support history to also support vi-mode - or at least to be able to be compiled to support readline, which does.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

allenbunny picture allenbunny  路  3Comments

affo picture affo  路  3Comments

airyland picture airyland  路  3Comments

756445638 picture 756445638  路  3Comments

Witee picture Witee  路  3Comments