Skip to content

Commit 485e69c

Browse files
authored
[Fix #3262] Add extra keys for navigation of inspect buffer (#3301)
1 parent a01d0e4 commit 485e69c

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## master (unreleased)
44

5+
### New features
6+
7+
- [#3262](https://github.com/clojure-emacs/cider/issues/3262) Add navigation functionality to `npfb` keys inside inspect buffer.
8+
59
### Changes
610

711
- Allow using `npx nbb` as `cider-nbb-command`.

cider-inspector.el

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ by clicking or navigating to them by other means."
108108
(define-key map "d" #'cider-inspector-def-current-val)
109109
(define-key map [tab] #'cider-inspector-next-inspectable-object)
110110
(define-key map "\C-i" #'cider-inspector-next-inspectable-object)
111+
(define-key map "n" #'cider-inspector-next-inspectable-object)
111112
(define-key map [(shift tab)] #'cider-inspector-previous-inspectable-object)
113+
(define-key map "p" #'cider-inspector-previous-inspectable-object)
114+
(define-key map "f" #'forward-char)
115+
(define-key map "b" #'backward-char)
112116
;; Emacs translates S-TAB to BACKTAB on X.
113117
(define-key map [backtab] #'cider-inspector-previous-inspectable-object)
114118
(easy-menu-define cider-inspector-mode-menu map

doc/modules/ROOT/pages/debugging/inspector.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@ You'll have access to additional keybindings in the inspector buffer
2828
|===
2929
| Keyboard shortcut | Description
3030

31-
| kbd:[Tab] and kbd:[Shift-Tab]
31+
| kbd:[Tab] and kbd:[Shift-Tab] / kdb:[n] and kbd:[p]
3232
| Navigate inspectable sub-objects
3333

34+
| kbd:[f] and kbd:[b]
35+
| Navigate across characters on a line
36+
3437
| kbd:[Return]
3538
| Inspect sub-objects
3639

0 commit comments

Comments
 (0)