Add argument flags to the jack-in transient menu#4061
Merged
Conversation
Surface the jack-in settings that legitimately vary per-invocation as transient infixes on cider-start-menu: aliases (--aliases=), the ClojureScript REPL type (--cljs-repl=) and whether to edit the command before running (--edit-command). The jack-in suffixes read those args and let-bind the matching options, so the underlying commands stay usable outside the transient. The aliases flag in particular makes activating an alias discoverable right where you jack in.
91d3178 to
0c1a935
Compare
This was referenced Jul 1, 2026
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.
Builds on the jack-in/connect transient (
cider-start-menu) by giving it magit-style argument flags for the settings that actually vary per-invocation:-aAliases (--aliases=) - set the Clojure CLI aliases for this jack-in without touching config. This is a nicer answer to UX improvements for jacking in with additional aliases #3317 than the hint alone: aliases become visible and settable right where you start the REPL.-lClojureScript REPL type (--cljs-repl=) - pick shadow/figwheel-main/node/browser/... for this cljs jack-in.-eEdit command before running (--edit-command) - the discoverable replacement for theC-uprefix trick.The jack-in suffixes are thin
transient-define-suffixwrappers that readtransient-argsandlet-bind the matching options (cider-clojure-cli-aliases,cider-default-cljs-repl,cider-edit-jack-in-command), socider-jack-in-cljand friends stay fully usable outside the transient. Follows the existingcider-doc-menuinfix pattern.Unit-tested the arg translation; the interactive menu itself is worth an eyeball. (Also fills in the CHANGELOG for the jack-in transient, which landed undocumented.)