hydra-python-agent icon indicating copy to clipboard operation
hydra-python-agent copied to clipboard

Add readline support to cli

Open gustavodemorais opened this issue 5 years ago • 3 comments

I'm submitting a

  • [ ] bug report.
  • [x] feature request.

Current Behaviour:

Currently, you cannot use arrow keys and navigate the input with the CLI, navigate previous commands and other basic CLI actions: image

Expected Behaviour:

Use it like any other CLI

This needs some cross-OS testing after importing readline because the dependency to install is a bit different in each OS. Saving some links:

Linux -> Comes by default https://docs.python.org/3/library/readline.html Windows -> https://github.com/pyreadline/pyreadline Mac -> https://github.com/ludwigschwardt/python-gnureadline

Do you want to work on this issue?

Yes

gustavodemorais avatar Jun 03 '19 08:06 gustavodemorais

I would love to work on this

thrishik7 avatar Feb 25 '20 16:02 thrishik7

Please open a PR with your solution and metion this issue :)

gustavodemorais avatar Feb 28 '20 14:02 gustavodemorais

This feature can be implemented by using cmd library I tried it and it works well. here I have attached a screenshot of the same.

It supports the arrow key gestures and I have used it on Linux and windows.

vedang@vedang: ~_178

vedangj044 avatar Dec 01 '20 14:12 vedangj044