node-chatgpt-api
node-chatgpt-api copied to clipboard
[feature request]Multiline input in CLI interface and alt+enter to submit
Is your feature request related to a problem? Please describe. The CLI interface submits the prompts with enter, which makes it hard to input multiline prompts, and a newline character also submits prompts in pasted content.
Describe the solution you'd like Can we have alt+enter or an option to choose the prompts submit signal, which makes typing multiline prompts easier ?
Use the "!editor" command. IIRC the CLI even says to use it for multi-line inputs.
Use the "!editor" command. IIRC the CLI even says to use it for multi-line inputs.
That's very useful in code paste! It would be great if there is an option to choose the submit signal.
I tried to take a stab at it to implement directly from the prompt but its almost impossible in node.js: https://stackoverflow.com/questions/66604677/how-to-detect-shift-enter-in-nodejs-terminal/76099130