[FEAT]: Support for multiple Application-specific configuration files #325

Closed
opened 2026-01-05 14:49:45 +01:00 by adam · 5 comments
Owner

Originally created by @Sludging on GitHub (Apr 7, 2024).

Is your feature request related to a problem? Please describe.

I'd like to be able to maintain a local and personal set of application-specific rules but still benefit from the community-maintained repository.

I've had a list of personal rules defined in my komorebi.generated.ps1 and I accidently removed all of my changes when I ran

komorebic fetch-asc
komorebic pwsh-asc .\applications.yaml

Describe the solution you'd like

Convert app_specific_configuration_path into an array allowing for multiple files to be loaded instead of a single one.

Describe alternatives you've considered

When using the Powershell configuration (komorebi.ps1), I can solve it using the below:

. $PSScriptRoot\komorebi.generated.ps1
. $PSScriptRoot\komorebi.personal.ps1

But I don't believe this is available for the komorebi.json configuration file (I'm still not clear which is the preferred method at this point, are both configuration methods equally supported moving forward?)

Originally created by @Sludging on GitHub (Apr 7, 2024). **Is your feature request related to a problem? Please describe.** I'd like to be able to maintain a local and personal set of application-specific rules but still benefit from the [community-maintained repository](https://github.com/LGUG2Z/komorebi-application-specific-configuration). I've had a list of personal rules defined in my `komorebi.generated.ps1` and I accidently removed all of my changes when I ran ```shell komorebic fetch-asc komorebic pwsh-asc .\applications.yaml ``` **Describe the solution you'd like** Convert `app_specific_configuration_path` into an array allowing for multiple files to be loaded instead of a single one. **Describe alternatives you've considered** When using the Powershell configuration (`komorebi.ps1`), I can solve it using the below: ```powershell . $PSScriptRoot\komorebi.generated.ps1 . $PSScriptRoot\komorebi.personal.ps1 ``` But I don't believe this is available for the `komorebi.json` configuration file (I'm still not clear which is the preferred method at this point, are both configuration methods equally supported moving forward?)
adam added the enhancement label 2026-01-05 14:49:45 +01:00
adam closed this issue 2026-01-05 14:49:45 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Apr 7, 2024):

This is a great idea, let's aim to get this into v0.1.24. 🤞

@LGUG2Z commented on GitHub (Apr 7, 2024): This is a great idea, let's aim to get this into v0.1.24. 🤞
Author
Owner

@Vernetzt commented on GitHub (Mar 14, 2025):

Was support for multiple files added to komorebi.json as well? I can't seem to find any documentation on it.

I have accumulated quite a number of rules that could benefit from this as sadly most of them are not suitable for the curated applications.json that gets maintained.

The above implies that it is possible but I am not sure what the annoyance of allowing an array of items within the JSON file would cause if support was added.

@Vernetzt commented on GitHub (Mar 14, 2025): Was support for multiple files added to `komorebi.json` as well? I can't seem to find any documentation on it. I have accumulated quite a number of rules that could benefit from this as sadly most of them are not suitable for the curated `applications.json` that gets maintained. The above implies that it is possible but I am not sure what the annoyance of allowing an array of items within the JSON file would cause if support was added.
Author
Owner

@LGUG2Z commented on GitHub (Mar 14, 2025):

@Vernetzt Thought I had added this a long time ago but evidently not! Just pushed a commit with this feature - the asc path config option can now take either a single path string or a vec of path strings.

@LGUG2Z commented on GitHub (Mar 14, 2025): @Vernetzt Thought I had added this a long time ago but evidently not! Just pushed a commit with this feature - the asc path config option can now take either a single path string or a vec of path strings.
Author
Owner

@Vernetzt commented on GitHub (Mar 14, 2025):

Thanks! This will help my sanity greatly.

@Vernetzt commented on GitHub (Mar 14, 2025): Thanks! This will help my sanity greatly.
Author
Owner

@jeeeem commented on GitHub (Mar 14, 2025):

Thanks! This will help my sanity greatly.

does the multiple application config json files work for you? I just tried this new feature but Im encountering this error.

Image

EDIT: nvm i got it working. I just the use same format for application.json, forgot it has its own schema

@jeeeem commented on GitHub (Mar 14, 2025): > Thanks! This will help my sanity greatly. does the multiple application config json files work for you? I just tried this new feature but Im encountering this error. ![Image](https://github.com/user-attachments/assets/3a5c1d70-b2c7-48f4-a2ad-d23f46186596) EDIT: nvm i got it working. I just the use same format for application.json, forgot it has its own schema
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#325