Add C-o and C-i keybindings to evil-evilified-state-map (and remove from pdf-view-mode-map)
C-o and C-i are standard vim keybindings to jump back/forward between previous locations. It is annoying and unnecessary that evilified buffers break that flow, therefore these keybindings should be added to the `evil-evilified-state-map` so that they are available automatically in all evilified keymaps/modes. I assume that by just adding them to the map, all required remappings will automatically be taken car of by the `evilified-state-evilify-map` macro (anyway, it seems to work fine).
This commit is contained in:
parent
d63e172bde
commit
bbd40f113f
|
@ -814,6 +814,8 @@ Other:
|
|||
inherit leader key bindings from another mode
|
||||
- Open buffers with major-mode derived from =special-mode= in motion-state by
|
||||
default (thanks to Daniel Nicolai)
|
||||
- Add evil-jump-backward/forward (=C-o=/=C-i=) keybindings to
|
||||
evil-evilified-state-map (thanks to Daniel Nicolai)
|
||||
*** Distribution changes
|
||||
- Refactored =spacemacs-bootstrap=, =spacemacs-ui=, and =spacemacs-ui-visual=
|
||||
layers:
|
||||
|
@ -3108,8 +3110,6 @@ files (thanks to Daniel Nicolai)
|
|||
- Fixed ~'~ =pdf-view-jump-to-register= (thanks to duianto)
|
||||
- Key bindings:
|
||||
- Added to pdf-view mode and transient state
|
||||
- ~C-o~ history-backward (previous view)
|
||||
- ~C-i~ history-forward (next view)
|
||||
- ~[~ history-backward (previous view)
|
||||
- ~]~ history-forward (next view)
|
||||
- ~?~ toggle transient sate documentation hint (shown by default)
|
||||
|
|
|
@ -102,6 +102,7 @@ map to:
|
|||
- add ~hjkl~ navigation
|
||||
- add scrolling feature on ~C-f~, ~C-b~, ~C-d~ and ~C-u~
|
||||
- ~G~ and ~gg~ to go to the end and beginning of the buffer
|
||||
- add jump back-forward in history on ~C-o~ and ~C-i~ respectively
|
||||
- add incremental search with ~/~, ~n~ and ~N~
|
||||
- enabling =evil-ex= on ~:~
|
||||
- add =visual state= and =visual line state= on ~v~ and ~V~
|
||||
|
|
|
@ -889,8 +889,8 @@ certain operations. These often conflict with Vim bindings. To make such buffers
|
|||
behave more like Vim in a consistent manner, they use a special state called
|
||||
/evilified/ state. In evilified state, a handful of keys work as in Evil, namely
|
||||
=/=, =:=, =h=, =j=, =k=, =l=, =n=, =N=, =v=, =V=, =gg=, =G=, =C-f=, =C-b=,
|
||||
=C-d=, =C-e=, =C-u=, =C-y= and =C-z=. All other keys work as intended by the
|
||||
underlying mode.
|
||||
=C-d=, =C-e=, =C-o=, =C-i=, =C-u=, =C-y= and =C-z=. All other keys work as
|
||||
intended by the underlying mode.
|
||||
|
||||
Shadowed keys are moved according to the pattern: =a= → =A= → =C-a= → =C-A=
|
||||
|
||||
|
|
|
@ -197,6 +197,8 @@ Needed to bypass keymaps set as text properties."
|
|||
(define-key evil-evilified-state-map (kbd "C-y") 'evil-scroll-line-up)
|
||||
(define-key evil-evilified-state-map (kbd "C-d") 'evil-scroll-down)
|
||||
(define-key evil-evilified-state-map (kbd "C-u") 'evil-scroll-up)
|
||||
(define-key evil-evilified-state-map (kbd "C-o") 'evil-jump-backward)
|
||||
(define-key evil-evilified-state-map (kbd "C-i") 'evil-jump-forward)
|
||||
(define-key evil-evilified-state-map (kbd "C-z") 'evil-emacs-state)
|
||||
(define-key evil-evilified-state-map (kbd "C-w") 'evil-window-map)
|
||||
(setq evil-evilified-state-map-original (copy-keymap evil-evilified-state-map))
|
||||
|
|
|
@ -125,11 +125,11 @@ If you use Emacs editing style, check the key bindings at the [[https://github.c
|
|||
| ~C-u~ | Scroll up |
|
||||
| ~C-d~ | Scroll down |
|
||||
| ~``~ | Go to last page in the history |
|
||||
| ~[~ | History back |
|
||||
| ~]~ | History forward |
|
||||
| ~m~ | Set mark |
|
||||
| ~'~ | Go to mark |
|
||||
| ~y~ | Yank selected region |
|
||||
| ~C-o~ or ~[~ | History back |
|
||||
| ~C-i~ or ~]~ | History forward |
|
||||
|----------------------+-------------------------------------------|
|
||||
| *Search* | |
|
||||
|----------------------+-------------------------------------------|
|
||||
|
|
|
@ -85,8 +85,6 @@
|
|||
(kbd "C-u") 'pdf-view-scroll-down-or-previous-page
|
||||
(kbd "C-d") 'pdf-view-scroll-up-or-next-page
|
||||
(kbd "``") 'pdf-history-backward
|
||||
(kbd "C-o") 'pdf-history-backward
|
||||
(kbd "C-i") 'pdf-history-forward
|
||||
"[" 'pdf-history-backward
|
||||
"]" 'pdf-history-forward
|
||||
"'" 'pdf-view-jump-to-register
|
||||
|
|
Loading…
Reference in New Issue