Skip to content

claude-code--do-send-command - make RET optional #77

@vemv

Description

@vemv

Hi!

Thanks for your work.

I'd like Send command and Send command with context not to send a RET as seen here

(claude-code--term-send-string claude-code-terminal-backend (kbd "RET"))

The reason is that for my usage patterns, I want the transient commands to only "draft a prompt" - then I'll review it / submit it and hit RET myself.

Example use case:

  • I select a region in a file
  • I try to use Send command with context
  • I fill a command
  • The command + region reference are immediately submitted – maybe I wanted to add more context, more detailed instructions, fix a typo, etc.

This would seem a straightforward defcustom to add. I reckon that things like (claude-code--do-send-command "/model") should not observe the defcustom - those should always run immediately.

Cheers - V

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions