read only history (proof of concept included) #1439
fommil
started this conversation in
Show and tell
Replies: 1 comment
-
|
gptel buffers are meant to be editable -- this is the main things that separates them from the more tranditional chat-box or shell interfaces. I suggest adding this to the wiki, though, folks might find it useful. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I often accidentally delete or edit the history of the buffer when scrolling through it, so I implemented this hook to mark the whole buffer (except the next input prompt) as read-only.
I'm happy to package this up as a PR if you want it (this is the kind of thing that could accumulate as clutter over time, and it's untested), otherwise, I'm just leaving it here as a recipe for anybody who wants similar.
and this is needed to let context to be used at
userlevel (when editing gptel, obviously, this can just go into the function no need to advise)Beta Was this translation helpful? Give feedback.
All reactions