diff options
| author | Pierre Neidhardt <ambrevar@gmail.com> | 2017-11-23 17:36:01 +0100 |
|---|---|---|
| committer | Pierre Neidhardt <ambrevar@gmail.com> | 2017-11-27 17:26:40 +0100 |
| commit | 4eff208474d56e625672a15182aaec7bd2ed2020 (patch) | |
| tree | 61d0fb08f2c167abb418d8473cb79d5af0f1eb99 /evil-pdf.el | |
| parent | 56a4b50ffee80ac4174ca8847b5da9c961ebe15a (diff) | |
Update sort / goto rationale
Use "open" comment, fallback to "gd" for "open at point"
Split the concept of "go to defition" in the rationale.
This yields distinct sections:
- Go to definition
- Go to current entity
- Open thing at point
- Emacs-style jumping
Diffstat (limited to 'evil-pdf.el')
| -rw-r--r-- | evil-pdf.el | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/evil-pdf.el b/evil-pdf.el index 9cf9d6d..7779ff9 100644 --- a/evil-pdf.el +++ b/evil-pdf.el @@ -132,11 +132,14 @@ (evil-set-initial-state 'pdf-outline-buffer-mode 'motion) (evil-define-key 'motion pdf-outline-buffer-mode-map - (kbd "<return>") 'pdf-outline-follow-link - (kbd "M-<return>") 'pdf-outline-follow-link-and-quit - (kbd "SPC") 'pdf-outline-display-link + ;; open + (kbd "<return>") 'pdf-outline-follow-link-and-quit + (kbd "S-<return>") 'pdf-outline-follow-link + (kbd "M-<return>") 'pdf-outline-display-link + "gd" 'pdf-outline-follow-link-and-quit + "gD" 'pdf-outline-follow-link "." 'pdf-outline-move-to-current-page - "o" 'pdf-outline-select-pdf-window + (kbd "SPC") 'pdf-outline-select-pdf-window "G" 'pdf-outline-end-of-buffer "^" 'pdf-outline-up-heading @@ -151,17 +154,19 @@ "ZZ" 'pdf-outline-quit-and-kill) (evil-define-key 'motion pdf-occur-buffer-mode-map - ;; goto + ;; open (kbd "<return>") 'pdf-occur-goto-occurrence - (kbd "o") 'pdf-occur-view-occurrence - (kbd "C-o") 'pdf-occur-view-occurrence ; TODO: "o" is probably a better binding. + (kbd "S-<return>") 'pdf-occur-view-occurrence (kbd "SPC") 'pdf-occur-view-occurrence + "gd" 'pdf-occur-goto-occurrence + "gD" 'pdf-occur-view-occurrence "A" 'pdf-occur-tablist-gather-documents "D" 'pdf-occur-tablist-do-delete ;; sort - "S" 'tabulated-list-sort + "o" 'tabulated-list-sort + "O" 'tablist-sort ; TODO: Do we need this? ;; refresh "G" 'tablist-revert @@ -185,7 +190,6 @@ ;; "f" 'tablist-find-entry ; TODO: Equivalent to 'pdf-occur-goto-occurrence? "r" 'pdf-occur-revert-buffer-with-args "d" 'tablist-do-kill-lines - "s" 'tablist-sort "x" 'pdf-occur-tablist-do-flagged-delete (kbd "<delete>") 'tablist-unmark-backward (kbd "S-SPC") 'scroll-down-command |
