TheR1D / shell_gpt

A command-line productivity tool powered by AI large language models like GPT-4, will help you accomplish your tasks faster and more efficiently.
MIT License
8.81k stars 693 forks source link

Fix #329: Ability to follow up on one-off prompts with chat and repl #556

Open jeanlucthumm opened 2 months ago

jeanlucthumm commented 2 months ago

Adds new flag --follow-up (-fu) which can be used with --repl and --chat to pull in the last one-off prompt.

Implemented by keeping a last_chat file in the cache directory that's overwritten for every default prompt call (sgpt "[some prompt]"), and then copying this file over to the chat cache directory when -fu is specified.

image

image

jeanlucthumm commented 2 months ago

329

jeanlucthumm commented 2 months ago

@TheR1D I thought there was a way for me to assign reviewers but I can't find it.

Robinsane commented 2 months ago

@TheR1D I thought there was a way for me to assign reviewers but I can't find it.

The button appears on the top right of this page, but only after it's been reviewed once already. The idea is probably, once you made a PR, it's always ready for review :)

jeanlucthumm commented 2 weeks ago

@TheR1D friendly ping on review