Skip to content

Commit 49ef6d1

Browse files
committed
move non-optimal externs to another file
1 parent 83ed89f commit 49ef6d1

File tree

3 files changed

+163
-142
lines changed

3 files changed

+163
-142
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# AeroSpace
2+
3+
AeroSpace is an i3-like tiling window manager for macOS
4+
5+
6+
## Current status
7+
8+
All basic commands are expressed with descriptions, as are most flags.
9+
Most command arguments have completions, but are not fully documented.
10+
11+
Completions that have yet to be added but are written are in the other file

custom-completions/aerospace/aerospace-completions.nu

Lines changed: 0 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
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
52
export 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-
6449
def "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
7656
export 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.
10672
export 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
166104
export 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

234143
def "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

263159
def "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
404288
export 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
473336
export 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
578436
export extern "aerospace workspace" [
579437
--help(-h) # Print help
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
# TODO: figure out how to get subcommands and flags to show up in a way that feels normal with base extern
2+
# currently, they show up in the completion list and clog up the results
3+
4+
5+
export extern "aerospace config --major-keys" [
6+
--help(-h) # Print help
7+
]
8+
9+
export extern "aerospace config --all-keys" [
10+
--help(-h) # Print help
11+
]
12+
13+
export extern "aerospace config --config-path" [
14+
--help(-h) # Print help
15+
]
16+
17+
export extern "aerospace config --get" [
18+
command:string@"nu-complete aerospace-config-list-all-keys"
19+
--json # Print result in JSON format
20+
--keys # Print keys of the complicated object (map or array)
21+
]
22+
23+
24+
export extern "aerospace enable toggle" [
25+
--help(-h) # Print help
26+
]
27+
28+
export extern "aerospace enable on" [
29+
--help(-h) # Print help
30+
--fail-if-noop # Exit with non-zero exit code if already in the requested mode
31+
]
32+
33+
export extern "aerospace enable off" [
34+
--help(-h) # Print help
35+
--fail-if-noop # Exit with non-zero exit code if already in the requested mode
36+
]
37+
38+
39+
40+
export extern "aerospace focus left" [
41+
--help(-h) # Print help
42+
--ignore-floating #ignore floating windows
43+
--boundaries:string@"nu-complete aerospace-focus-boundaries" # Defines focus boundaries
44+
--boundaries-action:string@"nu-complete aerospace-focus-boundaries-action" # Defines the behavior when requested to cross the <boundary>.
45+
]
46+
47+
export extern "aerospace focus down" [
48+
--help(-h) # Print help
49+
--ignore-floating #ignore floating windows
50+
--boundaries:string@"nu-complete aerospace-focus-boundaries" # Defines focus boundaries
51+
--boundaries-action:string@"nu-complete aerospace-focus-boundaries-action" # Defines the behavior when requested to cross the <boundary>.
52+
]
53+
54+
export extern "aerospace focus up" [
55+
--help(-h) # Print help
56+
--ignore-floating #ignore floating windows
57+
--boundaries:string@"nu-complete aerospace-focus-boundaries" # Defines focus boundaries
58+
--boundaries-action:string@"nu-complete aerospace-focus-boundaries-action" # Defines the behavior when requested to cross the <boundary>.
59+
]
60+
61+
export extern "aerospace focus right" [
62+
--help(-h) # Print help
63+
--ignore-floating #ignore floating windows
64+
--boundaries:string@"nu-complete aerospace-focus-boundaries" # Defines focus boundaries
65+
--boundaries-action:string@"nu-complete aerospace-focus-boundaries-action" # Defines the behavior when requested to cross the <boundary>.
66+
]
67+
68+
69+
export extern "aerospace focus-monitor left" [
70+
--help(-h) # Print help
71+
--wrap-around # Make it possible to wrap around focus
72+
]
73+
74+
export extern "aerospace focus-monitor down" [
75+
--help(-h) # Print help
76+
--wrap-around # Make it possible to wrap around focus
77+
]
78+
79+
export extern "aerospace focus-monitor up" [
80+
--help(-h) # Print help
81+
--wrap-around # Make it possible to wrap around focus
82+
]
83+
84+
export extern "aerospace focus-monitor right" [
85+
--help(-h) # Print help
86+
--wrap-around # Make it possible to wrap around focus
87+
]
88+
89+
export extern "aerospace focus-monitor next" [
90+
--help(-h) # Print help
91+
--wrap-around # Make it possible to wrap around focus
92+
]
93+
94+
export extern "aerospace focus-monitor prev" [
95+
--help(-h) # Print help
96+
--wrap-around # Make it possible to wrap around focus
97+
]
98+
99+
export extern "aerospace fullscreen on" [
100+
--help(-h) # Print help
101+
--no-outer-gaps # Remove the outer gaps when in fullscreen mode
102+
--window-id:int@"nu-complete aerospace-list-all-windows" # Act on the specified window instead of the focues window
103+
--fail-if-noop # Exit with non-zero exit code if already fullscreen
104+
]
105+
106+
export extern "aerospace fullscreen off" [
107+
--help(-h) # Print help
108+
--no-outer-gaps # Remove the outer gaps when in fullscreen mode
109+
--window-id:int@"nu-complete aerospace-list-all-windows" # Act on the specified window instead of the focues window
110+
--fail-if-noop # Exit with non-zero exit code if already not fullscreen
111+
]
112+
113+
114+
export extern "aerospace macos-native-fullscreen on" [
115+
--help(-h) # Print help
116+
--window-id:int@"nu-complete aerospace-list-all-windows" # Act on the specified window instead of the focused window
117+
--fail-if-noop # Exit with non-zero exit code if already fullscreen
118+
]
119+
120+
export extern "aerospace macos-native-fullscreen off" [
121+
--help(-h) # Print help
122+
--window-id:int@"nu-complete aerospace-list-all-windows" # Act on the specified window instead of the focused window
123+
--fail-if-noop # Exit with non-zero exit code if already not fullscreen
124+
]
125+
126+
127+
export extern "aerospace move-mouse window-lazy-center" [
128+
--help(-h) # Print help
129+
--fail-if-noop # Exit with non-zero exit code if mouse is already at the requested position.
130+
]
131+
132+
export extern "aerospace move-mouse monitor-lazy-center" [
133+
--help(-h) # Print help
134+
--fail-if-noop # Exit with non-zero exit code if mouse is already at the requested position.
135+
]
136+
137+
def "nu-complete aerospace-move-node-to-monitor" [] {
138+
[
139+
"left,
140+
"down"
141+
"up",
142+
"right",
143+
"next",
144+
"prev",
145+
]
146+
}
147+
148+
export extern "aerospace volume set" [
149+
--help(-h) # Print help
150+
command:int@"nu-complete aerospace-volume-set"
151+
]
152+

0 commit comments

Comments
 (0)