AlexanderPro / SmartContextMenu

Smart context menu for all windows in the system
MIT License
129 stars 6 forks source link

[Feature Request] Add a custom screen location without resizing window #24

Open leocacom opened 4 months ago

leocacom commented 4 months ago

Hello!

Very nice program here! I was using Sizer for years but this is a lot better! I just miss one feature, if I can suggest it to you...

What I would like I LOVE how I can add my custom windowSizeItems in the XML with associated shortcut keys. I would like to do the same with screen locations without resizing the window!

What I tried I tried to add an item line with left and top to a custom value and leaving width and height blank, but this prevents the program to launch (with an error).

What I hope we can do One of these three:

Further ideas In case of a windowLocationItems section, top and left values could also use const values like screen_width, screen_top, etc. And why not small calc possibilites, for example (screen_width - 32) / 2.

Thank you for your hard work! Wish you the best, Léo

AlexanderPro commented 4 months ago

Hi @leocacom,

Thank you for choosing SCM. I will try to make width and height attributes as optional for windowSizeItems section in the next versions.

AlexanderPro commented 4 months ago

Please, try version 1.4.1. The width and height attributes are now optional for windowSizeItems section.

leocacom commented 4 months ago

Awesome, thank you! That was quick! 🙌

I played with it a bit, and here is my feedback:

Is this by design? Because the Alignment items align the window on the monitor where the window currently is. I can still Resize, then Move To the window to the other monitor, but if the monitors are not of the same size it could lead to inconsistencies I think.

In any case, thank you again!

AlexanderPro commented 4 months ago

Thank you for the good suggestion. I will try to add this option in the next version.