Skip to content

feat(cli): Add --quote flag to pre-fill editor with last reply#640

Merged
JeanMertz merged 2 commits into
mainfrom
prr210
May 15, 2026
Merged

feat(cli): Add --quote flag to pre-fill editor with last reply#640
JeanMertz merged 2 commits into
mainfrom
prr210

Conversation

@JeanMertz
Copy link
Copy Markdown
Collaborator

The new --quote flag (alias --reply) on jp query opens the editor with the most recent assistant message pre-quoted as a markdown blockquote.

This enables mutt-style inline replies: the quoted response sits at the top of the buffer and the user interleaves their own text between the quoted lines before sending.

--quote implies --edit and conflicts with --no-edit and --replay. If no prior assistant message exists (e.g. a brand-new conversation, or only reasoning responses so far), a warning is emitted and the editor opens with whatever other content was seeded.

jp query --quote "See my comments inline"

JeanMertz added 2 commits May 15, 2026 08:24
The new `--quote` flag (alias `--reply`) on `jp query` opens the editor
with the most recent assistant message pre-quoted as a markdown
blockquote.

This enables mutt-style inline replies: the quoted response sits at the
top of the buffer and the user interleaves their own text between the
quoted lines before sending.

`--quote` implies `--edit` and conflicts with `--no-edit` and
`--replay`. If no prior assistant message exists (e.g. a brand-new
conversation, or only reasoning responses so far), a warning is emitted
and the editor opens with whatever other content was seeded.

```
jp query --quote "See my comments inline"
```

Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit 59f89db into main May 15, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant