feat(evil): optionally wrap move-window commands

Introduces an `+evil-want-move-window-to-wrap-around` option. If
non-nil, `+evil/window-move-*` commands will wrap around the frame. If
these commands are passed the prefix arg, behave as if
`+evil-want-move-window-to-wrap-around` were inverted (just once).

Close: #7218
Co-authored-by: agzam <agzam@users.noreply.github.com>
This commit is contained in:
Henrik Lissner 2024-07-29 18:40:22 -04:00
parent 2cb8328f68
commit 04efd82590
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
2 changed files with 30 additions and 11 deletions

View file

@ -12,6 +12,9 @@ Set this to `nil' to disable universal-repeating on these keys.")
"If non-nil, the o/O keys will continue comment lines if the point is on a
line with a linewise comment.")
(defvar +evil-want-move-window-to-wrap-around nil
"If non-nil, `+evil/window-move-*' commands will wrap around.")
(defvar +evil-preprocessor-regexp "^\\s-*#[a-zA-Z0-9_]"
"The regexp used by `+evil/next-preproc-directive' and
`+evil/previous-preproc-directive' on ]# and [#, to jump between preprocessor