dumbeau / AutoHotPie

Radial menus in Windows, aka PIE MENYOOS!
MIT License
340 stars 18 forks source link

[Feature request] Window Title Profiles #95

Open Crunchbits opened 1 year ago

Crunchbits commented 1 year ago

Currently the profiles are executable-based, although I believe that an option for adding profiles based on Window Title(with SetTitleMatchMode option) could be really useful. For example, it could open up the ability to have different profiles on different websites such as google, youtube, gmail, etc.

That's really it, Window Title based profiles. That by itself would be more than useful. Although, it would also be cool to have either:

  1. The option to have 2 conditions on the profile at the same time. Meaning you could make a profile based on exe, window title, or both. By both I mean it would require both the exe and window title condition to be met to activate the profile.
  2. Sub-profiles. This would be effectively the same as the first option, but the secondary condition would be added as a sub-profile. GUI-wise, that would probably mean you have a list you can open of sub-profiles underneath the current profile. This would be more of an organizational option to keep things neat. Meaning that instead of having profiles for Chrome, Google, Youtube, and Gmail you could have the profile for Chrome, and underneath that you have sub-profiles for Google, Youtube, and Gmail.
dumbeau commented 1 year ago

I can see this being useful for web-browser or web-based apps. Yeah that seems like a good idea, ultimately everything will have to be tied to an exe at a top level just due to the structure of this, and that pattern seems to work for most people.

I don't see the situation of creating a profile based on a window title only happening, so I think organizationally I would go for exe profiles first, and then you can add a Window Title condition on specific pie menus. The main reason for this is that I want the UI structure to only push for creating exe profiles first, and then deeper in the UI are these "pie menu condition" options.

Would this work for you? Feel free to refute me.

EDIT: omg I just realized this could also solve the annoying problem with UWP apps and there 'ApplicationFrameHost.exe' being the exe for all their apps.

Crunchbits commented 1 year ago

Yes, I agree that would probably work for the vast majority of people.

The only situation I could see for creating a profile based on a window title only would be for people that use 2 or more browsers, although that probably isn't much people. Meaning that you wouldn't have to recreate a profile for each browser you have. Although, I think that could be better solved with the option to have a profile with multiple exe options or an option to copy profiles.

dumbeau commented 1 year ago

window title only would be for people that use 2 or more browsers,

Keep in mind that although profiles are exe based, you can add multiple exe-s in union, even in the current version. So you could add a SINGLE profile for both Vivaldi.exe and FireFox.exe together, and then set your window title condition on your pie menu.

mmikeww commented 8 months ago

This is now possible, see PR #143 for instructions on how to test