branch: elpa/cider
commit 62890028d0d43464f4517e4321cb8f11c172c475
Author: Oleksandr Yakushev <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    [inspector] Tidy up namespaced-qualified keywords
---
 CHANGELOG.md                                    | 2 ++
 cider-inspector.el                              | 9 +++++++++
 doc/modules/ROOT/pages/debugging/inspector.adoc | 5 +++++
 3 files changed, 16 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index c9cb86d4133..f52fd9aecc3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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).
diff --git a/cider-inspector.el b/cider-inspector.el
index a3a9b91a3dd..6db2aadd971 100644
--- a/cider-inspector.el
+++ b/cider-inspector.el
@@ -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'
@@ -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")))
diff --git a/doc/modules/ROOT/pages/debugging/inspector.adoc 
b/doc/modules/ROOT/pages/debugging/inspector.adoc
index 304361d8260..fd23fb628dc 100644
--- a/doc/modules/ROOT/pages/debugging/inspector.adoc
+++ b/doc/modules/ROOT/pages/debugging/inspector.adoc
@@ -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]

Reply via email to