Skip to content

Commit eef897e

Browse files
joedicastroabo-abo
authored andcommitted
Update README.md
Update for the customization options for the midway action. Fixes #46
1 parent 1487ae1 commit eef897e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,31 @@ where to look, i.e. the top-left corners of each window.
9090
So you can turn off the gray background with:
9191

9292
(setq aw-background nil)
93+
94+
### `aw-dispatch-always`
95+
96+
When non-nil, `ace-window` will issue a `read-char` event for one window.
97+
This will make `ace-window` act different from `other-window` for one
98+
or two windows. This is useful to be able to change the action midway
99+
and execute other action other than the *jump* default.
100+
By default is set to `nil`
101+
102+
### `aw-dispatch-alist`
103+
104+
This is the list of actions that you can trigger from `ace-window` other than the
105+
*jump* default.
106+
By default is:
107+
108+
(defvar aw-dispatch-alist
109+
'((?x aw-delete-window " Ace - Delete Window")
110+
(?m aw-swap-window " Ace - Swap Window")
111+
(?n aw-flip-window)
112+
(?v aw-split-window-vert " Ace - Split Vert Window")
113+
(?b aw-split-window-horz " Ace - Split Horz Window")
114+
(?i delete-other-windows " Ace - Maximize Window")
115+
(?o delete-other-windows))
116+
"List of actions for `aw-dispatch-default'.")
117+
118+
If the pair key-action is followed by a string, then `ace-window` will be
119+
invoked again to be able to select on which window you want to select the
120+
action. Otherwise the current window is selected.

0 commit comments

Comments
 (0)