Add --when-visible (focus|swap) option to the summon-workspace command#681
Add --when-visible (focus|swap) option to the summon-workspace command#681lynaghk wants to merge 1 commit intonikitabobko:mainfrom
--when-visible (focus|swap) option to the summon-workspace command#681Conversation
…and. What should happen when the summoned workspace is visible on another monitor? This option introduces a choice to either: - `focus` the monitor on which the target workspace is already visible (the current behavior) - `swap` the workspaces between the monitors, so that the summoned workspace appears on the focused monitor. The default is `focus`, for backwards compatibility. Ref: nikitabobko#603
4148543 to
56734b2
Compare
|
I've been driving this today and have noticed a bug: I have enabled and when I summon a workspace the mouse jumps to the other monitor. I'll investigate and see if I can push up a fix. |
|
@lynaghk: I also implemented a similar summon workspace feature - #606 - see the discussion for some of the nuances to keep in mind. the reference to renaming workspaces was for a separate feature idea: xmonad supports swap workspaces on monitors. your other PR (#682) is similar to another PR i implemented (#605), so it looks like we have been thinking similarly 😄 |
|
what's the status on this? |
|
Status: I'm too lazy and overloaded to take a look at the PR. And I don't know how people really use And I hate And I plan to rework the whole tree structure #1215. Part of which would be to make monitors real part of the tiling tree, and cover it with tests. So, unfortunately, the PR is not the priority. Not until, #1215 is fixed |
f324d2e to
7aff813
Compare
|
I updated #1349 to be rebased off of current |
|
Fantastic feature. Would like to see this merged. |
First, let me say AeroSpace is really cool! I've been trying to relive my XMonad memories on Mac for years and am excited about the possibilities with AeroSpace.
This PR implements the swapping behavior discussed in #603.
I could be misunderstanding the AeroSpace internals, but it doesn't seem like this feature is blocking on workspace renaming. I've tested it locally with multiple monitors and tiling / accordion layouts and it seemed to work as intended. (Note: I have not attempted to wire up any automated tests, though would be happy to do so if you'd like me to.)
Even though in that issue you said you wanted
swapto be the default behavior, in the PR I havefocusas the default for backwards compatibility.Finally, I live and work in Oud-West, so if you would prefer to discuss in person --- beverages are on me =D