Skip to content

[Feature Request] Add --boundaries options to move command #183

@gabsrp2002

Description

@gabsrp2002

Motivation

I'm currently trying to do something like:

If you can move the current window to the left in the current workspace, do it! Otherwise, move the window to the monitor in the left (wrapping around)

So I thought that the following simple zsh script would do it for me:

aerospace move left || aerospace move-node-to-monitor --wrap-around left

Unfortunately, that doesn't work, since aerospace move left does not fail when it can't move.

Feature request

I think it would be nice for aerospace commands to return something to indicate if they "failed" to do what they were supposed to do. It would be enough to solve my problem.

Alternative

Another way to solve it would be to make move to work similarly to the focus command (with boundaries and boundaries actions).

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature proposalgood-first-issueEasy to fix issues. Good for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions