Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gptel-context: Improve context management of buffers #727

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pabl0
Copy link
Contributor

@pabl0 pabl0 commented Mar 20, 2025

  • gptel-context.el (gptel-context-add-buffer): Introduce new function for adding a buffer (object or name). This is useful for incorporating buffers from Lisp code in addition to interactive usage. (gptel-add-buffer): Create an alias (similar to gptel-add-file). (gptel-context-add): Utilize the new function. Add support for adding/removing items in the Buffer List menu.
    (gptel-context-remove): Add functionality to remove (entire) buffers from context (used when removing from the Buffer List).

* gptel-context.el (gptel-context-add-buffer): Introduce new function
for adding a buffer (object or name).  This is useful for incorporating
buffers from Lisp code in addition to interactive usage.
(gptel-add-buffer): Create an alias (similar to `gptel-add-file').
(gptel-context-add): Utilize the new function.  Add support for
adding/removing items in the Buffer List menu.
(gptel-context-remove): Add functionality to remove (entire) buffers
from context (used when removing from the Buffer List).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant