Skip to content

Improve window_action API usages #57

@phillco

Description

@phillco
  • In v0.4/Rust, use the new window properties, like window.minimized, to minimize/close/fullscreen windows.
  • In v0.3, we should read/modify the window properties, rather than simulate button presses. For example win.element.AXFullScreen. We should also stop using a shortcut to get out of fullscreen mode.

Optionally, we can also use appscript for more of the mass-windowing commands. For example, this will minimize every window:

app('Finder').windows.collapsed.set(True)

But unlike closing every window (#55), this doesn't seem to be particularly faster in my testing. I think Talon itself generally prefers to use appscript when it's available, and then fallback to accessibility (for example, for changing window positions). But I'm not sure if there's any other advantages are disadvantages. cc @nriley for thoughts

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions