[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ace-window 77cc05f 07/92: Add 'visible option for aw-sc
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ace-window 77cc05f 07/92: Add 'visible option for aw-scope |
Date: |
Wed, 17 Mar 2021 18:39:11 -0400 (EDT) |
branch: externals/ace-window
commit 77cc05f7284577ed396f292de0e7bb8ec561ea81
Author: Tom Hinton <tom.hinton@cse.org.uk>
Commit: Tom Hinton <tom.hinton@cse.org.uk>
Add 'visible option for aw-scope
This works to allow switching only between frames in the
visible-frame-list. If you use i3, you can employ
https://github.com/vava/i3-emacs to advise visible-frame-list so that it
only contains frames which are actually on a visible workspace.
---
ace-window.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/ace-window.el b/ace-window.el
index f6e541f..e5bbd33 100644
--- a/ace-window.el
+++ b/ace-window.el
@@ -75,6 +75,7 @@
(defcustom aw-scope 'global
"The scope used by `ace-window'."
:type '(choice
+ (const :tag "visible frames" visible)
(const :tag "global" global)
(const :tag "frame" frame)))
@@ -142,6 +143,8 @@ This will make `ace-window' act different from
`other-window' for
(string= "initial_terminal" (terminal-name f))
(aw-ignored-p w))))
(cl-case aw-scope
+ (visible
+ (cl-mapcan #'window-list (visible-frame-list)))
(global
(cl-mapcan #'window-list (frame-list)))
(frame
@@ -278,6 +281,7 @@ Amend MODE-LINE to the mode line for the duration of the
selection."
(setq aw-action action)
(let ((start-window (selected-window))
(next-window-scope (cl-case aw-scope
+ ('visible 'visible)
('global 'visible)
('frame 'frame)))
(wnd-list (aw-window-list))
@@ -297,7 +301,8 @@ Amend MODE-LINE to the mode line for the duration of the
selection."
(not aw-dispatch-always)
(not aw-ignore-current))
(let ((wnd (next-window nil nil next-window-scope)))
- (while (and (aw-ignored-p wnd)
+ (while (and (or (not (memq wnd wnd-list))
+ (aw-ignored-p wnd))
(not (equal wnd start-window)))
(setq wnd (next-window wnd nil next-window-scope)))
wnd))
- [elpa] externals/ace-window f786679 04/92: Allow non-printing keys like in avy, (continued)
- [elpa] externals/ace-window f786679 04/92: Allow non-printing keys like in avy, Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window 4a89ccc 05/92: ace-window.el (aw-switch-to-window): Push early, Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window f6653fb 06/92: Fix up aw-leading-char-style 'path setting, Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window 92bd29c 08/92: Fix frames order, Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window 9aec100 01/92: Allow to pop current buffer and move it with "M" during dispatch, Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window f54d2bd 11/92: ace-window.el (ace-maximize-window): Rename, Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window c5e31ce 16/92: ace-window.el (aw-show-dispatch-help): Add and bind to "?", Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window c6f5c03 20/92: Clarify when aw-dispatch-always should be set to t., Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window c875ffb 22/92: ace-window.el (aw-show-dispatch-help): Clean up overlays, Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window 6aaf1e6 13/92: Fix typo in docstring of aw-background, Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window 77cc05f 07/92: Add 'visible option for aw-scope,
Stefan Monnier <=
- [elpa] externals/ace-window 056abfe 14/92: ace-window.el (aw-switch-buffer-in-window): Add and bind to "j", Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window 91d736e 15/92: ace-window.el (aw-dispatch-default): Clarify through destructuring, Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window a488657 17/92: ace-window.el (aw-show-dispatch-help): Call ace-window, Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window 2701919 18/92: ace-window.el (aw-key-face): Add, Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window a037b7a 19/92: Cask: Remove dependency, Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window 3665daf 24/92: ace-window.el (aw-dispatch-default): No error on "C-g", Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window 74c9cef 25/92: ace-window.el (aw-dispatch-when-more-than): New defcustom, Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window 9bec357 28/92: ace-window.el: Fix compiler warning, Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window 2f433c8 29/92: Added ability to specify a new frame window as the target, Stefan Monnier, 2021/03/17
- [elpa] externals/ace-window 6d3a6a0 23/92: ace-window.el (aw-switch-buffer-in-window): Use ivy if available, Stefan Monnier, 2021/03/17