The In-Laws and NH and chatgpt-shell context

Posted on Jun 28, 2023

Headed to the White Mountains with CEO to hang with the family for a few days.

org-babel chatgpt-shell multiple src block contexts!

I’m on the plane, my laptop is shaking with turbulence, and I’m going to try and put together multiple org-babel chatgpt-shell contexts. Okie dokie.

Notes

The chatgpt-shell context is produced by the –context function. Currently this function takes no arguments, but if it was modified to 1) accept the name of the context it can a

Tasks

  • [-] Research ob-chatgpt-shell to understand how :context works
  • Modify code to work with multiple contexts
    • –context function should only collect from its context
    • ob-chatgpt–relevant-source-blocks-before-current
      • or is it ob-chatgpt–all-source-blocks
    • is that really it code-wise?
  • Update the documentation to show multiple contexts
  • Open PR against xenodium
    • nice ol PR message with problem / summary / examples
  • Handle feedback

Test Case

How do you do?

Fun find: ielm-change-working-buffer

The ielm-change-working-buffer function, called from an ielm buffer, rebinds the current interactive elisp buffer to evaluate its sexps in the provided buffer. This is amazing as you often want to test out some elisp functions in the context of a particular buffer. For example the org code I was working on above.

By default the ielm-change-working-buffer function is bound to C-c C-b.