2022-03-28 15:03:21 +02:00
|
|
|
#+title: :ui window-select
|
|
|
|
#+subtitle: Visually switch windows
|
|
|
|
#+created: October 08, 2017
|
|
|
|
#+since: 2.0.7 (#237)
|
2021-10-16 01:29:57 +02:00
|
|
|
|
|
|
|
* Description :unfold:
|
2019-05-09 21:39:16 -04:00
|
|
|
This module provides several methods for selecting windows without the use of
|
2021-10-16 01:29:57 +02:00
|
|
|
the mouse or spatial navigation (e.g. [[kbd:][C-w {h,j,k,l}]]).
|
|
|
|
|
2022-09-26 02:19:42 +08:00
|
|
|
The command ~other-window~ is remapped to either [[doom-package:switch-window]] or [[doom-package:ace-window]],
|
2021-10-16 01:29:57 +02:00
|
|
|
depending on which backend you've enabled. It is bound to [[kbd:][C-x o]] (and [[kbd:][C-w C-w]] for
|
|
|
|
evil users).
|
2019-05-09 21:31:23 -04:00
|
|
|
|
2022-09-26 02:19:42 +08:00
|
|
|
It also provides numbered windows and selection with the [[doom-package:winum]] package, if
|
2021-10-16 01:29:57 +02:00
|
|
|
desired. Evil users can jump to window N in [[kbd:][C-w <N>]] (where N is a number between
|
|
|
|
0 and 9). Non evil users have [[kbd:][C-x w <N>]] instead.
|
2018-01-04 03:24:00 -05:00
|
|
|
|
2021-10-16 01:29:57 +02:00
|
|
|
** Maintainers
|
|
|
|
/This module has no dedicated maintainers./ [[doom-contrib-maintainer:][Become a maintainer?]]
|
2019-05-09 21:39:16 -04:00
|
|
|
|
2021-10-16 01:29:57 +02:00
|
|
|
** Module flags
|
|
|
|
- +numbers ::
|
2022-09-26 02:19:42 +08:00
|
|
|
Enable numbered windows and window selection (using [[doom-package:winum]]).
|
2021-10-16 01:29:57 +02:00
|
|
|
- +switch-window ::
|
2022-09-26 02:19:42 +08:00
|
|
|
Use the [[doom-package:switch-window]] package as the backend, instead of ace-window ([[doom-package:avy]]).
|
2018-01-04 03:24:00 -05:00
|
|
|
|
2019-05-09 21:31:23 -04:00
|
|
|
** Packages
|
2022-09-26 02:19:42 +08:00
|
|
|
- [[doom-package:ace-window]] unless [[doom-module:+switch-window]]
|
|
|
|
- [[doom-package:switch-window]] if [[doom-module:+switch-window]]
|
|
|
|
- [[doom-package:winum]] if [[doom-module:+numbers]]
|
2021-10-16 01:29:57 +02:00
|
|
|
|
|
|
|
** Hacks
|
|
|
|
/No hacks documented for this module./
|
|
|
|
|
|
|
|
** TODO Changelog
|
|
|
|
# This section will be machine generated. Don't edit it by hand.
|
|
|
|
/This module does not have a changelog yet./
|
|
|
|
|
|
|
|
* Installation
|
|
|
|
[[id:01cffea4-3329-45e2-a892-95a384ab2338][Enable this module in your ~doom!~ block.]]
|
2018-01-04 03:24:00 -05:00
|
|
|
|
2021-10-16 01:29:57 +02:00
|
|
|
/This module has no external requirements./
|
|
|
|
|
|
|
|
* TODO Usage
|
|
|
|
#+begin_quote
|
2023-09-16 20:19:11 +02:00
|
|
|
This module has no usage documentation yet. [[doom-contrib-module:][Write some?]]
|
2021-10-16 01:29:57 +02:00
|
|
|
#+end_quote
|
|
|
|
|
|
|
|
* TODO Configuration
|
|
|
|
#+begin_quote
|
2023-09-16 20:19:11 +02:00
|
|
|
/This module's configuration documentation is incomplete./ [[doom-contrib-module:][Complete it?]]
|
2021-10-16 01:29:57 +02:00
|
|
|
#+end_quote
|
2018-01-04 03:24:00 -05:00
|
|
|
|
|
|
|
This module provides two backends, both providing the same functionality, but
|
2022-09-26 02:19:42 +08:00
|
|
|
with different visual cues. They are [[doom-package:ace-window]] and [[doom-package:switch-window]].
|
2017-10-08 23:34:25 +02:00
|
|
|
|
|
|
|
** ace-window
|
2018-01-04 03:24:00 -05:00
|
|
|
The first character of the buffers changes to a highlighted, user-selectable
|
|
|
|
character.
|
|
|
|
|
2021-10-16 01:29:57 +02:00
|
|
|
- *Pros:* the content of the buffers are always visible.
|
|
|
|
- *Cons:* The display characters are small and difficult to see (see below for a
|
|
|
|
way to enlarge them).
|
2020-06-25 19:30:37 -04:00
|
|
|
|
2021-10-16 01:29:57 +02:00
|
|
|
*** Custom font-face example
|
|
|
|
This changes the ace-window display to show a white letter with a red
|
|
|
|
background. The box attribute adds some padding:
|
|
|
|
#+begin_src emacs-lisp
|
2020-06-25 22:43:37 -04:00
|
|
|
(custom-set-faces!
|
|
|
|
'(aw-leading-char-face
|
|
|
|
:foreground "white" :background "red"
|
|
|
|
:weight bold :height 2.5 :box (:line-width 10 :color "red")))
|
2021-10-16 01:29:57 +02:00
|
|
|
#+end_src
|
2017-10-08 23:34:25 +02:00
|
|
|
|
|
|
|
** switch-window
|
2018-01-04 03:24:00 -05:00
|
|
|
Replaces the entire buffer with large letters.
|
2017-10-08 23:34:25 +02:00
|
|
|
|
2021-10-16 01:29:57 +02:00
|
|
|
- *Pros:* The displayed characters are /really/ easy to see.
|
|
|
|
- *Cons:* You can't see the contents of the buffers.
|
|
|
|
|
|
|
|
* Troubleshooting
|
|
|
|
/There are no known problems with this module./ [[doom-report:][Report one?]]
|
|
|
|
|
|
|
|
* Frequently asked questions
|
|
|
|
/This module has no FAQs yet./ [[doom-suggest-faq:][Ask one?]]
|
|
|
|
|
|
|
|
* TODO Appendix
|
|
|
|
#+begin_quote
|
2023-09-16 20:19:11 +02:00
|
|
|
This module has no appendix yet. [[doom-contrib-module:][Write one?]]
|
2021-10-16 01:29:57 +02:00
|
|
|
#+end_quote
|