Rectangle icon indicating copy to clipboard operation
Rectangle copied to clipboard

feat add thirds and two thirds shortcuts

Open khaledosama999 opened this issue 3 weeks ago • 12 comments

Discussion

https://github.com/rxhanson/Rectangle/discussions/1574

khaledosama999 avatar Dec 22 '25 18:12 khaledosama999

@rxhanson Let me know what you think, also I left a question about image creation for settings

khaledosama999 avatar Dec 22 '25 18:12 khaledosama999

Thanks for the pull request!

Sorry for the ambiguity, but the desired location for these additional shortcuts is here: image

As for the icons, I have always hand drawn them in Pixelmator Pro, and they are actually quite simple to draw (or probably generate more accurately with further instruction) if you don't mind. They are template images (black only). The background rectangle is 40 percent opacity, and the frame and window rectangles are 100 percent opacity.

rxhanson avatar Dec 23 '25 02:12 rxhanson

Ok makes sense my bad, will check it out today

khaledosama999 avatar Dec 23 '25 08:12 khaledosama999

Not the best UX in my opinion, I would've never have guessed we have extra shortcuts here (given it has its own tab and the arrow marker to display more shortcuts)

khaledosama999 avatar Dec 23 '25 08:12 khaledosama999

Not the best UX in my opinion, I would've never have guessed we have extra shortcuts here (given it has its own tab and the arrow marker to display more shortcuts)

Thanks for the feedback. I should have prefaced this with more context. The main feature request for Rectangle over the years is more sizes/positions. In order to accommodate all of these additional shortcuts, Rectangle's UI would have to change. I've tested out various interfaces, and in Rectangle Pro there is a table view and there is a custom size/position builder. For Rectangle, my desire is to reduce complexity as much as possible to make it more approachable - hence the single pane showing shortcut recorders. For many years, this meant only allowing additional sizes/positions to be contributed as Terminal command configurations. More recently, I've decided to allow more shortcuts to be added to the UI in this place, so that there's a middle ground that's more usable since Terminal command configuration of keyboard shortcuts is tedious. The fact that you would have never guessed we have extra shortcuts here is by design - it's inevitably going to be odds and ends that are added by the community. With that said, I'm always open to change.

rxhanson avatar Dec 23 '25 13:12 rxhanson

Not the best UX in my opinion, I would've never have guessed we have extra shortcuts here (given it has its own tab and the arrow marker to display more shortcuts)

Thanks for the feedback. I should have prefaced this with more context. The main feature request for Rectangle over the years is more sizes/positions. In order to accommodate all of these additional shortcuts, Rectangle's UI would have to change. I've tested out various interfaces, and in Rectangle Pro there is a table view and there is a custom size/position builder. For Rectangle, my desire is to reduce complexity as much as possible to make it more approachable - hence the single pane showing shortcut recorders. For many years, this meant only allowing additional sizes/positions to be contributed as Terminal command configurations. More recently, I've decided to allow more shortcuts to be added to the UI in this place, so that there's a middle ground that's more usable since Terminal command configuration of keyboard shortcuts is tedious. The fact that you would have never guessed we have extra shortcuts here is by design - it's inevitably going to be odds and ends that are added by the community. With that said, I'm always open to change.

Ok man thanks, makes sense, will ping you when I update the PR 💯

khaledosama999 avatar Dec 23 '25 14:12 khaledosama999

@rxhanson Done, images are still bad (I'm a back-end engineer, so UI is my kryptonite) let me know if all is good

khaledosama999 avatar Dec 23 '25 18:12 khaledosama999

Any updates ? 👂👁️👃👁️👂

khaledosama999 avatar Dec 26 '25 07:12 khaledosama999

I’m in the middle of holiday travel, but will give this a look soon. I’ll add the icons if needed prior to merging.

rxhanson avatar Dec 26 '25 16:12 rxhanson

Repeating the shortcuts for the thirds actions here cycles between center and back. My expectation is that it would cycle across all of them, like how it's done for the existing vertical thirds.

rxhanson avatar Dec 29 '25 02:12 rxhanson

@rxhanson Done I also did the same for the middle (not sure if thats also what you intended)

khaledosama999 avatar Dec 29 '25 08:12 khaledosama999

Thanks for the update. Almost there, just a couple small things to address:

  • Cycling the top or bottom thirds will infinite loop and crash
  • The existing vertical center third doesn't cycle, so I would expect this horizontal center third to also not cycle

rxhanson avatar Dec 30 '25 00:12 rxhanson

@rxhanson ok I think we're good, (stupid vibe coding)

khaledosama999 avatar Jan 01 '26 11:01 khaledosama999

Thanks! A few more items:

  • Cycling starting with bottom third should cycle up, rather than down (again, to match existing thirds).
  • The bundle identifier for the app should not be modified
  • There are comments for "New Vertical Thirds" that have been added by Claude. Probably best to simply remove those as they will no longer be "New" after this is merged.

Normally at this point in a pull request I would make these changes myself and merge, but in the case of AI assisted/generated pull requests I prefer having this done by the author.

rxhanson avatar Jan 02 '26 02:01 rxhanson

Done

khaledosama999 avatar Jan 02 '26 09:01 khaledosama999

Thanks!

rxhanson avatar Jan 02 '26 16:01 rxhanson