Skip to content

Commit e0fcf2b

Browse files
authored
fix: simlayer forcing key up (#92)
resolve #91
1 parent 8c8bbfb commit e0fcf2b

File tree

5 files changed

+105
-105
lines changed

5 files changed

+105
-105
lines changed

resources/configurations/generated_edn/launch_mode.edn

+42-42
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
{:type "basic",
1919
:parameters {:basic.simultaneous_threshold_milliseconds 250},
2020
:to
21-
[{:shell_command
22-
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchAlacritty\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}
23-
{:set_variable {:name "launch-mode", :value 1}}],
21+
[{:set_variable {:name "launch-mode", :value 1}}
22+
{:shell_command
23+
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchAlacritty\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}],
2424
:from
2525
{:simultaneous [{:key_code "w"} {:key_code "j"}],
2626
:simultaneous_options
@@ -40,9 +40,9 @@
4040
{:type "basic",
4141
:parameters {:basic.simultaneous_threshold_milliseconds 250},
4242
:to
43-
[{:shell_command
44-
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchEmacs\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}
45-
{:set_variable {:name "launch-mode", :value 1}}],
43+
[{:set_variable {:name "launch-mode", :value 1}}
44+
{:shell_command
45+
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchEmacs\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}],
4646
:from
4747
{:simultaneous [{:key_code "w"} {:key_code "k"}],
4848
:simultaneous_options
@@ -62,9 +62,9 @@
6262
{:type "basic",
6363
:parameters {:basic.simultaneous_threshold_milliseconds 250},
6464
:to
65-
[{:shell_command
66-
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchChrome\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}
67-
{:set_variable {:name "launch-mode", :value 1}}],
65+
[{:set_variable {:name "launch-mode", :value 1}}
66+
{:shell_command
67+
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchChrome\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}],
6868
:from
6969
{:simultaneous [{:key_code "w"} {:key_code "l"}],
7070
:simultaneous_options
@@ -84,9 +84,9 @@
8484
{:type "basic",
8585
:parameters {:basic.simultaneous_threshold_milliseconds 250},
8686
:to
87-
[{:shell_command
88-
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchMail\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}
89-
{:set_variable {:name "launch-mode", :value 1}}],
87+
[{:set_variable {:name "launch-mode", :value 1}}
88+
{:shell_command
89+
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchMail\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}],
9090
:from
9191
{:simultaneous [{:key_code "w"} {:key_code "m"}],
9292
:simultaneous_options
@@ -106,9 +106,9 @@
106106
{:type "basic",
107107
:parameters {:basic.simultaneous_threshold_milliseconds 250},
108108
:to
109-
[{:shell_command
110-
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchWeChat\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}
111-
{:set_variable {:name "launch-mode", :value 1}}],
109+
[{:set_variable {:name "launch-mode", :value 1}}
110+
{:shell_command
111+
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchWeChat\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}],
112112
:from
113113
{:simultaneous [{:key_code "w"} {:key_code "v"}],
114114
:simultaneous_options
@@ -128,9 +128,9 @@
128128
{:type "basic",
129129
:parameters {:basic.simultaneous_threshold_milliseconds 250},
130130
:to
131-
[{:shell_command
132-
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchKE\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}
133-
{:set_variable {:name "launch-mode", :value 1}}],
131+
[{:set_variable {:name "launch-mode", :value 1}}
132+
{:shell_command
133+
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchKE\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}],
134134
:from
135135
{:simultaneous [{:key_code "w"} {:key_code "q"}],
136136
:simultaneous_options
@@ -150,9 +150,9 @@
150150
{:type "basic",
151151
:parameters {:basic.simultaneous_threshold_milliseconds 250},
152152
:to
153-
[{:shell_command
154-
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchPDFExpert\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}
155-
{:set_variable {:name "launch-mode", :value 1}}],
153+
[{:set_variable {:name "launch-mode", :value 1}}
154+
{:shell_command
155+
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchPDFExpert\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}],
156156
:from
157157
{:simultaneous [{:key_code "w"} {:key_code "9"}],
158158
:simultaneous_options
@@ -182,9 +182,9 @@
182182
{:type "basic",
183183
:parameters {:basic.simultaneous_threshold_milliseconds 250},
184184
:to
185-
[{:shell_command
186-
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchSafari\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}
187-
{:set_variable {:name "launch-mode", :value 1}}],
185+
[{:set_variable {:name "launch-mode", :value 1}}
186+
{:shell_command
187+
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchSafari\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}],
188188
:from
189189
{:simultaneous [{:key_code "w"} {:key_code "comma"}],
190190
:simultaneous_options
@@ -204,9 +204,9 @@
204204
{:type "basic",
205205
:parameters {:basic.simultaneous_threshold_milliseconds 250},
206206
:to
207-
[{:shell_command
208-
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchPaw\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}
209-
{:set_variable {:name "launch-mode", :value 1}}],
207+
[{:set_variable {:name "launch-mode", :value 1}}
208+
{:shell_command
209+
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchPaw\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}],
210210
:from
211211
{:simultaneous [{:key_code "w"} {:key_code "period"}],
212212
:simultaneous_options
@@ -226,9 +226,9 @@
226226
{:type "basic",
227227
:parameters {:basic.simultaneous_threshold_milliseconds 250},
228228
:to
229-
[{:shell_command
230-
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchTextual\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}
231-
{:set_variable {:name "launch-mode", :value 1}}],
229+
[{:set_variable {:name "launch-mode", :value 1}}
230+
{:shell_command
231+
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchTextual\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}],
232232
:from
233233
{:simultaneous [{:key_code "w"} {:key_code "equal_sign"}],
234234
:simultaneous_options
@@ -248,9 +248,9 @@
248248
{:type "basic",
249249
:parameters {:basic.simultaneous_threshold_milliseconds 250},
250250
:to
251-
[{:shell_command
252-
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchKEEvents\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}
253-
{:set_variable {:name "launch-mode", :value 1}}],
251+
[{:set_variable {:name "launch-mode", :value 1}}
252+
{:shell_command
253+
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchKEEvents\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}],
254254
:from
255255
{:simultaneous [{:key_code "w"} {:key_code "8"}],
256256
:simultaneous_options
@@ -270,9 +270,9 @@
270270
{:type "basic",
271271
:parameters {:basic.simultaneous_threshold_milliseconds 250},
272272
:to
273-
[{:shell_command
274-
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launch\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}
275-
{:set_variable {:name "launch-mode", :value 1}}],
273+
[{:set_variable {:name "launch-mode", :value 1}}
274+
{:shell_command
275+
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launch\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}],
276276
:from
277277
{:simultaneous [{:key_code "w"} {:key_code "j"}],
278278
:simultaneous_options
@@ -292,9 +292,9 @@
292292
{:type "basic",
293293
:parameters {:basic.simultaneous_threshold_milliseconds 250},
294294
:to
295-
[{:shell_command
296-
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchBearyChat\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}
297-
{:set_variable {:name "launch-mode", :value 1}}],
295+
[{:set_variable {:name "launch-mode", :value 1}}
296+
{:shell_command
297+
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchBearyChat\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}],
298298
:from
299299
{:simultaneous [{:key_code "w"} {:key_code "b"}],
300300
:simultaneous_options
@@ -314,9 +314,9 @@
314314
{:type "basic",
315315
:parameters {:basic.simultaneous_threshold_milliseconds 250},
316316
:to
317-
[{:shell_command
318-
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchTG\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}
319-
{:set_variable {:name "launch-mode", :value 1}}],
317+
[{:set_variable {:name "launch-mode", :value 1}}
318+
{:shell_command
319+
"osascript -e 'tell application \"Alfred 3\" to run trigger \"launchTG\" in workflow \"yqrashawn.workflow.launcher\" with argument \"\"'"}],
320320
:from
321321
{:simultaneous [{:key_code "w"} {:key_code "t"}],
322322
:simultaneous_options

resources/configurations/generated_edn/vi_mode.edn

+41-41
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
{:type "basic",
1717
:parameters {:basic.simultaneous_threshold_milliseconds 250},
1818
:to
19-
[{:key_code "down_arrow"}
20-
{:set_variable {:name "vi-mode", :value 1}}],
19+
[{:set_variable {:name "vi-mode", :value 1}}
20+
{:key_code "down_arrow"}],
2121
:from
2222
{:simultaneous [{:key_code "d"} {:key_code "j"}],
2323
:simultaneous_options
@@ -34,8 +34,8 @@
3434
{:type "basic",
3535
:parameters {:basic.simultaneous_threshold_milliseconds 250},
3636
:to
37-
[{:key_code "up_arrow"}
38-
{:set_variable {:name "vi-mode", :value 1}}],
37+
[{:set_variable {:name "vi-mode", :value 1}}
38+
{:key_code "up_arrow"}],
3939
:from
4040
{:simultaneous [{:key_code "d"} {:key_code "k"}],
4141
:simultaneous_options
@@ -52,8 +52,8 @@
5252
{:type "basic",
5353
:parameters {:basic.simultaneous_threshold_milliseconds 250},
5454
:to
55-
[{:key_code "left_arrow"}
56-
{:set_variable {:name "vi-mode", :value 1}}],
55+
[{:set_variable {:name "vi-mode", :value 1}}
56+
{:key_code "left_arrow"}],
5757
:from
5858
{:simultaneous [{:key_code "d"} {:key_code "h"}],
5959
:simultaneous_options
@@ -70,8 +70,8 @@
7070
{:type "basic",
7171
:parameters {:basic.simultaneous_threshold_milliseconds 250},
7272
:to
73-
[{:key_code "right_arrow"}
74-
{:set_variable {:name "vi-mode", :value 1}}],
73+
[{:set_variable {:name "vi-mode", :value 1}}
74+
{:key_code "right_arrow"}],
7575
:from
7676
{:simultaneous [{:key_code "d"} {:key_code "l"}],
7777
:simultaneous_options
@@ -88,8 +88,8 @@
8888
{:type "basic",
8989
:parameters {:basic.simultaneous_threshold_milliseconds 250},
9090
:to
91-
[{:key_code "left_arrow", :modifiers ["left_option"]}
92-
{:set_variable {:name "vi-mode", :value 1}}],
91+
[{:set_variable {:name "vi-mode", :value 1}}
92+
{:key_code "left_arrow", :modifiers ["left_option"]}],
9393
:from
9494
{:simultaneous [{:key_code "d"} {:key_code "b"}],
9595
:simultaneous_options
@@ -106,8 +106,8 @@
106106
{:type "basic",
107107
:parameters {:basic.simultaneous_threshold_milliseconds 250},
108108
:to
109-
[{:key_code "right_arrow", :modifiers ["left_option"]}
110-
{:set_variable {:name "vi-mode", :value 1}}],
109+
[{:set_variable {:name "vi-mode", :value 1}}
110+
{:key_code "right_arrow", :modifiers ["left_option"]}],
111111
:from
112112
{:simultaneous [{:key_code "d"} {:key_code "w"}],
113113
:simultaneous_options
@@ -124,8 +124,8 @@
124124
{:type "basic",
125125
:parameters {:basic.simultaneous_threshold_milliseconds 250},
126126
:to
127-
[{:key_code "a", :modifiers ["left_control"]}
128-
{:set_variable {:name "vi-mode", :value 1}}],
127+
[{:set_variable {:name "vi-mode", :value 1}}
128+
{:key_code "a", :modifiers ["left_control"]}],
129129
:from
130130
{:simultaneous [{:key_code "d"} {:key_code "0"}],
131131
:simultaneous_options
@@ -142,8 +142,8 @@
142142
{:type "basic",
143143
:parameters {:basic.simultaneous_threshold_milliseconds 250},
144144
:to
145-
[{:key_code "e", :modifiers ["left_control"]}
146-
{:set_variable {:name "vi-mode", :value 1}}],
145+
[{:set_variable {:name "vi-mode", :value 1}}
146+
{:key_code "e", :modifiers ["left_control"]}],
147147
:from
148148
{:simultaneous [{:key_code "d"} {:key_code "4"}],
149149
:simultaneous_options
@@ -163,8 +163,8 @@
163163
{:type "basic",
164164
:parameters {:basic.simultaneous_threshold_milliseconds 250},
165165
:to
166-
[{:key_code "down_arrow", :modifiers ["left_shift"]}
167-
{:set_variable {:name "vi-visual-mode", :value 1}}],
166+
[{:set_variable {:name "vi-visual-mode", :value 1}}
167+
{:key_code "down_arrow", :modifiers ["left_shift"]}],
168168
:from
169169
{:simultaneous [{:key_code "v"} {:key_code "j"}],
170170
:simultaneous_options
@@ -193,8 +193,8 @@
193193
{:type "basic",
194194
:parameters {:basic.simultaneous_threshold_milliseconds 250},
195195
:to
196-
[{:key_code "up_arrow", :modifiers ["left_shift"]}
197-
{:set_variable {:name "vi-visual-mode", :value 1}}],
196+
[{:set_variable {:name "vi-visual-mode", :value 1}}
197+
{:key_code "up_arrow", :modifiers ["left_shift"]}],
198198
:from
199199
{:simultaneous [{:key_code "v"} {:key_code "k"}],
200200
:simultaneous_options
@@ -223,8 +223,8 @@
223223
{:type "basic",
224224
:parameters {:basic.simultaneous_threshold_milliseconds 250},
225225
:to
226-
[{:key_code "left_arrow", :modifiers ["left_shift"]}
227-
{:set_variable {:name "vi-visual-mode", :value 1}}],
226+
[{:set_variable {:name "vi-visual-mode", :value 1}}
227+
{:key_code "left_arrow", :modifiers ["left_shift"]}],
228228
:from
229229
{:simultaneous [{:key_code "v"} {:key_code "h"}],
230230
:simultaneous_options
@@ -253,8 +253,8 @@
253253
{:type "basic",
254254
:parameters {:basic.simultaneous_threshold_milliseconds 250},
255255
:to
256-
[{:key_code "right_arrow", :modifiers ["left_shift"]}
257-
{:set_variable {:name "vi-visual-mode", :value 1}}],
256+
[{:set_variable {:name "vi-visual-mode", :value 1}}
257+
{:key_code "right_arrow", :modifiers ["left_shift"]}],
258258
:from
259259
{:simultaneous [{:key_code "v"} {:key_code "l"}],
260260
:simultaneous_options
@@ -285,9 +285,9 @@
285285
{:type "basic",
286286
:parameters {:basic.simultaneous_threshold_milliseconds 250},
287287
:to
288-
[{:key_code "left_arrow",
289-
:modifiers ["left_option" "left_shift"]}
290-
{:set_variable {:name "vi-visual-mode", :value 1}}],
288+
[{:set_variable {:name "vi-visual-mode", :value 1}}
289+
{:key_code "left_arrow",
290+
:modifiers ["left_option" "left_shift"]}],
291291
:from
292292
{:simultaneous [{:key_code "v"} {:key_code "b"}],
293293
:simultaneous_options
@@ -318,9 +318,9 @@
318318
{:type "basic",
319319
:parameters {:basic.simultaneous_threshold_milliseconds 250},
320320
:to
321-
[{:key_code "right_arrow",
322-
:modifiers ["left_option" "left_shift"]}
323-
{:set_variable {:name "vi-visual-mode", :value 1}}],
321+
[{:set_variable {:name "vi-visual-mode", :value 1}}
322+
{:key_code "right_arrow",
323+
:modifiers ["left_option" "left_shift"]}],
324324
:from
325325
{:simultaneous [{:key_code "v"} {:key_code "w"}],
326326
:simultaneous_options
@@ -351,9 +351,9 @@
351351
{:type "basic",
352352
:parameters {:basic.simultaneous_threshold_milliseconds 250},
353353
:to
354-
[{:key_code "left_arrow",
355-
:modifiers ["left_command" "left_shift"]}
356-
{:set_variable {:name "vi-visual-mode", :value 1}}],
354+
[{:set_variable {:name "vi-visual-mode", :value 1}}
355+
{:key_code "left_arrow",
356+
:modifiers ["left_command" "left_shift"]}],
357357
:from
358358
{:simultaneous [{:key_code "v"} {:key_code "0"}],
359359
:simultaneous_options
@@ -384,9 +384,9 @@
384384
{:type "basic",
385385
:parameters {:basic.simultaneous_threshold_milliseconds 250},
386386
:to
387-
[{:key_code "right_arrow",
388-
:modifiers ["left_command" "left_shift"]}
389-
{:set_variable {:name "vi-visual-mode", :value 1}}],
387+
[{:set_variable {:name "vi-visual-mode", :value 1}}
388+
{:key_code "right_arrow",
389+
:modifiers ["left_command" "left_shift"]}],
390390
:from
391391
{:simultaneous [{:key_code "v"} {:key_code "4"}],
392392
:simultaneous_options
@@ -418,8 +418,8 @@
418418
{:type "basic",
419419
:parameters {:basic.simultaneous_threshold_milliseconds 250},
420420
:to
421-
[{:key_code "up_arrow", :modifiers ["left_option" "left_shift"]}
422-
{:set_variable {:name "vi-visual-mode", :value 1}}],
421+
[{:set_variable {:name "vi-visual-mode", :value 1}}
422+
{:key_code "up_arrow", :modifiers ["left_option" "left_shift"]}],
423423
:from
424424
{:simultaneous [{:key_code "v"} {:key_code "open_bracket"}],
425425
:simultaneous_options
@@ -451,9 +451,9 @@
451451
{:type "basic",
452452
:parameters {:basic.simultaneous_threshold_milliseconds 250},
453453
:to
454-
[{:key_code "down_arrow",
455-
:modifiers ["left_option" "left_shift"]}
456-
{:set_variable {:name "vi-visual-mode", :value 1}}],
454+
[{:set_variable {:name "vi-visual-mode", :value 1}}
455+
{:key_code "down_arrow",
456+
:modifiers ["left_option" "left_shift"]}],
457457
:from
458458
{:simultaneous [{:key_code "v"} {:key_code "close_bracket"}],
459459
:simultaneous_options

0 commit comments

Comments
 (0)