Skip to content

Commit b945734

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

File tree

6 files changed

+113
-106
lines changed

6 files changed

+113
-106
lines changed

CHANGELOG.org

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@ All notable changes to this project will be documented in this file. This change
33

44
** Unreleased
55

6-
[Unreleased Commits]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.3.2...HEAD
6+
[Unreleased Commits]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.3.3...HEAD
7+
8+
** 0.3.3 - 2020-11-03
9+
*** Fixed
10+
`simlayer` generate simultaneous keys in `to` section with the `set_variable`
11+
one first. Resolve https://github.com/yqrashawn/GokuRakuJoudo/issues/91.
12+
13+
[commits in 0.3.3]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.3.2...0.3.3
714

815
** 0.3.2 - 2020-05-28
916
*** Added

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

0 commit comments

Comments
 (0)