1- # NOTE: I've commented out a lot of subcommands that I want to enumerate, but look ugly on tab-complete
2- # TODO: figure out how to get subcommands and flags to show up in a way that feels normal with base extern
3-
41# AeroSpace is an i3-like tiling window manager for macOS
52export extern "aerospace" [
63 command ?:string
@@ -49,28 +46,11 @@ export extern "aerospace config" [
4946 -- config-path # Print absolute path to the loaded config
5047]
5148
52- # export extern "aerospace config --major-keys" [
53- # --help(-h) # Print help
54- # ]
55- #
56- # export extern "aerospace config --all-keys" [
57- # --help(-h) # Print help
58- # ]
59- #
60- # export extern "aerospace config --config-path" [
61- # --help(-h) # Print help
62- # ]
63-
6449def "nu-complete aerospace-config-list-all-keys" [] {
6550 aerospace config -- all-keys
6651 | lines
6752}
6853
69- # export extern "aerospace config --get" [
70- # command:string@"nu-complete aerospace-config-list-all-keys"
71- # --json # Print result in JSON format
72- # --keys # Print keys of the complicated object (map or array)
73- # ]
7454
7555# Interactive command to record Accessibility API debug information to create bug reports
7656export extern "aerospace debug-windows" [
@@ -88,20 +68,6 @@ export extern "aerospace enable" [
8868 command :string @" nu-complete aerospace-enable"
8969]
9070
91- # export extern "aerospace enable toggle" [
92- # --help(-h) # Print help
93- # ]
94-
95- # export extern "aerospace enable on" [
96- # --help(-h) # Print help
97- # --fail-if-noop # Exit with non-zero exit code if already in the requested mode
98- # ]
99- #
100- # export extern "aerospace enable off" [
101- # --help(-h) # Print help
102- # --fail-if-noop # Exit with non-zero exit code if already in the requested mode
103- # ]
104- #
10571# Run /bin/bash -c '<bash-script>', and don’t wait for the command termination. Stdout, stderr and exit code are ignored.
10672export extern "aerospace exec-and-forget" [
10773 command :string
@@ -134,34 +100,6 @@ def "nu-complete aerospace-focus-boundaries-action" [] {
134100 [' stop' , ' wrap-around-the-workspace' , ' wrap-around-all-monitors' ]
135101}
136102
137- # export extern "aerospace focus left" [
138- # --help(-h) # Print help
139- # --ignore-floating #ignore floating windows
140- # --boundaries:string@"nu-complete aerospace-focus-boundaries" # Defines focus boundaries
141- # --boundaries-action:string@"nu-complete aerospace-focus-boundaries-action" # Defines the behavior when requested to cross the <boundary>.
142- # ]
143- #
144- # export extern "aerospace focus down" [
145- # --help(-h) # Print help
146- # --ignore-floating #ignore floating windows
147- # --boundaries:string@"nu-complete aerospace-focus-boundaries" # Defines focus boundaries
148- # --boundaries-action:string@"nu-complete aerospace-focus-boundaries-action" # Defines the behavior when requested to cross the <boundary>.
149- # ]
150- #
151- # export extern "aerospace focus up" [
152- # --help(-h) # Print help
153- # --ignore-floating #ignore floating windows
154- # --boundaries:string@"nu-complete aerospace-focus-boundaries" # Defines focus boundaries
155- # --boundaries-action:string@"nu-complete aerospace-focus-boundaries-action" # Defines the behavior when requested to cross the <boundary>.
156- # ]
157- #
158- # export extern "aerospace focus right" [
159- # --help(-h) # Print help
160- # --ignore-floating #ignore floating windows
161- # --boundaries:string@"nu-complete aerospace-focus-boundaries" # Defines focus boundaries
162- # --boundaries-action:string@"nu-complete aerospace-focus-boundaries-action" # Defines the behavior when requested to cross the <boundary>.
163- # ]
164- #
165103# Switch between the current and previously foxused elements back and forth. The element is either a window or an empty workspace
166104export extern "aerospace focus-back-and-forth" [
167105 -- help(-h) # Print help
@@ -201,35 +139,6 @@ export extern "aerospace focus-monitor" [
201139 command :string @" nu-complete aerospace-focus-monitor"
202140]
203141
204- # export extern "aerospace focus-monitor left" [
205- # --help(-h) # Print help
206- # --wrap-around # Make it possible to wrap around focus
207- # ]
208- #
209- # export extern "aerospace focus-monitor down" [
210- # --help(-h) # Print help
211- # --wrap-around # Make it possible to wrap around focus
212- # ]
213- #
214- # export extern "aerospace focus-monitor up" [
215- # --help(-h) # Print help
216- # --wrap-around # Make it possible to wrap around focus
217- # ]
218- #
219- # export extern "aerospace focus-monitor right" [
220- # --help(-h) # Print help
221- # --wrap-around # Make it possible to wrap around focus
222- # ]
223- #
224- # export extern "aerospace focus-monitor next" [
225- # --help(-h) # Print help
226- # --wrap-around # Make it possible to wrap around focus
227- # ]
228- #
229- # export extern "aerospace focus-monitor prev" [
230- # --help(-h) # Print help
231- # --wrap-around # Make it possible to wrap around focus
232- # ]
233142
234143def "nu-complete aerospace-fullscreen" [] {
235144 [
@@ -246,19 +155,6 @@ export extern "aerospace fullscreen" [
246155 command ?:string @" nu-complete aerospace-fullscreen"
247156]
248157
249- # export extern "aerospace fullscreen on" [
250- # --help(-h) # Print help
251- # --no-outer-gaps # Remove the outer gaps when in fullscreen mode
252- # --window-id:int@"nu-complete aerospace-list-all-windows" # Act on the specified window instead of the focues window
253- # --fail-if-noop # Exit with non-zero exit code if already fullscreen
254- # ]
255- #
256- # export extern "aerospace fullscreen off" [
257- # --help(-h) # Print help
258- # --no-outer-gaps # Remove the outer gaps when in fullscreen mode
259- # --window-id:int@"nu-complete aerospace-list-all-windows" # Act on the specified window instead of the focues window
260- # --fail-if-noop # Exit with non-zero exit code if already not fullscreen
261- # ]
262158
263159def "nu-complete aerospace-join-with" [] {
264160 [
@@ -388,18 +284,6 @@ export extern "aerospace macos-native-fullscreen" [
388284 command ?:string @" nu-complete aerospace-macos-native-fullscreen"
389285]
390286
391- # export extern "aerospace macos-native-fullscreen on" [
392- # --help(-h) # Print help
393- # --window-id:int@"nu-complete aerospace-list-all-windows" # Act on the specified window instead of the focused window
394- # --fail-if-noop # Exit with non-zero exit code if already fullscreen
395- # ]
396- #
397- # export extern "aerospace macos-native-fullscreen off" [
398- # --help(-h) # Print help
399- # --window-id:int@"nu-complete aerospace-list-all-windows" # Act on the specified window instead of the focused window
400- # --fail-if-noop # Exit with non-zero exit code if already not fullscreen
401- # ]
402-
403287# Minimize focused window
404288export extern "aerospace macos-native-minimize" [
405289 -- help(-h) # Print help
@@ -448,27 +332,6 @@ export extern "aerospace move-mouse" [
448332 command :string @" nu-complete aerospace-move-mouse"
449333]
450334
451- # export extern "aerospace move-mouse window-lazy-center" [
452- # --help(-h) # Print help
453- # --fail-if-noop # Exit with non-zero exit code if mouse is already at the requested position.
454- # ]
455- #
456- # export extern "aerospace move-mouse monitor-lazy-center" [
457- # --help(-h) # Print help
458- # --fail-if-noop # Exit with non-zero exit code if mouse is already at the requested position.
459- # ]
460-
461- # def "nu-complete aerospace-move-node-to-monitor" [] {
462- # [
463- # "left,
464- # "down"
465- # "up",
466- # "right",
467- # "next",
468- # "prev",
469- # ]
470- # }
471-
472335# Move window to monitor targeted by relative direction, by order, or by pattern
473336export extern "aerospace move-node-to-monitor" [
474337 -- help(-h) # Print help
@@ -569,11 +432,6 @@ def "nu-complete aerospace-volume-set" [] {
569432 0 .. 100
570433}
571434
572- # export extern "aerospace volume set" [
573- # --help(-h) # Print help
574- # command:int@"nu-complete aerospace-volume-set"
575- # ]
576-
577435# Focus the specified workspace OR focuses next or previous workspace in the list
578436export extern "aerospace workspace" [
579437 -- help(-h) # Print help
0 commit comments