xenodium / chatgpt-shell

A multi-llm Emacs shell (ChatGPT, Claude, Gemini, Ollama) + editing integrations
https://lmno.lol/alvaro
GNU General Public License v3.0
862 stars 77 forks source link

Is there a way to start a new session AND clear the chat buffer? #192

Closed tupini07 closed 9 months ago

tupini07 commented 9 months ago

Hi, thanks for this great package!

This is more of a question than a feature, but I can't seem to find a way to start a new chat session (clear all past messages in memory) as well as clear the chat buffer itself.

I've seen that I can run M-x chatgpt-shell to accomplish the first and clear all memory of my messages (so, in practice starting a new chat session), however the existing messages from the chat buffer are not cleared. Instead I need to type clear to clear the buffer (OR close the buffer and then start a new shell, which is more cumbersome).

If there's no way to do this in one step then it would be nice to add one!

xenodium commented 9 months ago

Hi, thanks for this great package!

Thanks. Glad you like it.

I can't seem to find a way to start a new chat session

Invoking chatgpt-shell always goes to the existing chat (along with existing history), but if you invoke with a prefix (ie. C-u), it should start a new chat for you (clean history).

Does that help?

tupini07 commented 9 months ago

Thanks yes that's exactly what I was looking for 🤗 Closing