The previous implementation included the prefix in the folder icons, which was not the intended behavior. This change corrects that mistake (that I made) and improves the flexibility of how the winbar is rendered. The new implementation ensures that folder icons are displayed according to user settings without unnecessary prefixing.
Summary of Changes
This PR includes the following changes:
Adding a new highlight group: Introduces a new highlight group to improve customization.
Updating the winbar logic: Incorporates a customizable prefix by applying the winbar_prefix setting directly in the winbar. This allows for more flexible and user-defined winbar prefixes.
Modifying the handling of folder icons: Adjusts how folder icons are displayed in the winbar. Previously, the winbar prefix was always included in the folder icon representation. This change ensures that the appearance of folder icons is determined based on the configuration and is not always prefixed.
Enhancing the construction of the winbar string: Includes the user-defined winbar_prefix at the beginning of the bar, improving its flexibility and appearance.
Testing
A basic test has been added to verify that the winbar correctly reflects the user-defined prefix and handles folder icons appropriately. The test checks the following:
The correct application of the winbar_prefix.
Proper handling of folder icons without automatic prefixing.
Review Instructions
Please review the changes, especially the new logic for handling winbar_prefix and folder icons. Ensure that the winbar behaves as expected and that the new highlight group integrates seamlessly with the existing themes.
Context
The previous implementation included the
prefix
in the folder icons, which was not the intended behavior. This change corrects that mistake (that I made) and improves the flexibility of how the winbar is rendered. The new implementation ensures that folder icons are displayed according to user settings without unnecessary prefixing.Summary of Changes
This PR includes the following changes:
winbar
logic: Incorporates a customizableprefix
by applying thewinbar_prefix
setting directly in thewinbar
. This allows for more flexible and user-defined winbar prefixes.winbar
. Previously, thewinbar
prefix was always included in the folder icon representation. This change ensures that the appearance of folder icons is determined based on the configuration and is not always prefixed.winbar
string: Includes the user-definedwinbar_prefix
at the beginning of the bar, improving its flexibility and appearance.Testing
A basic test has been added to verify that the
winbar
correctly reflects the user-definedprefix
and handles folder icons appropriately. The test checks the following:winbar_prefix
.Review Instructions
Please review the changes, especially the new logic for handling
winbar_prefix
and folder icons. Ensure that thewinbar
behaves as expected and that the new highlight group integrates seamlessly with the existing themes.