Oleh Krehel [Wed, 25 Feb 2015 16:49:37 +0000 (17:49 +0100)]
Allow customizing the leading char face
* ace-window.el (aw-leading-char-face): New face.
(aw-keys):
(aw-ignore-on):
(aw-background):
(aw-scope): No need for :group.
(aw-ignored-buffers): Add type.
(ace-window-end-hook): Remove deprecated var.
(ace-window-end-once-hook): Remove deprecated var.
(aw-select): Inline `ace-jump-populate-overlay-to-search-tree'.
Oleh Krehel [Fri, 6 Feb 2015 14:29:29 +0000 (15:29 +0100)]
Update `aw--doit' signature
* ace-window.el (ace-window-end-hook): Now obsolete.
(ace-window-end-once-hook): Now obsolete.
(aw--current-op): Remove.
(aw--doit): Take a function to call, once the window is selected, as the
first arg.
(ace-select-window): Update.
(ace-delete-window): Update.
(ace-swap-window): Update.
(ace-maximize-window): Update.
Oleh Krehel [Fri, 6 Feb 2015 11:38:44 +0000 (12:38 +0100)]
Finalize transition to `read-char'
* ace-window.el (aw--callback-body): Remove.
(aw--callback): Remove.
(aw--doit): Do a `read-char' loop, in case there's more than one
level. Don't run the hooks any more - they're not necessary.
Oleh Krehel [Fri, 6 Feb 2015 11:20:50 +0000 (12:20 +0100)]
Start transition to `read-char'
* ace-window.el (aw--callback-body): Move most of `aw-callback' here.
(aw--doit): Only pass the char to `aw--callback-body'.
(aw--done): Repurpose from `ace-jump-done'.
(ace-select-window): Use `read-char' instead of `set-transient-map'.
Oleh Krehel [Tue, 30 Dec 2014 20:50:31 +0000 (21:50 +0100)]
ace-window.el (aw--doit): fix conflict with helm
* ace-window.el (aw--doit): Need to remove `helm--maybe-update-keymap'
from `post-command-hook'. Otherwise, even if not in the helm
minibuffer, the helm transient map will override all bindings.
Oleh Krehel [Tue, 30 Dec 2014 20:38:13 +0000 (21:38 +0100)]
ace-window.el (aw--doit): use map with most priority
* ace-window.el (aw--doit): Use `set-transient-map' instead of `(setq
overriding-local-map)`, as it has more priority and `helm' is using
it. This will avoid the current conflict with helm.
Oleh Krehel [Wed, 17 Dec 2014 17:27:58 +0000 (18:27 +0100)]
ace-window.el: remove aw-generic macro
* ace-window.el (aw--current-op): New var.
(aw--callback): New command, replaces "...-wrapper" from `aw-generic'.
(aw--doit): New function, replaces the other part of `aw-generic'.
(ace-select-window): Update.
(ace-delete-window): Update.
(ace-swap-window): Update.
(aw-switch-to-window): Now expects only an aj-data structure.
(aw-delete-window): Now expects only an aj-data structure. Will
`delete-frame' when there's only one window if frame.
(aw-swap-window): Now expects only an aj-data structure.
Oleh Krehel [Thu, 6 Nov 2014 22:19:12 +0000 (23:19 +0100)]
ace-window.el: add work-around for autoload
Up to now, the `aw-generic' macro was called inside the autoload file.
Now define empty functions that generate the autoload entry points,
then redefine them using the old mechanism.
Oleh Krehel [Wed, 23 Jul 2014 12:42:31 +0000 (14:42 +0200)]
ace-window.el: add custom buffer ignoring
* ace-window.el (aw-ignored-buffers): New custom variable. Set this to
a list of buffer names that are often around, but you don't want to
switch to them.
(aw-ignore-on): New custom variable. This value can be toggled with
M-0 `ace-window'.
(aw-ignored-p): New function.
(aw-list-visual-area): Don't return ignored windows.
(aw-generic): Add ignoring.
(ace-window): With 0 prefix argument, toggle `aw-ignore-on'.
Oleh Krehel [Mon, 21 Jul 2014 14:51:26 +0000 (16:51 +0200)]
ace-window.el (aw-visual-area<): improve.
Now the frame to which window belongs is the first key by which the
sorting is done. This means that the windows that belong to the same
frame will be numbered sequentially.
Oleh Krehel [Fri, 18 Jul 2014 08:50:58 +0000 (10:50 +0200)]
ace-window.el (aw-generic): finalize improve for hscroll
* ace-window.el (aw-offset): New function.
The issue with top left part of the window being after the newline,
i.e. it can't be written to without modifying the buffer, is fixed
by displaying the jump character on the next available line.
Oleh Krehel [Thu, 17 Jul 2014 18:00:13 +0000 (20:00 +0200)]
ace-window.el (aw-generic): improve for hscroll
This is a minor fix to #11.
The issue is fixed for when the first visible character in window
is actually a character and not empty space.
The other situation still needs to be solved.
Kyle Meyer [Tue, 27 May 2014 00:33:12 +0000 (20:33 -0400)]
Fix selection when two single-window frames
With two single-window frames, `next-window' was being called with
ALL-FRAMES as nil, resulting in the current window being returned
instead of the non-selected window. This commit sets the ALL-FRAMES
argument to 'visible' and modifies `aw-switch-to-window' to account for
the two-window case where POSITION may not be a window in the current
frame.
The only handler this commit modifies is `aw-switch-to-window' because
the behavior for `aw-delete-window' and `aw-swap-window' with multiple
frames doesn't seem to be well specified at this point.
Oleh Krehel [Fri, 2 May 2014 14:03:05 +0000 (16:03 +0200)]
ace-window.el: add move and delete functionality
* ace-window.el (aw-generic): New macro.
(ace-window): Do different things depending on prefix arg.
(ace-delete-window): New interactive function.
(ace-select-window): New interactive function.
(ace-swap-window): New interactive function.
(aw-switch-to-window): Test if argument is window.
(aw-delete-window): New function.
(aw-swap-window): New function.