evil
evil copied to clipboard
Change evil-window-{next,prev} to respect other-window window parameters
Currently evil-window-next
and evil-window-prev
, in the case where no count is provided, use select-window
instead of other-window
(even though they effectively are the evil version of other-window
). This has the side effect that window parameters relevant to the cyclic window ordering are ignored, in particular
- the
other-window
parameter, which can be set to a function that is used to pick the window to jump to, and - the
no-other-window
parameter, which can be used to exclude a window from being jumped to by the cyclic commands.
FWIW, evil-window-{left,right,up,down}
already respect the no-other-window
parameter (via windmove → window-in-direction
), so I think using other-window
here could make the commands more consistent. I don't know why select-window
was used in the first place.