Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/AppBundle/command/impl/WorkspaceCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct WorkspaceCommand: Command {
stdin: io.readStdin(),
target: target,
)
guard let workspace else { return false }
guard let workspace else { return io.err("Can't resolve next or prev workspace") }
workspaceName = workspace.name
case .direct(let name):
workspaceName = name.raw
Expand Down
6 changes: 5 additions & 1 deletion docs/aerospace-move-node-to-workspace.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ include::./util/window-id-flag-desc.adoc[]
// =========================================================== Arguments
include::./util/conditional-arguments-header.adoc[]

(next|prev):: Move window to next or prev workspace
(next|prev):: Move window to next or prev workspace in *the list* -

* If stdin is not TTY and stdin contains non whitespace characters then *the list* is taken from stdin
* Otherwise, *the list* is defined as all workspaces on focused monitor in alphabetical order

<workspace-name>:: Specifies workspace name where to move window to

// end::body[]
Expand Down