-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gptel-rewrite: Improve rewrite UI and feature
* gptel-rewrite.el (gptel--rewrite-message, gptel-rewrite-directive, gptel-rewrite-directives-hook, gptel--rewrite-expand-prompt, gptel-rewrite-menu, gptel--infix-rewrite-prompt, gptel--suffix-rewrite): Use the new dynamic gptel directives feature to improve how rewriting works. - `gptel--rewrite-directive' generates a mode-specific rewrite message that is used as the system message. This can be overridden via functions in `gptel-rewrite-directives-hook'. - The actual instructions and code to be rewritten are fed to `gptel-request' as regular user prompts via a template. - The UI around adding rewrite instructions has been improved, it now shows a preview of the active system message in the minibuffer.
- Loading branch information
Showing
1 changed file
with
121 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters