Skip to content

Commit 82c141e

Browse files
committed
continue developing aerospace completions
1 parent 23ac5af commit 82c141e

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

custom-completions/aerospace/aerospace-completions.nu

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,17 @@ export extern "aerospace layout" [
284284
command:string@"nu-complete aerospace-layout"
285285
]
286286

287-
# TODO: pick aback up from here
287+
def "nu-complete aerospace-output-format-apps" [] {
288+
# TODO: actually implement.
289+
}
290+
288291
export extern "aerospace list-apps" [
289292
--help(-h) # Print help
293+
--macos-native-hidden # Filter results to on ly print hidden applications. [no] inverts the condition
294+
--format:string # Specify output format. See "Output Format" section for more details. Incompatible with --count
295+
# --format:string@"nu-complete aerospace-output-format-apps" # Specify output format. See "Output Format" section for more details. Incompatible with --count
296+
--count # Output only the number of apps. Incompatible with --format, --json
297+
--json # Output in JSON format. Can be used in combination with --format to specify which data to include into the json. Incompatible with --count
290298
]
291299

292300
export extern "aerospace list-exec-env-vars" [
@@ -295,20 +303,57 @@ export extern "aerospace list-exec-env-vars" [
295303

296304
export extern "aerospace list-modes" [
297305
--help(-h) # Print help
306+
--current # only print the currently active mode
298307
]
299308

309+
def "nu-complete aerospace-output-format-monitors" [] {
310+
# TODO: actually implement.
311+
}
312+
300313
export extern "aerospace list-monitors" [
301314
--help(-h) # Print help
315+
--focused # Filter results to only print the focused monitor. [no] inverts the condition
316+
--mouse # Filter results to only print the monitor with the mouse. [no] inverts the condition
317+
--format:string # Specify output format. See "Output Format" section for more details. Incompatible with --count
318+
# --format:string@"nu-complete aerospace-output-format-monitors" # Specify output format. See "Output Format" section for more details. Incompatible with --count
319+
--count # Output only the number of workspaces. Incompatible with --format, --json
320+
--json # Output in JSON format. Can be used in combination with --format to specify which data to include into the json. Incompatible with --count
302321
]
303322

323+
def "nu-complete aerospace-output-format-windows" [] {
324+
# TODO: actually implement.
325+
}
326+
304327
export extern "aerospace list-windows" [
305328
--help(-h) # Print help
329+
--all # Alias for --monitor all. Use with caution. Check `man aerospace-list-windows` for more details.
330+
--focused # Print the focused window. Please note that it is possible for no window to be in focus. In that case, an error is reported.
331+
# TODO: create completions for these two
332+
--workspace #Filter results to print windows that belong to either of specified workspaces.
333+
--monitor #Filter results to print windows that belong to either of specified monitors.
334+
--pid #Filter results to only print windows that belong to the Application with specified <pid>
335+
--app-bundle-id #Filter results to only print windows that belong to the Application with specified Bundle ID
336+
--format:string # Specify output format. See "Output Format" section for more details. Incompatible with --count
337+
# --format:string@"nu-complete aerospace-output-format-windows" # Specify output format. See "Output Format" section for more details. Incompatible with --count
338+
--count # Output only the number of workspaces. Incompatible with --format, --json
339+
--json # Output in JSON format. Can be used in combination with --format to specify which data to include into the json. Incompatible with --count
306340
]
307341

308342
export extern "aerospace list-workspaces" [
309343
--help(-h) # Print help
344+
--all # Alias for --monitor all. Use with caution. Check `man aerospace-list-windows` for more details.
345+
--focused # Alias for --monitor focused --visible. Always prints a single workspace
346+
# TODO: create completion for --monitor
347+
--monitor # Filter results to print windows that belong to either of specified monitors.
348+
--visible # Filter results to only print currently visible workspaces. [no] inverts the condition. Several workspaces can be visible in multi-monitor setup
349+
--empty # Filter results to only print empty workspaces. [no] inverts the condition.
350+
--format:string # Specify output format. See "Output Format" section for more details. Incompatible with --count
351+
# --format:string@"nu-complete aerospace-output-format-windows" # Specify output format. See "Output Format" section for more details. Incompatible with --count
352+
--count # Output only the number of workspaces. Incompatible with --format, --json
353+
--json # Output in JSON format. Can be used in combination with --format to specify which data to include into the json. Incompatible with --count
310354
]
311355

356+
# TODO: resume here
312357
export extern "aerospace macos-native-fullscreen" [
313358
--help(-h) # Print help
314359
]

0 commit comments

Comments
 (0)