Save query history in $HISTFILE.lazyshell-complete#8
Save query history in $HISTFILE.lazyshell-complete#8xPMo wants to merge 1 commit intonot-poma:masterfrom
Conversation
Exit out without querying or saving history if query was empty
|
I think merging history saving makes sense when the script can actually fetch the past queries on up/down keys. Empty response change is a good idea, can be merged immediately if you submit it in a separate PR. |
Unless I'm misunderstanding you, that's exactly what I've implemented here.
I've actually played around with a few things in my fork, and realized there is value in allowing an empty buffer to trigger a request. Here's what I put together over there:
|
Additionally, exit out without querying or saving history if query was empty. ChatGPT has typically responded with something like "please submit a query".