File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ Default Keybindings
19
19
20
20
- ` C-c C-f ` : format the region/buffer with ` json-reformat ` (< https://github.com/gongo/json-reformat > )
21
21
- ` C-c C-p ` : display a path to the object at point with ` json-snatcher ` (< https://github.com/Sterlingg/json-snatcher > )
22
+ - ` C-c P ` : copy a path to the object at point to the kill ring with ` json-snatcher ` (< https://github.com/Sterlingg/json-snatcher > )
22
23
23
24
Indent Width
24
25
----
Original file line number Diff line number Diff line change @@ -143,6 +143,13 @@ This function calls `json-mode--update-auto-mode' to change the
143
143
144
144
(define-key json-mode-map (kbd " C-c C-p" ) 'json-mode-show-path )
145
145
146
+ ;;;### autoload
147
+ (defun json-mode-kill-path ()
148
+ (interactive )
149
+ (kill-new (jsons-print-path)))
150
+
151
+ (define-key json-mode-map (kbd " C-c P" ) 'json-mode-kill-path )
152
+
146
153
;;;### autoload
147
154
(defun json-mode-beautify ()
148
155
" Beautify / pretty-print the active region (or the entire buffer if no active region)."
You can’t perform that action at this time.
0 commit comments