-
-
Notifications
You must be signed in to change notification settings - Fork 781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Center Two Screens action #1314
Add Center Two Screens action #1314
Conversation
Thanks for contributing. Sorry for the delay on this one, I’m planning on going through it this weekend. |
Ah, I ended up catching a cold this past week. I will get to this soon though! |
Alright, I finally got a chance to take a look, and there are a couple of items to work through.
|
c78abdf
to
bd5aeae
Compare
Thanks so much for having a look! I did not know about those hidden actions. It makes sense for this to go there. I've reimplemented the calculation, but please could you try your scenario again? For some reason this does not work with vertically stacked displays. I can see the window flick into the right position and then immediately get placed somewhere else. I think I've done all I need for the command to be configurable via the terminal? Have I missed anything? |
I would definitely like to have a center two-thirds option! |
I tested it out and it works fine now for me. I don't think I'll take the time to figure out why vertically stacked displays don't work here, but I'm fine merging it without this working (I view the terminal command configured options as ones that are ok with some quirks). Hope you don't mind, I adjusted some items here - removed it from the menu bar menu, adjusted some code styling/formatting to fit with the rest of the app. Noteworthy items: swift switches don't fall through, so I removed the break statements, used ternaries where possible, and removed redundant enum naming. There are too many comments in its current state to merge. I appreciate making your thoughts known for the sake of the PR, but definitely think it should be improved by only leaving in things that really need some 'splainin. When that's done, I'm ready to merge, unless you want to spend more time figuring out the vertical stack problem. |
614bd17
to
bd5aeae
Compare
Since it's been a while, and I felt like maybe I overstepped initially (sorry!), I rolled my changes out of your PR. When I last went through it, I started down a path of getting vertically stacked displays working and realized I was going to rewrite your effort. Let me know what you'd like to do here - if you want to pass off what you have, I can jump back into it when I have time, or you can keep at it and let me know when it's ready for another look. If I don't hear back, I'll probably close this PR for the time being. |
Adds an action that centers a window across two picture by picture (PBP) displays
Implements the feature from this discussion