Skip to content

Add argument flags to the jack-in transient menu#4061

Merged
bbatsov merged 1 commit into
masterfrom
feature-jack-in-infixes
Jul 1, 2026
Merged

Add argument flags to the jack-in transient menu#4061
bbatsov merged 1 commit into
masterfrom
feature-jack-in-infixes

Conversation

@bbatsov

@bbatsov bbatsov commented Jul 1, 2026

Copy link
Copy Markdown
Member

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:

  • -a Aliases (--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.
  • -l ClojureScript REPL type (--cljs-repl=) - pick shadow/figwheel-main/node/browser/... for this cljs jack-in.
  • -e Edit command before running (--edit-command) - the discoverable replacement for the C-u prefix trick.

The jack-in suffixes are thin transient-define-suffix wrappers that read transient-args and let-bind the matching options (cider-clojure-cli-aliases, cider-default-cljs-repl, cider-edit-jack-in-command), so cider-jack-in-clj and friends stay fully usable outside the transient. Follows the existing cider-doc-menu infix 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.)

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.
@bbatsov bbatsov force-pushed the feature-jack-in-infixes branch from 91d3178 to 0c1a935 Compare July 1, 2026 10:25
@bbatsov bbatsov merged commit a1de037 into master Jul 1, 2026
13 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