Change: (org-ql-view-map) Also bind "g" to refresh

I keep hitting "g" and nothing seems to happen, because it runs the
org-agenda refresh command, which doesn't do anything in org-ql-view
buffers.  This must be happening to other people too.  So let's fix
that.
This commit is contained in:
Adam Porter 2020-03-08 11:05:38 -05:00
parent 8aac3b6100
commit 3349c1d07a
3 changed files with 31 additions and 30 deletions

View file

@ -72,6 +72,7 @@ down a chain of function calls would be awkward.")
(defvar org-ql-view-map
(let ((map (make-sparse-keymap)))
(set-keymap-parent map org-agenda-mode-map)
(define-key map "g" #'org-ql-view-refresh)
(define-key map "r" #'org-ql-view-refresh)
(define-key map "v" #'org-ql-view-dispatch)
(define-key map (kbd "C-x C-s") #'org-ql-view-save)