You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I highlight a section of code in a buffer and press C-u gptel-send, then "r" twice, the refactoring process begins. After refactoring, the modified code is highlighted, displaying the label REFACTOR_READY. To accept or clear this refactored code, the keybindings are C-c C-a and C-c C-k, respectively.
How can I rebind these actions so that when my cursor is in the highlighted region, I can press "a" to accept or "q" to clear instead?
The text was updated successfully, but these errors were encountered:
See M-x describe-keymapgptel-rewrite-actions-map for the bindings and commands.
As an aside, here's how you could discover this yourself: when the refactoring is ready, instead of running C-c C-a (say), run M-x describe-keyC-c C-a. This pops up a help window with the following text:
C-c C-a runs the command gptel--rewrite-apply (found in
gptel-rewrite-actions-map), which is an interactive Lisp closure in
‘gptel-rewrite.el’.
It is bound to C-c C-a.
(gptel--rewrite-apply &optional OVS)
Apply pending LLM responses in OVS or at point.
[back]
As you can see, it shows you the command and the keymap where it is found.
Please close this issue if the answer is satisfactory.
When I highlight a section of code in a buffer and press C-u gptel-send, then "r" twice, the refactoring process begins. After refactoring, the modified code is highlighted, displaying the label REFACTOR_READY. To accept or clear this refactored code, the keybindings are C-c C-a and C-c C-k, respectively.
How can I rebind these actions so that when my cursor is in the highlighted region, I can press "a" to accept or "q" to clear instead?
The text was updated successfully, but these errors were encountered: