Maas Lalani
7caf7d44ff
fix(format): force ansi256 for template formatting
2024-01-13 23:12:03 -05:00
Kenny Parnell
fb6849ca16
Add --select-if-one
flag to choose
/filter
. ( #398 )
...
* Add `--select-if-one` flag to `choose`/`filter`.
* Remove accidental commit of other changes.
* fix: use o.Options
---------
Co-authored-by: Maas Lalani <maas@lalani.dev>
2023-11-28 12:34:50 -05:00
Kenny Parnell
f5b09a434a
Switch to termenv.EnvColorProfile() ( #387 )
...
* Switch to termenv.EnvColorProfile()
This will allow users to set `NO_COLOR` and `CLICOLOR_FORCE` when they need to override the detected values.
* Update main.go
2023-07-20 14:14:31 -04:00
Maas Lalani
c668e153e6
feat(format): add GUM_FORMAT_THEME / GUM_FORMAT_LANGUAGE environment variable configuration
2023-05-11 23:45:29 -04:00
Maas Lalani
95ddbdb416
feat: allow passing language to parse code
2023-03-24 13:40:37 -04:00
Maas Lalani
7a32dd579b
feat: allow customization of glamour theme
2022-10-18 15:21:35 -04:00
fedeztk
adc82b2fce
fix(format): do not append additional new line
2022-09-09 11:43:36 -04:00
Maas Lalani
1479184f3f
fix: satisfy all linters
2022-08-05 02:33:40 -04:00
Maas Lalani
cb590e324e
chore: fix linting
2022-07-30 18:04:26 -04:00
Christian Muehlhaeuser
66993d8ef1
Add soft & hard linter configs & workflows ( #44 )
...
* chore: add linter configs & workflows
* fix: ignore certain linter warnings
* fix: mark errors as intentionally ignored
* fix: avoid unnecessary conversion
* fix: handle template/renderer errors
* fix: mark intentionally unused code
2022-07-30 12:32:59 -04:00
Maas Lalani
da961b423b
fix(format): don't word wrap markdown
2022-07-21 16:56:22 -04:00
Maas Lalani
5d147f48e2
refactor(format): Move functions to formats.go and add map between type and function
2022-07-14 17:09:18 -04:00
Maas Lalani
e17e45aa9b
docs: move information to format/README.md
2022-07-14 16:33:16 -04:00
Maas Lalani
4dd438bad1
fix: don't wordwrap code
2022-07-14 16:13:43 -04:00
Maas Lalani
0223da8b6c
feat: gum format --type emoji|markdown|code|template
2022-07-14 15:27:26 -04:00
Maas Lalani
71b8363f97
feat: add gum format
command to format text
2022-07-14 13:51:26 -04:00