feat(config): add pwsh cfgen + ps1 file watcher

This commit adds a command to generate application-specific
configuration in the format of a PowerShell ps1 file, as well as the
ability to automatically launch a komorebi.ps1 configuration file on
startup.

If a komorebi.ps1 file is found and launched at startup, the
watch-configuration command will watch and hot reload this file when any
changes are made.

A sample komorebi.ps1 file has been added to the root of the repository,
along with a sample whkdrc file, showing how the two can be used
together to replace AHK.

re #339
This commit is contained in:
LGUG2Z
2023-01-20 17:02:43 -08:00
committed by جاد
parent b89e5eafd2
commit afde7a3fb5
9 changed files with 696 additions and 31 deletions

View File

@@ -428,6 +428,10 @@ AhkAppSpecificConfiguration(path, override_path) {
RunWait, komorebic.exe ahk-app-specific-configuration %path% %override_path%, , Hide
}
PwshAppSpecificConfiguration(path, override_path) {
RunWait, komorebic.exe pwsh-app-specific-configuration %path% %override_path%, , Hide
}
FormatAppSpecificConfiguration(path) {
RunWait, komorebic.exe format-app-specific-configuration %path%, , Hide
}