restclient: add key bindings for jump to next / previous query
`gj` jump to next query `gk` jump to previous query `SPC m n` jump to next query `SPC m p` jump to previous query
This commit is contained in:
parent
2b139acb82
commit
658643da0d
2 changed files with 10 additions and 1 deletions
|
@ -30,6 +30,10 @@ Also there is an [[http://emacsrocks.com/e15.html][Emacs Rocks!]] episode of it.
|
|||
|
||||
| Key Binding | Description |
|
||||
|-------------+-------------------------------------------------------------|
|
||||
| ~gj~ | Jump to next request |
|
||||
| ~gk~ | Jump to previous request |
|
||||
| ~SPC m n~ | Jump to next request |
|
||||
| ~SPC m p~ | Jump to previous request |
|
||||
| ~SPC m s~ | Send and stay in window (pretty-print response if possible) |
|
||||
| ~SPC m S~ | Send and switch window (pretty-print response if possible) |
|
||||
| ~SPC m r~ | Send and stay in window (do not attempt to pretty-print) |
|
||||
|
|
|
@ -38,11 +38,16 @@
|
|||
(unless restclient-use-org
|
||||
(add-to-list 'auto-mode-alist '("\\.http\\'" . restclient-mode)))
|
||||
(spacemacs/set-leader-keys-for-major-mode 'restclient-mode
|
||||
"n" 'restclient-jump-next
|
||||
"p" 'restclient-jump-prev
|
||||
"s" 'restclient-http-send-current-stay-in-window
|
||||
"S" 'restclient-http-send-current
|
||||
"r" 'restclient-http-send-current-raw-stay-in-window
|
||||
"R" 'restclient-http-send-current-raw
|
||||
"y" 'restclient-copy-curl-command))))
|
||||
"y" 'restclient-copy-curl-command)
|
||||
(evil-define-key 'normal restclient-mode-map
|
||||
"gj" 'restclient-jump-next
|
||||
"gk" 'restclient-jump-prev))))
|
||||
|
||||
(defun restclient/post-init-company ()
|
||||
(spacemacs|add-company-hook restclient-mode))
|
||||
|
|
Reference in a new issue