refactor(derive-ahk): push up generation logic

This commit pushes as much of the generation logic as possible to the
derive-ahk crate, so that when it is used in komorebic, we only need to
do an as_bytes() call to prepare it for being written to a file.

Besides that, this commit changes the generation command name to
'ahk-library' for clarity, and adds both additional samples and
instructions in the readme file and Scoop post-install hook.
This commit is contained in:
LGUG2Z
2021-08-23 07:49:34 -07:00
parent 2c876701d8
commit a02cd699a0
6 changed files with 238 additions and 17 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
; Generated by komorebic.exe generate-ahk-library
; Generated by komorebic.exe
Start() {
Run, komorebic.exe start, , Hide
@@ -168,6 +168,6 @@ FocusFollowsMouse(boolean_state) {
Run, komorebic.exe focus-follows-mouse %boolean_state%, , Hide
}
AhkLib() {
Run, komorebic.exe ahk-lib, , Hide
AhkLibrary() {
Run, komorebic.exe ahk-library, , Hide
}