Amethyst
Amethyst copied to clipboard
Float applications pick from open
Is your feature request related to a problem? Please describe.
I have been struggling to make certain applications float as they would expose different identifiers in the Info.plist file like IntelliJ and Amethysts would not find them. Also finding the actual title names can be challenging sometimes and I have to use AppleScript to do this like.
To get the actual application ID:
/Applications/Amethyst.app/Contents/MacOS/Amethyst --debug-info --include-apps
To get the window titles of all applications
osascript -e 'tell application "System Events" to get the title of every window of every process'
Describe the solution you'd like It would be ideal to have another option in the add menu to select from current open program, Amethyst would list the programs (same as the --include-apps).
Same idea for the window option, having an option where Amethyst just queries the open windows and shows in a list the titles for the user to select.
Describe alternatives you've considered Other way of choosing the window could be to do a select mode, where it would query the next focused window. But probably with a list is simpler.
I have actually found a good way to find the window names and the application IDs.
If you have XCode installed you can use the "Accesibility Inspector" /Applications/Xcode.app/Contents/Applications/Accessibility Inspector.app
to find the window titles.
Then to convert the App Name to the ID you can use osascript -e 'id of app "app_name"'
for example:
❯ osascript -e 'id of app "IntelliJ IDEA"'
com.jetbrains.intellij
That would be a very complicated UI to implement. I did implement some command-line tools for inspecting windows and applications that might be helpful here, though. It was done in #1457, but has not made it in to a build yet.
A command-line tool might be actually enough to give enough information to manually create entries in the floating list if it's well documented. Is there any way to use patterns/wildcards for the windows titles? For example, I might want to float all windows that start with settings-
or to float an application except certain windows.
You can specify regular expressions.