[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/graphql-mode 3581ad03e0 094/122: Allow *GraphQL* response
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/graphql-mode 3581ad03e0 094/122: Allow *GraphQL* response buffer to be closed with "q" key |
Date: |
Sat, 29 Jan 2022 08:03:37 -0500 (EST) |
branch: elpa/graphql-mode
commit 3581ad03e04b11c67d4882cbaa9ab6af71eaf78d
Author: Mark Stuart <codeasone@gmail.com>
Commit: David Vázquez Púa <davazp@gmail.com>
Allow *GraphQL* response buffer to be closed with "q" key
---
graphql-mode.el | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/graphql-mode.el b/graphql-mode.el
index 8c81046071..06793d24a1 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -189,6 +189,13 @@ Please install it and try again."))
(error nil))
nil))
+(define-minor-mode graphql-query-response-mode
+ "Allows GraphQL query response buffer to be closed with (q)"
+ :lighter " GraphQL Response"
+ :keymap (let ((map (make-sparse-keymap)))
+ (define-key map (kbd "q") 'quit-window)
+ map))
+
(defun graphql-send-query ()
"Send the current GraphQL query/mutation/subscription to server."
(interactive)
@@ -212,7 +219,8 @@ Please install it and try again."))
(insert "\n\n"
(propertize (request-response--raw-header response)
'face 'font-lock-comment-face
- 'font-lock-face 'font-lock-comment-face)))))
+ 'font-lock-face 'font-lock-comment-face))
+ (graphql-query-response-mode))))
;; If the query was successful, then save the value of graphql-url
;; in the current buffer (instead of the introduced local
;; binding).
- [nongnu] elpa/graphql-mode 7c37aee28b 096/122: Open .gql files automatically as well, (continued)
- [nongnu] elpa/graphql-mode 7c37aee28b 096/122: Open .gql files automatically as well, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 1125c2136d 055/122: extend graphql-current-operation to support 'line' boundary if sexp fail, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 321c1f4b64 095/122: Implement support for loading graphql-configs, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 033f6a074c 082/122: Don't use temp buffer, as it breaks local variables, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 63cd55ed7d 099/122: Implement abort behaviour, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 7088db7250 091/122: Merge pull request #29 from Prillan/enable-json-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 9bed568ec8 097/122: Add Homepage header, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 4147fbfd97 109/122: Refuse to open g-e-h unless in graphql-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 562d13fc20 101/122: Factor out buffer closing code, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode af9b235e14 103/122: Add content of graphql-extra-headers to buffer, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 3581ad03e0 094/122: Allow *GraphQL* response buffer to be closed with "q" key,
ELPA Syncer <=
- [nongnu] elpa/graphql-mode 22361631a1 111/122: Add documentation, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 99850e1012 110/122: Don't clobber contents of existing buffer, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 0e723b962e 107/122: Factor in quitting function, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 18f749c1bc 106/122: Simplify buffer naming, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 1b78d07aee 092/122: declare request-response--raw-header function, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 9740e4027b 122/122: Merge pull request #45 from LaurenceWarne/parameter-fontlock-fix, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode d9fa01b446 004/122: Improve highlight of definitions, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 347431ce18 007/122: Fontify fragments, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 836373c72e 010/122: Basic support for imenu, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 497529dd4d 008/122: Fontify query, ELPA Syncer, 2022/01/29