enhance(cli): Allow --quote to skip the blockquote prefix - #946
Merged
Conversation
`jp query --quote` used to always prefix the quoted assistant message with `> ` blockquote markers. `--quote=false` (or the unattached `--quote false`) now seeds the message verbatim instead, while a bare `--quote` or `--quote=true` keeps the existing blockquote behavior. The flag's value can be attached (`--quote=false`) or given as the next word (`--quote false`), but only when that word is exactly `true` or `false`; any other word after `--quote` is still read as query text, so `jp q --quote what now?` continues to ask "what now?". To send a literal `true`/`false` query alongside `--quote`, put it after `--`. The query text and the `--quote` seed are now parsed together via a new `QueryInput` type, since resolving the unattached boolean form requires inspecting the raw `query` argument matches before the two are separated. Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
JeanMertz
force-pushed
the
quote-without-blockquote
branch
from
August 7, 2026 11:05
0bd71c0 to
51f911c
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
jp query --quoteused to always prefix the quoted assistant message with>blockquote markers.--quote=false(or the unattached--quote false) now seeds the message verbatim instead, while a bare--quoteor--quote=truekeeps the existing blockquote behavior.The flag's value can be attached (
--quote=false) or given as the next word (--quote false), but only when that word is exactlytrueorfalse; any other word after--quoteis still read as query text, sojp q --quote what now?continues to ask "what now?". To send a literaltrue/falsequery alongside--quote, put it after--.The query text and the
--quoteseed are now parsed together via a newQueryInputtype, since resolving the unattached boolean form requires inspecting the rawqueryargument matches before the two are separated.