dustinblackman / oatmeal

Terminal UI to chat with large language models (LLM) using different model backends, and integrations with your favourite editors!
https://dustinblackman.com/posts/oatmeal/
MIT License
487 stars 23 forks source link

feat: Copy entire chat session #18

Closed tadq closed 9 months ago

tadq commented 9 months ago

Sometimes it would be nice to copy entire chat session to clipboard. Then have those extra snippets of text as comments in the code inside text editor.

/c 0 - allow zero to copy entire chat session? /c - looks like this one copies "last" code block. Maybe it can be changed?

dustinblackman commented 9 months ago

I got this in the docs:

  • /copy (/c) [CODE_BLOCK_NUMBER?] - Copies the entire chat history to your clipboard. When a CODE_BLOCK_NUMBER is used, only the specified copy blocks are copied to clipboard. See Code Actions for more details.

Essentially /c copies the entire chat history, while passing in a integer can copy single code blocks. I considered the idea of copying single chat bubbles, but I didn't see much value as most would probably want code, or want it all.

Should the docs be clearer?

tadq commented 9 months ago

My bad. I should read the docs more closely. I use micro and VS Code and find effective copying very useful.

dustinblackman commented 9 months ago

Sounds like we need a VSCode editor integration. ;)