RectanglePro-Community icon indicating copy to clipboard operation
RectanglePro-Community copied to clipboard

Make Smaller/Make Larger, add height Only option

Open stvsu opened this issue 10 months ago • 6 comments

Is it possible to add a height Only option to resizing?

Height/Width are useful as separate commands to be able to adjust windows to the exact size you want without leaving the keyboard

Separately, I just migrated from Rectangle -> Rectangle Pro, and added the widthOnly config (replacing w/ Hookshot) and that doesn't seem to be working

stvsu avatar Jan 08 '25 22:01 stvsu

It looks like this config was merged into Rectangle open source in November 2024, so perhaps it hasn't made it to Rectangle Pro?

https://github.com/rxhanson/Rectangle/pull/1504

stvsu avatar Jan 08 '25 22:01 stvsu

It looks like this config was merged into Rectangle open source in November 2024, so perhaps it hasn't made it to Rectangle Pro?

Correct. Are you up for trying out a pre-release version that also has smallerHeight & largerHeight as Terminal command configuration? I thought I had a version ready to test, but looks like it had some rough edges that I still have to iron out.

rxhanson avatar Jan 09 '25 03:01 rxhanson

Saw your edit - def interested in testing it once you have a beta release ready

stvsu avatar Jan 09 '25 19:01 stvsu

Saw the latest release (which includes addWidth), was height added or is that still in progress?

stvsu avatar Jan 16 '25 21:01 stvsu

It's in there. Let me know if it's not working for you.

rxhanson avatar Jan 17 '25 02:01 rxhanson

Not able to access smallerHeight and largerHeight

Attaching terminal commands to show how the config is set (also restarted Rectangle Pro to make sure it took effect)

username@Mac ~ % defaults read com.knollsoft.Hookshot smallerHeight
{
    keyCode = 33;
    modifierFlags = 786432;
}
username@Mac ~ % defaults read com.knollsoft.Hookshot largerHeight 
{
    keyCode = 30;
    modifierFlags = 786432;
}
username@Mac ~ % defaults read com.knollsoft.Hookshot largerWidth 
2025-01-17 14:23:28.227 defaults[1945:11136426] 
The domain/default pair of (com.knollsoft.Hookshot, largerWidth) does not exist
username@Mac ~ % defaults read com.knollsoft.Hookshot smallerWidth
2025-01-17 14:23:34.078 defaults[1946:11136452] 
The domain/default pair of (com.knollsoft.Hookshot, smallerWidth) does not exist

Included the output of largerWidth and smallerWidth just to show they aren't conflicting w/ same keycodes.

If I flip this around (same keycodes, but using largerWidth and smallerWidth) it works for width adjustments.

Am I using the wrong name for the height commands? (smallerHeight, largerHeight)

stvsu avatar Jan 17 '25 22:01 stvsu