~dsemy/window-commander

Simply execute commands on windows in Emacs

84b5f5f * window-commander.el (wincom-define-window-command): Fix keyword args

a day ago
~dsemy/window-commander

New ticket tracker added

5 months ago
Window Commander - Simply execute commands on windows

Window Commander provides a minor mode for switching to
windows or performing actions on them using IDs assigned to them
automatically.

Installation:

From GNU ELPA:

M-x package-install RET window-commander RET

Usage:

Enable `wincom-mode':

(wincom-mode)

For use-package users:

(use-package window-commander
  :config
  (wincom-mode))

When `wincom-mode' is active:
- A window ID is displayed using a mode line lighter and/or a display
  function (see `wincom-display-lighter').
- Window IDs are assigned to all windows on all frames except for
  the minibuffer (by default, see `wincom-scope').
- `other-window' (C-x o by default) is remapped to `wincom-select'.

C-x o ID	switches focus to the window which corresponds to ID.

C-x o 0 ID	deletes the window which corresponds to ID.

C-x o 1 ID	makes the window which corresponds to ID the sole
       		window of its frame.

C-x o 2 ID	splits the window which corresponds to ID from below.

C-x o 3 ID	splits the window which corresponds to ID from the right.

C-x 0 4 ID	displays the buffer of the next command in the window
      	 	which corresponds to ID.

C-x 0 t ID	swaps the states of the current window and the window
     	  	which corresponds to ID.

C-x o m		switches focus to the minibuffer if it's active.

More commands can be added through `wincom-command-map':

(define-key wincom-command-map (kbd "z") #'my-command)

You can customize Window Commander further using the customize interface:

M-x customize-group RET window-commander RET

For more information see info node (Window Commander).

Copyright:

Copyright © 2023 Free Software Foundation, Inc.
Licensed under GPLv3 or later.