kardolus / chatgpt-cli

ChatGPT CLI is an advanced command-line interface for ChatGPT models via OpenAI and Azure, offering streaming, query mode, and history tracking for seamless, context-aware conversations. Ideal for both users and developers, it provides advanced configuration and easy setup options to ensure a tailored conversational experience with the GPT model.
MIT License
404 stars 28 forks source link

Please add readline capability for interactive mode #39

Closed vimagick closed 3 months ago

vimagick commented 3 months ago

The readline mode can be archived by rlwrap, but it's much better to have it built-in.

$ rlwrap chatgpt -i
[2024-04-01 00:00:00] Q1: hello world┃ # press Ctrl-A to move the cursor to the beginning
[2024-04-01 00:00:00] Q1: ┃hello world 

Thanks!

kardolus commented 3 months ago

@vimagick thanks for the suggestion. I will look into this. Seems like a cool feature to have.

kardolus commented 3 months ago

@vimagick fixed this in version v1.5.3. Please let me know if you have any issues!