diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-14 01:26:28 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-14 01:26:28 -0500 |
| commit | 3f009981ea1f678eda586e0d6e8bef725dad4f63 (patch) | |
| tree | 7364537709344ace837697af94c30156d94b4c66 /modules/external-open.el | |
| parent | 798de4f1fb0c2c8021a59eee05a2f791a7f09e49 (diff) | |
| download | dotemacs-3f009981ea1f678eda586e0d6e8bef725dad4f63.tar.gz dotemacs-3f009981ea1f678eda586e0d6e8bef725dad4f63.zip | |
test(ai-config): cover gptel switch/add/toggle commands + small helpers
Second pass on ai-config. First batch covered the auth-source, API-key caching, file-context, clear-buffer, context-clear, and model-heading helpers. This batch covers the gptel command wrappers and a couple of small helpers:
- `cj/gptel--refresh-org-prefix`: refreshes the org-mode entry in `gptel-prompt-prefix-alist`.
- `cj/gptel-backend-and-model`: formats a vector-backend's name + the current model + a timestamp; falls back to "AI:" when no backend is bound.
- `cj/gptel-switch-backend`: picks a backend and one of its models, updates both gptel vars; errors on an invalid backend choice.
- `cj/gptel-add-buffer-file`: hands the visited file off to `cj/gptel--add-file-to-context`, messages otherwise.
- `cj/gptel-add-this-buffer`: calls `gptel-add` with the (4) prefix-arg.
- `cj/toggle-gptel`: deletes the window when *AI-Assistant* is already shown.
gptel and projectile primitives are stubbed throughout.
Diffstat (limited to 'modules/external-open.el')
0 files changed, 0 insertions, 0 deletions
