feat(config): add fmt cmd & float rule comments

This commit adds a fmt command which allows users to prepare PRs to the
configuration repository in a unified way.

The 'custom' formatter basically just ensures that the yaml array is
sorted by application name to make for easier diffs.

Serializing of Option::None has been disabled to keep the yaml file more
concise.

Finally, an option for adding comments to float rules has been included
as some of these rules can be quite esoteric and there is value in
having them annotated with comments in the configuration to preserve and
pass down the knowledge.

The config generation command has been renamed to
'ahk-app-specific-configuration' (with a short alias of 'ahk-asc') to
emphasise that an ahk file is being generated (similar to
'ahk-library').

re #62
This commit is contained in:
LGUG2Z
2022-04-03 13:42:31 -07:00
parent c2cc21d09d
commit c426c06c01
4 changed files with 73 additions and 15 deletions

View File

@@ -304,8 +304,12 @@ AhkLibrary() {
Run, komorebic.exe ahk-library, , Hide
}
ApplicationSpecificConfiguration(path) {
Run, komorebic.exe application-specific-configuration %path%, , Hide
AhkAppSpecificConfiguration(path) {
Run, komorebic.exe ahk-app-specific-configuration %path%, , Hide
}
FormatAppSpecificConfiguration(path) {
Run, komorebic.exe format-app-specific-configuration %path%, , Hide
}
NotificationSchema() {