charmbracelet / charmbracelet/glow
feature request: add support for all flags in the configuartion
- Dominant language
- Go
- Stars
- 27.3k
- Forks
- 762
- Avg merge
- 3m
- Merged PRs (30d)
- 1
Description
**Is your feature request related to a problem? Please describe.**
i am frustrated when i need to supply flags, e.g. `--preserve-new-lines` and `--line-numbers`, to `glow` all the time. i tried to utilize [glow configuration](https://github.com/charmbracelet/glow/blob/67243bb6fbf6d49eddb6ab644e8e2c1395f9cb00/README.md?plain=1#L166-L172), but it seems that the configuration lacks support for all flags (including `EDITOR` environment variable)
**Describe the solution you'd like**
add support to configure all flags in the configuration if it is not supported already. otherwise, improve the
**Describe alternatives you've considered**
- adding `line-numbers: true` to the configuration and any other [permutations driven by `main.go`](https://github.com/charmbracelet/glow/blob/67243bb6fbf6d49eddb6ab644e8e2c1395f9cb00/main.go#L40-L41)
**Additional context**
related to #642
Contributor guide
Research direction
Start with the configuration section in README.md and the flag definitions and permutations in main.go. Compare the supported configuration entries with flags such as --preserve-new-lines and --line-numbers, including the EDITOR environment variable; done means the requested flags can be configured consistently and the related behavior is covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100