lwouis / alt-tab-macos

Windows alt-tab on macOS
https://alt-tab-macos.netlify.app
GNU General Public License v3.0
10.95k stars 331 forks source link

Adding option "Space where cursor is active" in "Show windows from: " #3062

Open alt-tab-macos-bot opened 11 months ago

alt-tab-macos-bot commented 11 months ago

This issue was opened by a bot after a user submitted feedback through the in-app form.

From: fahd777@pm.me

Message:

Hi !

  • Adding option "Space where cursor is active" in "Show windows from: " in Controls' shortcuts. (consistent with "Show on: screen including mouse", useful in cases where different monitors use different spaces, each used for a specific group of applications)

  • Ability to choose a different Max width/height on screen. (I have a wide external monitor where I'd like the max width to be quite small percentage-wise compared to its width to avoid having to move head/eyes right to left to find a window; at the same time I use my macbook's screen which is quite narrow in comparison, having option "Show on: screen including mouse" active, I can't have the same max width setting that's optimal for both)

Thanks for this great piece of software :)

fad1 commented 10 months ago

Suggestion 1 seems to be have equivalent implementation from "Screen showing AltTab" image

Suggestion 2 seems interesting.

lwouis commented 9 months ago

I'm thought more about the request. It differs from "Screen showing AltTab" in 1 way: if the user has a Space spreading multiple Screens. In that case, if they want to only see windows from that Space, we offer no solution today.

I think we could add an option to the Space dropdown:

And in the same fashion as "Screen showing AltTab", the user would pick "Show on: Screen including mouse" in the Appearance tab.

lwouis commented 9 months ago

After trying to implement this, I found a technical blocker.

Today we use the CGSCopyManagedDisplaySpaces private API to get a list of screens with the spaces they contain. This API only works when the `Displays use separate Spaces" checkbox is checked by the user in System Settings.

However, in the use-case of this ticket, the user would necessarily have that checkbox unchecked, so their Spaces can span multiple displays.

I'm not sure it's possible for us to work around the limitations of CGSCopyManagedDisplaySpaces.