Skip to content

How to remove a file or buffer from context? #487

Closed Answered by karthink
gavinhughes asked this question in Q&A
Discussion options

You must be logged in to vote

For 2: yes, I think it's a good idea to add a command to dump the context. There's a little more to it than resetting gptel-context--alist, see my response in #486.

For 1: You can remove specific context chunks from the context inspection buffer. Press d to mark a context chunk for deletion, n and p to navigate, it's the same keybindings as dired/buffer-list/ibuffer:

For regions or buffers, you can also clear context chunks from their destination locations, run M-x gptel-add again to toggle context.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gavinhughes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants