forked from gnachman/iTerm2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiTerm2.sdef
341 lines (297 loc) · 12.9 KB
/
iTerm2.sdef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">
<dictionary title="iTerm2 Terminology">
<suite name="Standard Suite" code="????" description="Common classes and commands for all applications.">
<command name="count" code="corecnte" description="Return the number of elements of a particular class within an object.">
<cocoa class="NSCountCommand"/>
<direct-parameter type="specifier" description="The objects to be counted."/>
<parameter name="each" code="kocl" type="type" optional="yes" description="The class of objects to be counted." hidden="yes">
<cocoa key="ObjectClass"/>
</parameter>
<result type="integer" description="The count."/>
</command>
</suite>
<suite name="iTerm2 Suite" code="Itrm" description="Classes just for the iTerm2 application.">
<command name="close" code="coreclos" description="Close a document.">
<cocoa class="NSCloseCommand"/>
<direct-parameter type="specifier"
description="the session, tab, or window to close."/>
</command>
<command name="create tab" code="Itrmntwp"
description="Create a new tab">
<direct-parameter type="specifier"
description="the session, tab, or window to close."/>
<parameter name="with profile" code="Ntwp" type="text"
description="The profile name">
<cocoa key="profile" />
</parameter>
<parameter name="command" code="Nwcm" type="text" optional="yes"
description="Shell command to run">
<cocoa key="command"/>
</parameter>
</command>
<command name="create tab with default profile" code="Itrmntwn"
description="Create a new tab with the default profile">
<direct-parameter type="specifier"
description="The window in which to create a new tab"/>
<parameter name="command" code="Nwcm" type="text" optional="yes"
description="Shell command to run">
<cocoa key="command"/>
</parameter>
</command>
<command name="create window with profile" code="Itrmnwwp"
description="Create a new window">
<cocoa class="iTermNewWindowCommand" />
<direct-parameter description="The profile name">
<type type="text"/>
</direct-parameter>
<parameter name="command" code="Nwcm" type="text" optional="yes"
description="Shell command to run">
<cocoa key="command"/>
</parameter>
</command>
<command name="create window with default profile" code="Itrmnwwn"
description="Create a new window with the default profile">
<cocoa class="iTermNewWindowCommand" />
<parameter name="command" code="Nwcm" type="text" optional="yes"
description="Shell command to run">
<cocoa key="command"/>
</parameter>
</command>
<command name="write" code="Itrmsntx"
description="Send text as though it was typed.">
<direct-parameter type="specifier" description="The session to send to"/>
<parameter name="contents of file" code="Cofl" type="file"
description="Filename to send the contents of" optional="yes">
<cocoa key="contentsOfFile"/>
</parameter>
<parameter name="text" code="Text" type="text"
description="Text to send" optional="yes">
<cocoa key="text"/>
</parameter>
</command>
<command name="select" code="Itrmslct"
description="Make receiver visible and selected.">
<direct-parameter type="specifier" description="The object to send to"/>
</command>
<command name="split vertically" code="Itrmsplv"
description="Split a session vertically.">
<direct-parameter type="specifier" description="The object to send to"/>
<parameter name="with profile" code="Prfl" type="text"
description="Name of profile for new session.">
<cocoa key="profile" />
</parameter>
</command>
<command name="split vertically with default profile" code="Itrmsvdp"
description="Split a session vertically, using the default profile for the new session">
<direct-parameter type="specifier" description="The object to send to"/>
</command>
<command name="split vertically with same profile" code="Itrmsvsp"
description="Split a session vertically, using the original session's profile for the new session">
<direct-parameter type="specifier" description="The object to send to"/>
</command>
<command name="split horizontally" code="Itrmsplh"
description="Split a session horizontally.">
<direct-parameter type="specifier" description="The object to send to"/>
<parameter name="with profile" code="Prfl" type="text"
description="Name of profile for new session.">
<cocoa key="profile" />
</parameter>
</command>
<command name="split horizontally with default profile" code="Itrmshdp"
description="Split a session horizontally, using the default profile for the new session">
<direct-parameter type="specifier" description="The object to send to"/>
</command>
<command name="split horizontally with same profile" code="Itrmshsp"
description="Split a session horizontally, using the original session's profile for the new session">
<direct-parameter type="specifier" description="The object to send to"/>
</command>
<value-type name="RGB color" code="cRGB">
<cocoa class="NSColor"/>
</value-type>
<class name="application" code="capp"
description="The application's top-level scripting object.">
<cocoa class="iTermApplication"/>
<element type="terminal window" access="r">
<cocoa key="terminalWindows"/>
</element>
<property name="current window" code="Crwn" type="terminal window"
description="The frontmost window">
<cocoa key="currentWindow" />
</property>
</class>
<class name="terminal window" code="Trmw" description="A terminal window">
<cocoa class="PseudoTerminal"/>
<responds-to command="close">
<cocoa method="handleCloseCommand:"/>
</responds-to>
<responds-to command="select">
<cocoa method="handleSelectCommand:"/>
</responds-to>
<responds-to command="create tab with default profile">
<cocoa method="handleCreateTabWithDefaultProfileCommand:" />
</responds-to>
<responds-to command="create tab">
<cocoa method="handleCreateTabCommand:" />
</responds-to>
<element type="tab" access="r">
<cocoa key="tabs"/>
</element>
<property name="current tab" code="Crtb" type="tab"
description="The currently selected tab">
<cocoa key="currentTab" />
</property>
<property name="current session" code="Wcsn" type="session"
description="The current session in a window">
<cocoa key="currentSession" />
</property>
</class>
<class name="tab" code="Trmt" description="A terminal tab">
<cocoa class="PTYTab"/>
<element type="session" access="r">
<cocoa key="sessions"/>
</element>
<responds-to command="close">
<cocoa method="handleCloseCommand:"/>
</responds-to>
<responds-to command="select">
<cocoa method="handleSelectCommand:"/>
</responds-to>
<property name="current session" code="Wcsn" type="session"
description="The current session in a tab">
<cocoa key="currentSession" />
</property>
<property name="index" code="Indx" type="integer"
description="Index of tab in parent tab view control">
<cocoa key="indexOfTab" />
</property>
</class>
<class name="session" code="Trms" description="A terminal session">
<cocoa class="PTYSession"/>
<responds-to command="close">
<cocoa method="handleCloseCommand:"/>
</responds-to>
<responds-to command="write">
<cocoa method="handleWriteScriptCommand:"/>
</responds-to>
<responds-to command="select">
<cocoa method="handleSelectCommand:"/>
</responds-to>
<responds-to command="split vertically">
<cocoa method="handleSplitVertically:" />
</responds-to>
<responds-to command="split vertically with default profile">
<cocoa method="handleSplitVerticallyWithDefaultProfile:" />
</responds-to>
<responds-to command="split vertically with same profile">
<cocoa method="handleSplitVerticallyWithSameProfile:" />
</responds-to>
<responds-to command="split horizontally">
<cocoa method="handleSplitHorizontally:" />
</responds-to>
<responds-to command="split horizontally with default profile">
<cocoa method="handleSplitHorizontallyWithDefaultProfile:" />
</responds-to>
<responds-to command="split horizontally with same profile">
<cocoa method="handleSplitHorizontallyWithSameProfile:" />
</responds-to>
<property name="is processing" code="Prcs" type="boolean"
description="The session has received output recently.">
<cocoa key="isProcessing" />
</property>
<property name="columns" code="Cols" type="integer">
<cocoa key="columns" />
</property>
<property name="rows" code="Rows" type="integer">
<cocoa key="rows" />
</property>
<property name="tty" code="Stty" type="text" access="r">
<cocoa key="tty" />
</property>
<property name="contents" code="Cntt" type="text">
<cocoa key="contents" />
</property>
<property name="background color" code="Co00" type="RGB color">
<cocoa key="backgroundColor" />
</property>
<property name="bold color" code="Co01" type="RGB color">
<cocoa key="boldColor" />
</property>
<property name="cursor color" code="Co02" type="RGB color">
<cocoa key="cursorColor" />
</property>
<property name="cursor text color" code="Co03" type="RGB color">
<cocoa key="cursorTextColor" />
</property>
<property name="foreground color" code="Co04" type="RGB color">
<cocoa key="foregroundColor" />
</property>
<property name="selected text color" code="Co05" type="RGB color">
<cocoa key="selectedTextColor" />
</property>
<property name="selection color" code="Co06" type="RGB color">
<cocoa key="selectionColor" />
</property>
<property name="ANSI black color" code="Co07" type="RGB color">
<cocoa key="ansiBlackColor" />
</property>
<property name="ANSI red color" code="Co08" type="RGB color">
<cocoa key="ansiRedColor" />
</property>
<property name="ANSI green color" code="Co09" type="RGB color">
<cocoa key="ansiGreenColor" />
</property>
<property name="ANSI yellow color" code="Co10" type="RGB color">
<cocoa key="ansiYellowColor" />
</property>
<property name="ANSI blue color" code="Co11" type="RGB color">
<cocoa key="ansiBlueColor" />
</property>
<property name="ANSI magenta color" code="Co12" type="RGB color">
<cocoa key="ansiMagentaColor" />
</property>
<property name="ANSI cyan color" code="Co13" type="RGB color">
<cocoa key="ansiCyanColor" />
</property>
<property name="ANSI white color" code="Co14" type="RGB color">
<cocoa key="ansiWhiteColor" />
</property>
<property name="ANSI bright black color" code="Co15" type="RGB color">
<cocoa key="ansiBrightBlackColor" />
</property>
<property name="ANSI bright red color" code="Co16" type="RGB color">
<cocoa key="ansiBrightRedColor" />
</property>
<property name="ANSI bright green color" code="Co17" type="RGB color">
<cocoa key="ansiBrightGreenColor" />
</property>
<property name="ANSI bright yellow color" code="Co18" type="RGB color">
<cocoa key="ansiBrightYellowColor" />
</property>
<property name="ANSI bright blue color" code="Co19" type="RGB color">
<cocoa key="ansiBrightBlueColor" />
</property>
<property name="ANSI bright magenta color" code="Co20" type="RGB color">
<cocoa key="ansiBrightMagentaColor" />
</property>
<property name="ANSI bright cyan color" code="Co21" type="RGB color">
<cocoa key="ansiBrightCyanColor" />
</property>
<property name="ANSI bright white color" code="Co22" type="RGB color">
<cocoa key="ansiBrightWhiteColor" />
</property>
<property name="background image" code="Bgim" type="text">
<cocoa key="backgroundImagePath" />
</property>
<property name="name" code="Name" type="text">
<cocoa key="name" />
</property>
<property name="transparency" code="Trns" type="real">
<cocoa key="transparency" />
</property>
<property name="unique ID" code="Uniq" type="text" access="r">
<cocoa key="uniqueID" />
</property>
</class>
</suite>
</dictionary>