noah-nuebling / mac-mouse-fix

Mac Mouse Fix - Make Your $10 Mouse Better Than an Apple Trackpad!
https://macmousefix.com/
Other
5.55k stars 154 forks source link

One-button scrolling through spaces [enhancement] #352

Open noah-nuebling opened 2 years ago

noah-nuebling commented 2 years ago

Discussed in https://github.com/noah-nuebling/mac-mouse-fix/discussions/138

Originally posted by **sjdennis** July 1, 2021 There is one really annoying limitation with scrolling through spaces in Mac OS - you have to go left, or right. You can't just have a single button that toggles through all of them, which would be far more logical - I never remember whether a space is left or right of the one I am in now - and would free up one of those buttons for another function. This is a Mac OS problem, not a mac-mouse-fix problem - they've made their own interface annoying for no reason. But I wonder if there is a workaround. Is there any way of the software finding out when you have reached the end of the available spaces, so it could then automatically switch to scrolling in the other direction? Or might there be a hidden system call that actually does scroll through spaces like this but isn't made clear to the user, which the sofware could access? Probably there's nothing that can be done, but if someone can think of a way to emulate something like this it would be awesome.
noah-nuebling commented 2 years ago

(Quoting @MuhammedZakir from #138)

@noah-nuebling : if it works (it does[1]), will you implement this? You probably have to add a note that this is an expermintal feature and may break in a future macOS update.

Hey Muhammed, thanks so much for researching this and letting us know!

This is not going to be a priority for me in near future. But I do think it's cool! The main reason I don't plan to focus on this is that I don't see a significant advantage in using this feature over the existing click and drag to switch spaces feature. I also feel that, even if the private APIs allow to determine which space you're on, it might still be really hard to switch from the last space to the first space with an animation that's not janky. But I'm not sure about this.

If you do wanna do more work figuring this out, it should be relatively easy for you to try and add it to MMF, by going to Actions.m and just overriding one of the existing actions with the space switching feature.

Let me know if you have more thoughts or input on this!