This is a bit of a PITA for me as most people use AHK to handle shortcuts for komorebi[1], which led to me generating an AHK library[2] to help people write their configs. Turns out every single line of that generated library (not to mention the entire sample config for newcomers) is now invalid syntax in v2.
I'm taking a month off from development while I'm traveling, maybe I'll feel less salty about this when I get back.
The biggest issue right now is that the Run and RunWait commands require strings for the commands to be executed, and AHK v2 has absolutely garbage support for string interpolation.
Honestly I'm not sure if I'll continue supporting AHK or just develop my own sxhkd (swhkd?) and recommend that for users going forward.
Can you just specify AHK1 for users for the time being? Is there an equivalent of a shebang, differentiator, or something in AHK scripts that'd allow a simultaneous v1 and v2 install? When Python went from 2.x to 3.0, there wasn't some expectation that all adoption of breaking changes happen immediately - one hopes similar provisions have been made here.
When you install v2 it has a launcher that can be configured and runs scripts with the correct interpreter based on that directive.
If that directive is not in the script it would try to determine the version based on syntax. And if it couldnt determine it, it would ask you what to do.
I have both versions installed and have had no issues as of yet.
I'm taking a month off from development while I'm traveling, maybe I'll feel less salty about this when I get back.
The biggest issue right now is that the Run and RunWait commands require strings for the commands to be executed, and AHK v2 has absolutely garbage support for string interpolation.
Honestly I'm not sure if I'll continue supporting AHK or just develop my own sxhkd (swhkd?) and recommend that for users going forward.
[1]: https://github.com/LGUG2Z/komorebi
[2]: https://github.com/LGUG2Z/komorebi/blob/master/komorebic.lib...