refactor(bar): resolve env vars with pathext

This commit introduces a new PathExt trait with a fn replace_env which
can ensure all environemnt variables are loaded for a PathBuf.

As part of the initial rollout this is used in komorebi-bar to look up
environment variables for the configuration switcher widget.

resolve #1131
This commit is contained in:
Csaba
2025-01-24 15:59:07 +01:00
committed by LGUG2Z
parent cfd89c274c
commit 4123c9a0e2
4 changed files with 53 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ pub use komorebi::core::Layout;
pub use komorebi::core::MoveBehaviour;
pub use komorebi::core::OperationBehaviour;
pub use komorebi::core::OperationDirection;
pub use komorebi::core::PathExt;
pub use komorebi::core::Rect;
pub use komorebi::core::Sizing;
pub use komorebi::core::SocketMessage;