Best "go to previous window" solution

Hello list. To move to the previous selected window, I use the module `XMonad.Actions.GroupNavigation` and its `historyHook` with a key set up to `nextMatch History (pure True)`. With this I can alternate to the previously selected window. But it is not a repeatable process, because once I jump to the previous window, the window from which I jumped becomes the "previous window". That means I can only alternate between two windows with this setup. What I would like is to have the equivalent of `C-o` on vim or `C-u C-<space>` on emacs but without it being limited to two movements. What modules on contrib should I be using? -- -- Rubén. pgp: 4EE9 28F7 932E F4AD

Hi, On Thu, Aug 12, 2021 at 10:52:16AM -0400, Ruben Astudillo wrote:
To move to the previous selected window, I use the module `XMonad.Actions.GroupNavigation` and its `historyHook` with a key set up to `nextMatch History (pure True)`. With this I can alternate to the previously selected window. But it is not a repeatable process, because once I jump to the previous window, the window from which I jumped becomes the "previous window". That means I can only alternate between two windows with this setup. …
Last time I looked for this, nothing in xmonad-contrib seemed good enough (although I surely missed something) and I found https://github.com/sagb/alttab, which works well enough with xmonad and even shows icons to make it visually easier to use. :-) -- Tomáš "liskin" ("Pivník") Janoušek, https://work.lisk.in/

Possibly XMonad.Actions.CycleWindows. This said, there's a standard set of
bindings to mod-j and mod-k (alternately mod-tab, mod-shift-tab) that might
do what you want.
On Thu, Aug 12, 2021 at 10:53 AM Ruben Astudillo
Hello list.
To move to the previous selected window, I use the module `XMonad.Actions.GroupNavigation` and its `historyHook` with a key set up to `nextMatch History (pure True)`. With this I can alternate to the previously selected window. But it is not a repeatable process, because once I jump to the previous window, the window from which I jumped becomes the "previous window". That means I can only alternate between two windows with this setup.
What I would like is to have the equivalent of `C-o` on vim or `C-u C-<space>` on emacs but without it being limited to two movements. What modules on contrib should I be using?
-- -- Rubén. pgp: 4EE9 28F7 932E F4AD _______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
-- brandon s allbery kf8nh allbery.b@gmail.com
participants (3)
-
Brandon Allbery
-
Ruben Astudillo
-
Tomas Janousek