Use "go"/"gO" instead of "gd"/"gD" for "open" bindings
This commit is contained in:
parent
5a32dc6fba
commit
1acc818215
|
@ -49,8 +49,7 @@
|
||||||
(kbd "<return>") 'archive-extract
|
(kbd "<return>") 'archive-extract
|
||||||
(kbd "S-<return>") 'archive-extract-other-window
|
(kbd "S-<return>") 'archive-extract-other-window
|
||||||
(kbd "M-<return>") 'archive-view
|
(kbd "M-<return>") 'archive-view
|
||||||
"gd" 'archive-extract
|
"go" 'archive-extract-other-window
|
||||||
"gD" 'archive-extract-other-window
|
|
||||||
|
|
||||||
"a" 'archive-alternate-display
|
"a" 'archive-alternate-display
|
||||||
"d" 'archive-flag-deleted
|
"d" 'archive-flag-deleted
|
||||||
|
|
|
@ -58,6 +58,8 @@
|
||||||
"W" 'bookmark-bmenu-locate
|
"W" 'bookmark-bmenu-locate
|
||||||
"E" 'bookmark-bmenu-edit-annotation
|
"E" 'bookmark-bmenu-edit-annotation
|
||||||
"D" 'bookmark-bmenu-delete-backwards
|
"D" 'bookmark-bmenu-delete-backwards
|
||||||
|
|
||||||
|
;; open
|
||||||
"o" 'bookmark-bmenu-select
|
"o" 'bookmark-bmenu-select
|
||||||
"O" 'bookmark-bmenu-other-window
|
"O" 'bookmark-bmenu-other-window
|
||||||
"go" 'bookmark-bmenu-other-window
|
"go" 'bookmark-bmenu-other-window
|
||||||
|
|
|
@ -131,7 +131,6 @@
|
||||||
"m" 'dired-mark
|
"m" 'dired-mark
|
||||||
"t" 'dired-toggle-marks
|
"t" 'dired-toggle-marks
|
||||||
"u" 'dired-unmark ; also "*u"
|
"u" 'dired-unmark ; also "*u"
|
||||||
"go" 'dired-view-file ;; FIXME: Consolidate the find/view commands together.
|
|
||||||
"W" 'browse-url-of-dired-file
|
"W" 'browse-url-of-dired-file
|
||||||
"x" 'dired-do-flagged-delete
|
"x" 'dired-do-flagged-delete
|
||||||
"gy" 'dired-show-file-type ;; FIXME: This could probably go on a better key.
|
"gy" 'dired-show-file-type ;; FIXME: This could probably go on a better key.
|
||||||
|
@ -141,7 +140,8 @@
|
||||||
(kbd "<return>") 'dired-find-file
|
(kbd "<return>") 'dired-find-file
|
||||||
(kbd "S-<return>") 'dired-find-file-other-window
|
(kbd "S-<return>") 'dired-find-file-other-window
|
||||||
(kbd "M-<return>") 'dired-display-file
|
(kbd "M-<return>") 'dired-display-file
|
||||||
"gD" 'dired-find-file-other-window
|
"go" 'dired-find-file-other-window
|
||||||
|
"gO" 'dired-view-file
|
||||||
;; sort
|
;; sort
|
||||||
"o" 'dired-sort-toggle-or-edit
|
"o" 'dired-sort-toggle-or-edit
|
||||||
;; moving
|
;; moving
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
;; open
|
;; open
|
||||||
(kbd "<return>") 'elfeed-search-show-entry
|
(kbd "<return>") 'elfeed-search-show-entry
|
||||||
(kbd "S-<return>") 'elfeed-search-browse-url
|
(kbd "S-<return>") 'elfeed-search-browse-url
|
||||||
"gd" 'elfeed-search-browse-url
|
"go" 'elfeed-search-browse-url
|
||||||
|
|
||||||
"y" 'elfeed-search-yank
|
"y" 'elfeed-search-yank
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
(evil-set-initial-state 'elfeed-show-mode 'motion)
|
(evil-set-initial-state 'elfeed-show-mode 'motion)
|
||||||
(evil-define-key 'motion elfeed-show-mode-map
|
(evil-define-key 'motion elfeed-show-mode-map
|
||||||
(kbd "S-<return>") 'elfeed-show-visit
|
(kbd "S-<return>") 'elfeed-show-visit
|
||||||
"gd" 'elfeed-show-visit
|
"go" 'elfeed-show-visit
|
||||||
|
|
||||||
;; filter
|
;; filter
|
||||||
"s" 'elfeed-show-new-live-search
|
"s" 'elfeed-show-new-live-search
|
||||||
|
|
|
@ -47,8 +47,7 @@
|
||||||
(kbd "<return>") 'occur-mode-goto-occurrence
|
(kbd "<return>") 'occur-mode-goto-occurrence
|
||||||
(kbd "S-<return>") 'occur-mode-goto-occurrence-other-window
|
(kbd "S-<return>") 'occur-mode-goto-occurrence-other-window
|
||||||
(kbd "M-<return>") 'occur-mode-display-occurrence
|
(kbd "M-<return>") 'occur-mode-display-occurrence
|
||||||
"gd" 'occur-mode-goto-occurrence
|
"go" 'occur-mode-goto-occurrence-other-window
|
||||||
"gD" 'occur-mode-goto-occurrence-other-window
|
|
||||||
|
|
||||||
"gj" 'occur-next
|
"gj" 'occur-next
|
||||||
"gk" 'occur-prev
|
"gk" 'occur-prev
|
||||||
|
|
|
@ -136,8 +136,7 @@
|
||||||
(kbd "<return>") 'pdf-outline-follow-link-and-quit
|
(kbd "<return>") 'pdf-outline-follow-link-and-quit
|
||||||
(kbd "S-<return>") 'pdf-outline-follow-link
|
(kbd "S-<return>") 'pdf-outline-follow-link
|
||||||
(kbd "M-<return>") 'pdf-outline-display-link
|
(kbd "M-<return>") 'pdf-outline-display-link
|
||||||
"gd" 'pdf-outline-follow-link-and-quit
|
"go" 'pdf-outline-follow-link
|
||||||
"gD" 'pdf-outline-follow-link
|
|
||||||
"." 'pdf-outline-move-to-current-page
|
"." 'pdf-outline-move-to-current-page
|
||||||
(kbd "SPC") 'pdf-outline-select-pdf-window
|
(kbd "SPC") 'pdf-outline-select-pdf-window
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,6 @@
|
||||||
|
|
||||||
;; open
|
;; open
|
||||||
(kbd "<return>") 'profiler-report-find-entry
|
(kbd "<return>") 'profiler-report-find-entry
|
||||||
"gd" 'profiler-report-find-entry
|
|
||||||
|
|
||||||
;; refresh
|
;; refresh
|
||||||
"gr" 'revert-buffer
|
"gr" 'revert-buffer
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
(evil-set-initial-state 'rtags-location-stack-visualize-mode 'normal)
|
(evil-set-initial-state 'rtags-location-stack-visualize-mode 'normal)
|
||||||
|
|
||||||
(evil-define-key 'normal rtags-mode-map
|
(evil-define-key 'normal rtags-mode-map
|
||||||
|
;; open
|
||||||
(kbd "<return>") 'rtags-select
|
(kbd "<return>") 'rtags-select
|
||||||
(kbd "S-<return>") 'rtags-select-other-window
|
(kbd "S-<return>") 'rtags-select-other-window
|
||||||
(kbd "M-<return>") 'rtags-show-in-other-window
|
(kbd "M-<return>") 'rtags-show-in-other-window
|
||||||
|
@ -50,7 +51,8 @@
|
||||||
(kbd "gO") 'rtags-show-in-other-window
|
(kbd "gO") 'rtags-show-in-other-window
|
||||||
[mouse-1] 'rtags-select-other-window
|
[mouse-1] 'rtags-select-other-window
|
||||||
[mouse-2] 'rtags-select-other-window
|
[mouse-2] 'rtags-select-other-window
|
||||||
"s" 'rtags-show-in-other-window
|
"s" 'rtags-show-in-other-window ; TODO: Remove this binding?
|
||||||
|
|
||||||
"c" 'rtags-select-caller
|
"c" 'rtags-select-caller
|
||||||
"C" 'rtags-select-caller-other-window
|
"C" 'rtags-select-caller-other-window
|
||||||
"x" 'rtags-select-and-remove-rtags-buffer
|
"x" 'rtags-select-and-remove-rtags-buffer
|
||||||
|
@ -73,6 +75,7 @@
|
||||||
"]" 'rtags-dependency-tree-next-level
|
"]" 'rtags-dependency-tree-next-level
|
||||||
"[" 'rtags-dependency-tree-previous-level
|
"[" 'rtags-dependency-tree-previous-level
|
||||||
|
|
||||||
|
;; open
|
||||||
(kbd "<return>") 'rtags-select
|
(kbd "<return>") 'rtags-select
|
||||||
(kbd "S-<return>") 'rtags-select-other-window
|
(kbd "S-<return>") 'rtags-select-other-window
|
||||||
(kbd "M-<return>") 'rtags-show-in-other-window
|
(kbd "M-<return>") 'rtags-show-in-other-window
|
||||||
|
@ -81,6 +84,7 @@
|
||||||
[mouse-1] 'rtags-select-other-window
|
[mouse-1] 'rtags-select-other-window
|
||||||
[mouse-2] 'rtags-select-other-window
|
[mouse-2] 'rtags-select-other-window
|
||||||
"s" 'rtags-show-in-other-window
|
"s" 'rtags-show-in-other-window
|
||||||
|
|
||||||
"x" 'rtags-select-and-remove-rtags-buffer
|
"x" 'rtags-select-and-remove-rtags-buffer
|
||||||
"q" 'rtags-call-bury-or-delete)
|
"q" 'rtags-call-bury-or-delete)
|
||||||
|
|
||||||
|
@ -101,6 +105,7 @@
|
||||||
"]" 'rtags-references-tree-next-level
|
"]" 'rtags-references-tree-next-level
|
||||||
"[" 'rtags-references-tree-previous-level
|
"[" 'rtags-references-tree-previous-level
|
||||||
|
|
||||||
|
;; open
|
||||||
(kbd "<return>") 'rtags-select
|
(kbd "<return>") 'rtags-select
|
||||||
(kbd "S-<return>") 'rtags-select-other-window
|
(kbd "S-<return>") 'rtags-select-other-window
|
||||||
(kbd "M-<return>") 'rtags-show-in-other-window
|
(kbd "M-<return>") 'rtags-show-in-other-window
|
||||||
|
@ -114,6 +119,7 @@
|
||||||
"q" 'rtags-call-bury-or-delete)
|
"q" 'rtags-call-bury-or-delete)
|
||||||
|
|
||||||
(evil-define-key 'normal rtags-location-stack-visualize-mode-map
|
(evil-define-key 'normal rtags-location-stack-visualize-mode-map
|
||||||
|
;; open
|
||||||
(kbd "<return>") 'rtags-select
|
(kbd "<return>") 'rtags-select
|
||||||
(kbd "S-<return>") 'rtags-select-other-window
|
(kbd "S-<return>") 'rtags-select-other-window
|
||||||
(kbd "M-<return>") 'rtags-show-in-other-window
|
(kbd "M-<return>") 'rtags-show-in-other-window
|
||||||
|
@ -122,6 +128,7 @@
|
||||||
[mouse-1] 'rtags-select-other-window
|
[mouse-1] 'rtags-select-other-window
|
||||||
[mouse-2] 'rtags-select-other-window
|
[mouse-2] 'rtags-select-other-window
|
||||||
"s" 'rtags-show-in-other-window
|
"s" 'rtags-show-in-other-window
|
||||||
|
|
||||||
"x" 'rtags-select-and-remove-rtags-buffer
|
"x" 'rtags-select-and-remove-rtags-buffer
|
||||||
"q" 'rtags-call-bury-or-delete))
|
"q" 'rtags-call-bury-or-delete))
|
||||||
|
|
||||||
|
|
|
@ -93,8 +93,7 @@
|
||||||
(kbd "<return>") 'transmission-find-file
|
(kbd "<return>") 'transmission-find-file
|
||||||
(kbd "S-<return>") 'transmission-find-file-other-window
|
(kbd "S-<return>") 'transmission-find-file-other-window
|
||||||
(kbd "M-<return>") 'transmission-display-file
|
(kbd "M-<return>") 'transmission-display-file
|
||||||
"gd" 'transmission-find-file
|
"go" 'transmission-find-file-other-window
|
||||||
"gD" 'transmission-find-file-other-window
|
|
||||||
|
|
||||||
"v" 'transmission-view-file
|
"v" 'transmission-view-file
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
"E" 'vlf-ediff-buffers
|
"E" 'vlf-ediff-buffers
|
||||||
|
|
||||||
"g%" 'vlf-query-replace
|
"g%" 'vlf-query-replace
|
||||||
"go" 'vlf-occur
|
"go" 'vlf-occur ; TODO: This binding clashes with "open". Change?
|
||||||
"L" 'vlf-goto-line
|
"L" 'vlf-goto-line
|
||||||
"F" 'vlf-toggle-follow))
|
"F" 'vlf-toggle-follow))
|
||||||
|
|
||||||
|
|
|
@ -41,9 +41,11 @@
|
||||||
"]" 'xref-next-line
|
"]" 'xref-next-line
|
||||||
"[" 'xref-prev-line
|
"[" 'xref-prev-line
|
||||||
"r" 'xref-query-replace-in-results
|
"r" 'xref-query-replace-in-results
|
||||||
(kbd "RET") 'xref-goto-xref
|
|
||||||
|
;; open
|
||||||
|
(kbd "<return>") 'xref-goto-xref
|
||||||
(kbd "S-<return>") 'xref-show-location-at-point
|
(kbd "S-<return>") 'xref-show-location-at-point
|
||||||
"o" 'xref-show-location-at-point
|
"o" 'xref-show-location-at-point ; TODO: Remove binding?
|
||||||
"go" 'xref-show-location-at-point))
|
"go" 'xref-show-location-at-point))
|
||||||
|
|
||||||
(provide 'evil-xref)
|
(provide 'evil-xref)
|
||||||
|
|
11
readme.org
11
readme.org
|
@ -268,13 +268,14 @@ region, making this binding useless.
|
||||||
- ~.~: go to current entity (day for calendar, playing track for [[EMMS][EMMS]]).
|
- ~.~: go to current entity (day for calendar, playing track for [[EMMS][EMMS]]).
|
||||||
Bind only if more relevant than ~evil-repeat~.
|
Bind only if more relevant than ~evil-repeat~.
|
||||||
|
|
||||||
*** Open thing at point (~RET~, ~S-RET~, ~M-RET~, ~gd~, ~gD~)
|
*** Open thing at point (~RET~, ~S-RET~, ~M-RET~, ~go~, ~gO~)
|
||||||
|
|
||||||
- ~RET~, ~S-RET~, ~M-RET~: Open thing at point in current window, open in other window and display in other window respectively.
|
- ~RET~, ~S-RET~, ~M-RET~: Open thing at point in current window, open in other
|
||||||
The latter is like the former with the focus remaining on the current window.
|
window and display in other window respectively. The latter is like the
|
||||||
|
former with the focus remaining on the current window.
|
||||||
|
|
||||||
- ~gd~, ~gD~: When available, same as ~RET~ and ~S-RET~ respectively. This is
|
- ~go~, ~gO~: When available, same as ~S-RET~ and ~M-RET~ respectively. This is
|
||||||
useful in terminals where ~S-RET~ might not work.
|
useful in terminals where ~S-RET~ and ~M-RET~ might not work.
|
||||||
|
|
||||||
*** Emacs-style jumping (~J~)
|
*** Emacs-style jumping (~J~)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue