This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+spacemacs/spacemacs-navigation
duianto 0f65b000da
Handle buffer move/select/swap to last win nr +1 (#14015)
problem:
The following error messages are shown.

When trying to move, select or swap the current buffer,
to a window nr greater than the total number of open windows.

For example:
With only one window open.
`SPC b 2`
>ad-Advice-select-window: Wrong type argument: window-live-p, nil

In the Buffer Transient State (`SPC b .`):
- `C-2` (`spacemacs/buffer-transient-state/winum-select-window-2`)
>Wrong type argument: window-valid-p, #<window 12>

- `2` (`spacemacs/buffer-transient-state/move-buffer-window-no-follow-2`)
>Wrong type argument: window-live-p, #<window 14>

- `M-2` (`spacemacs/buffer-transient-state/swap-buffer-window-no-follow-2`)
>Wrong type argument: stringp, nil

Solution:
Show a descriptive message, if the target window nr is greater than the number
of open windows. And ignore the LV buffer (hydra).
2020-10-10 22:48:38 +02:00
..
local/info+ converted cl to cl-lib 2019-12-14 20:20:51 +00:00
funcs.el update copyright to 2020 2020-09-23 21:25:01 +02:00
packages.el Handle buffer move/select/swap to last win nr +1 (#14015) 2020-10-10 22:48:38 +02:00
README.org documentation formatting: Tue May 28 14:41:10 UTC 2019 2019-05-28 17:43:54 +03:00

spacemacs-navigation layer

Description

This layer adds general navigation functions to all supported layers.

Features:

  • Support for ace-links in

    • spacemacs buffer
    • info-mode
    • help-mode
    • eww-mode
  • Support for keeping the cursor centered on the screen
  • Evilified version of doc-view-mode
  • Tweaks for golden-ratio-mode
  • Support for paradox a modern emacs package manager
  • Shortcuts for restarting emacs
  • Shortcuts for easily switching between windows