Add argument flags to the namespace and macroexpand transient menus#4062
Merged
Conversation
Surface the popup macroexpansion's display knobs as transient infixes on cider-macroexpand-menu: namespace rendering (--ns=tidy/qualified/none) and metadata (--meta). The popup expand suffixes read those args and let-bind the matching options, so you pick the display style up front instead of expanding and then cycling with the in-buffer togglers.
Expose cider-ns-refresh's modes as explicit toggles on cider-ns-menu (--all, --clear, --inhibit-fns), instead of the undiscoverable single/ double/negative prefix arguments. cider-ns-refresh now also accepts a list of mode symbols (backward compatible with the scalar symbol/prefix forms), so the orthogonal inhibit-fns can combine with reload-all or clear.
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.
Follows up the jack-in transient flags (#4061) by giving two more menus the same treatment - surfacing settings that vary per-invocation as visible infix arguments, from the survey of infix opportunities.
cider-ns-menu- refresh modes (--all,--clear,--inhibit-fns). These map tocider-ns-refresh's modes, which today are only reachable via the undiscoverable single/double/negative prefix arguments.cider-ns-refreshnow also accepts a list of mode symbols (backward compatible with the scalar symbol/prefix forms), so the orthogonalinhibit-fnscan combine withreload-allorclear- something the single-mode prefix couldn't express.cider-macroexpand-menu- display (--ns=tidy|qualified|none,--meta). These map tocider-macroexpansion-display-namespaces/-print-metadata, so you pick the popup expansion's rendering up front instead of expanding and then cycling with the in-buffer togglers.Same wrapper pattern as before: thin
transient-define-suffixes readtransient-argsandlet-bind the options, so the underlying commands stay usable outside the transients. Two commits, one per menu. Tested the arg translation for both; the menus themselves are worth an eyeball.