Skip to content

glow.yml/style key is not expanded to actual path #545

@5HT2

Description

@5HT2

Description

1. Given the following glow.yml:
# style name or JSON path (default "auto")
style: "~/.config/glow/styles/tokyo-night.json"
# mouse support (TUI-mode only)
mouse: true
# use pager to display markdown
pager: false
# word-wrap at width
width: 120
# show all files, including hidden and ignored.
all: true
2. The following error is produced:
Error: unable to create renderer: glamour: error reading file: open
~/.config/glow/styles/tokyo-night.json: no such file or directory
3. The file does indeed exist. We can confirm by running the following:
p $'```ps1\nfunction ConvertFrom-Json {}\n```' | glow -s ~/.config/glow/styles/tokyo-night.json

Version

No response

Environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions