Skip to content

Ensure that the style config path is expanded where it is used.#902

Open
hobeone wants to merge 1 commit intocharmbracelet:masterfrom
hobeone:master
Open

Ensure that the style config path is expanded where it is used.#902
hobeone wants to merge 1 commit intocharmbracelet:masterfrom
hobeone:master

Conversation

@hobeone
Copy link
Copy Markdown

@hobeone hobeone commented Mar 25, 2026

Addresses issue #776

Also adds a test to ensure it expands environment variables in the file path.

  • I have read CONTRIBUTING.md.
  • I have created a discussion that was approved by a maintainer (for new features).

Example config snippet:
style: "~/.config/glow/tokyo_night.json"

Before fix:

> glow README.md
Error: unable to create renderer: glamour: error reading file: open ~/.config/glow/tokyo_night.json: no such file or directory

After Fix:

glow README.md
<shows README.md content>

Addresses issue charmbracelet#776

Also adds a test to ensure it expands environment variables in the file
path.
@hobeone hobeone requested a review from a team as a code owner March 25, 2026 04:11
@hobeone hobeone requested review from meowgorithm and raphamorim and removed request for a team March 25, 2026 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant