Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

### New features

- [#3847](https://github.com/clojure-emacs/cider/issues/3847): Inspector: tidy up namespaced-qualified keywords.

### Changes

- Bump the injected `nrepl` to [1.5.1](https://github.com/nrepl/nrepl/blob/master/CHANGELOG.md#151-2025-10-18).
Expand Down
9 changes: 9 additions & 0 deletions cider-inspector.el
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ The max depth can be also changed interactively within the inspector."
:type 'boolean
:package-version '(cider . "1.19.0"))

(defcustom cider-inspector-tidy-qualified-keywords t
"Controls whether to abbreviate qualified keywords.
When inspector is invoked from a code buffer, replace full namespace name
with `::' or `::alias'."
:type 'boolean
:package-version '(cider . "1.20.0"))

(defcustom cider-inspector-skip-uninteresting t
"Controls whether to skip over uninteresting values in the inspector.
Only applies to navigation with `cider-inspector-prev-inspectable-object'
Expand Down Expand Up @@ -490,6 +497,8 @@ MAX-COLL-SIZE if non nil."
`("max-nested-depth" ,cider-inspector-max-nested-depth))
,@(when cider-inspector-display-analytics-hint
`("display-analytics-hint" "true"))
"tidy-qualified-keywords" ,(if cider-inspector-tidy-qualified-keywords
"true" "false")
"pretty-print" ,(if cider-inspector-pretty-print "true" "false")
"sort-maps" ,(if cider-inspector-sort-maps "true" "false")
"only-diff" ,(if cider-inspector-only-diff "true" "false")))
Expand Down
5 changes: 5 additions & 0 deletions doc/modules/ROOT/pages/debugging/inspector.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ You can customize this value via the `cider-inspector-preferred-var-names`
configuration option. Even after setting it, you are free to choose new names on
the fly, as you type. Most recent names will take priority in subsequent usages.

When `cider-inspector-tidy-qualified-keywords` is enabled, namespace-qualified
keyword like `::foo` or `::alias/baz` will be displayed in the same manner by
the inspector if it was invoked in the code buffer of the same namespace or
requires respective aliases.

== Additional Resources

* https://practicalli.github.io/spacemacs/evaluating-clojure/inspect/[Using CIDER's Inspector in Spacemacs]
Loading