mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1245] [MERGED] fix(bar): resolve env vars in the configuration switcher #1273
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/1245
Author: @CtByte
Created: 1/24/2025
Status: ✅ Merged
Merged: 1/24/2025
Merged by: @LGUG2Z
Base:
master← Head:env_var📝 Commits (1)
eb2fbabfix(bar): resolve env vars in the configuration switcher📊 Changes
4 files changed (+53 additions, -1 deletions)
View changed files
📝
komorebi-bar/src/komorebi.rs(+2 -1)📝
komorebi-client/src/lib.rs(+1 -0)📝
komorebi/src/core/mod.rs(+2 -0)➕
komorebi/src/core/pathext.rs(+48 -0)📄 Description
Environment variables were not supported in the location of the configuration switcher section as described in #1131.
I've decided to make an extension called
PathExt(name debatable) that replaces any environment variable in a PathBuf.It supports the following:
My proposal is to use this extension other places as well in order to support any env vars in paths. Could it perhaps be used here?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.