Skip to content

When using evil mode, "Send selection" goes away in transient menu on any menu choices #909

@Martinsos

Description

@Martinsos

Please update gptel first -- errors are often fixed by the time they're reported.

  • I have updated gptel to the latest commit and tested that the issue still exists

Bug Description

If I select a line or region, when in evil-mode, and then run gptel-menu which opens a transient menu, it says at the bottom "RET Send selection (lines 5-6) ..." which is what I want.

However, if I then change any of the settings in the menu, the bottom text changes to "RET Send (lines 1-5) ...", which is the behaviour gptel normally exibits when nothing is selected (send buffer from start to the point).

There is no way for me to pick selection again, in "<Prompt from".

Backend

None

Steps to Reproduce

  1. Have evil-mode on.
  2. Select a line in any buffer.
  3. Run gptel-menu.
  4. Notice that "selection" is currently ready to be sent.
  5. Change any setting in the transient menu.
  6. Notice that "selection" is not anymore ready to be sent, instead buffer to the point is.
  7. There is no way to pick "selection" again (e.g. from "<Prompt from").

When evil-mode is off, it works ok.

Additional Context

Emacs version: 30.1
OS: Archlinux
Problem manifests when evil-mode is enabled, otherwise doesn't.

Backtrace

Log Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions