javascript layer: move json-snatcher to SPC m h p
This commit is contained in:
parent
debe9e1d4f
commit
aa1dc15aa3
|
@ -13,6 +13,7 @@
|
||||||
- [[#formatting-web-beautify][Formatting (web-beautify)]]
|
- [[#formatting-web-beautify][Formatting (web-beautify)]]
|
||||||
- [[#documentation-js-doc][Documentation (js-doc)]]
|
- [[#documentation-js-doc][Documentation (js-doc)]]
|
||||||
- [[#auto-complete-and-documentation-tern][Auto-complete and documentation (tern)]]
|
- [[#auto-complete-and-documentation-tern][Auto-complete and documentation (tern)]]
|
||||||
|
- [[#json][JSON]]
|
||||||
|
|
||||||
* Description
|
* Description
|
||||||
|
|
||||||
|
@ -24,6 +25,7 @@ This layer adds support for the JavaScript language using [[https://github.com/m
|
||||||
- Auto-completion and documentation: provided by [[http://ternjs.net/][tern]]
|
- Auto-completion and documentation: provided by [[http://ternjs.net/][tern]]
|
||||||
- CoffeeScript support
|
- CoffeeScript support
|
||||||
- Formatting with [[https://github.com/yasuyk/web-beautify][web-beautify]]
|
- Formatting with [[https://github.com/yasuyk/web-beautify][web-beautify]]
|
||||||
|
- Get the path to a JSON value with [[https://github.com/Sterlingg/json-snatcher][json-snatcher]]
|
||||||
|
|
||||||
* Install
|
* Install
|
||||||
|
|
||||||
|
@ -126,3 +128,9 @@ You can check more [[https://github.com/mooz/js-doc/][here]]
|
||||||
| ~SPC m h d~ | find docs of the thing under the cursor. Press again to open the associated URL (if any) |
|
| ~SPC m h d~ | find docs of the thing under the cursor. Press again to open the associated URL (if any) |
|
||||||
| ~SPC m h t~ | find the type of the thing under the cursor |
|
| ~SPC m h t~ | find the type of the thing under the cursor |
|
||||||
| ~SPC m r r V~ | rename variable under the cursor using tern |
|
| ~SPC m r r V~ | rename variable under the cursor using tern |
|
||||||
|
|
||||||
|
** JSON
|
||||||
|
|
||||||
|
| Key Binding | Description |
|
||||||
|
|-------------+------------------------------------|
|
||||||
|
| ~SPC m h p~ | Get the path of the value at point |
|
||||||
|
|
|
@ -148,7 +148,7 @@
|
||||||
:defer t
|
:defer t
|
||||||
:config
|
:config
|
||||||
(evil-leader/set-key-for-mode 'json-mode
|
(evil-leader/set-key-for-mode 'json-mode
|
||||||
"msp" 'jsons-print-path)
|
"mhp" 'jsons-print-path)
|
||||||
))
|
))
|
||||||
|
|
||||||
(defun javascript/init-tern ()
|
(defun javascript/init-tern ()
|
||||||
|
|
Loading…
Reference in a new issue