Skip to content

switch to last selected window#252

Open
sczi wants to merge 1 commit into
abo-abo:masterfrom
sczi:select-previous-window
Open

switch to last selected window#252
sczi wants to merge 1 commit into
abo-abo:masterfrom
sczi:select-previous-window

Conversation

@sczi

@sczi sczi commented Aug 25, 2025

Copy link
Copy Markdown

Discussed in #125
Basically aw-flip-window would select the window previously selected by ace window. Several users (me included) want the ability to select the previously visited window, whether it was selected by ace window or not. My reading of that conversation was that it should replace the behavior of aw-flip-window. If it should leave aw-flip-window the same, and just add a separate aw-previous-window function let me know and I'll change the pr

@Richard1813

Richard1813 commented Dec 6, 2025

Copy link
Copy Markdown

(With my current usecase using ace-window as my primary window-changing tool). I agree that this would be a cool modification.

Sometimes a window is created and moved to without ace-window but you'd still like to use the same command to return to the previous window without worrying about how the window was created in the first place.

Is there a reason why the action of flip-window should be kept to solely operate on previously-visited-by ace-window windows?

@Richard1813

Copy link
Copy Markdown

To be fair, this functionality can be achieved just through modifying aw-dispatch-alist. e.g.

(setq aw-dispatch-alist
          (?n previous-window-any-frame)
          (?p next-window-any-frame)
)

So changing it isn't strictly necessary and the current configuration keeps the functionality wholly contained inside it's own module, which is a nice design for something as modular as emacs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants