Commit graph

125 commits

Author SHA1 Message Date
Stanislav (Stas) Katkov
f1b565125f
feat: make --all configurable globally (#651)
* Make --all configurable globally

* docs: add all option to docs and default config

* refactor: tidy fields, set showAllFiles to true if unset

---------

Co-authored-by: Stanislav (Stas) Katkov <github@skatkov.com>
Co-authored-by: bashbunni <bunni@bashbunni.dev>
2024-10-01 10:23:20 -07:00
Carlos Alexandro Becker
736e77dbc6
feat!: rename module to /v2 (#640)
Next version of Glow drops stash support, which is a breaking change.

This makes it accordingly.

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-08-23 12:45:30 -03:00
Carlos Alexandro Becker
c89c8bd6e7
feat: update glamour (#634)
* feat: updating glamour

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: trim space

* chore: bump

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* chore(deps): bump

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: perms

* fix: improve logs

* feat: update glamour

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-08-21 14:43:05 -03:00
Carlos Alexandro Becker
4578bc149a
feat: updating glamour (#631)
* feat: updating glamour

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: trim space

* chore: bump

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* chore(deps): bump

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-07-25 10:32:08 -04:00
kalle (jag)
96d2a38e67
feat: allow --width=0 to disable wordwrap (#366)
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-07-11 12:16:12 -03:00
Carlos Alexandro Becker
2d5bd3b799
feat: show line numbers configuration option
closes #311
2024-07-11 12:08:57 -03:00
Carlos Alexandro Becker
247c707b25
fix: glow URL
closes #464
2024-07-11 12:02:03 -03:00
Carlos Alexandro Becker
1407793c5d
fix: pass color profile down to glamour (#626)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-07-09 16:13:32 -03:00
Carlos Alexandro Becker
401610afa4
ci: run govulncheck, semgrep, etc (#627)
* ci: run govulncheck, semgrep, etc

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: error check

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-07-09 16:13:05 -03:00
Carlos Alexandro Becker
9ebe39cd09
feat: improve gitlab/github readme url (#456)
* Use GitHub API to find readme filename

* Fix lint errors and typos

* Bring back "tries to find" instead of "finds"

* Rename `readmeURL` to `apiURL`

* Don't close body

* Use GitLab API to find readme filename

* feat: improve gitlab/github readme url

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

---------

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: danielwerg <35052399+danielwerg@users.noreply.github.com>
2024-07-09 16:07:39 -03:00
Carlos Alexandro Becker
2288311e82
fix: do not hard fail if no config
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-07-09 10:58:52 -03:00
Carlos Alexandro Becker
1133e5047b
fix: config failing in tests (#625)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-07-09 10:47:44 -03:00
Carlos Alexandro Becker
f44e5b5f5c
fix: improve message
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-07-09 10:17:18 -03:00
Carlos Alexandro Becker
d89d79a00c
feat: --preserve-new-lines (#623)
closes #502
2024-07-09 09:50:10 -03:00
Carlos Alexandro Becker
fe066f2140
feat: allow config from CHARM_CONFIG_HOME and XDG_CONFIG_HOME (#621)
* feat: allow config from CHARM_CONFIG_HOME

closes #594
closes #495
closes #328
closes #475

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: improvements on config handling

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* chore: log

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-07-08 22:33:49 -03:00
Carlos Alexandro Becker
f1cf0ba785
feat: man pages
closes #269
2024-07-03 13:59:11 -03:00
Carlos Alexandro Becker
d7032fe57f
feat: shell completions
closes #533
closes #546
closes #512
2024-07-03 13:41:11 -03:00
Carlos Alexandro Becker
8e51396575
fix: check other possible readme paths/branches (#450)
* fix: check other possible readme paths/branches

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* fix: url

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* fix: Readme.md

---------

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2024-07-03 13:09:20 -03:00
Carlos Alexandro Becker
fce3edf7db
feat!: cleanup and updated (#619)
* feat!: cleanup

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* more cleanup

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: more cleanup

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: more cleanup

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-07-03 12:11:29 -03:00
Lars Müller
9a3f7a19cb
fix: replace string concatenation in loop with string builder (#505) 2023-08-24 13:52:15 -03:00
WieeRd
19732a6303 fix: support hard line breaks (charmbracelet#212) 2023-01-23 17:41:06 +01:00
Maas Lalani
d9bf3b8ee8 fix: don't close HTTP body 2022-12-19 18:09:17 -05:00
Carlos A Becker
4dd3ba1d3c chore: fmt & lint issues 2022-11-11 02:14:26 +01:00
Christian Rocha
9c9b3e6087 Bump Bubble Tea, Bubbles, Glamour, Lip Gloss, and Termenv and do related updates
This update also removes any usage of the charm/common package

Co-authored-by: Christian Rocha <christian@rocha.is>
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-11 02:14:26 +01:00
tploss
e078953667 Remove exit message
As already discussed in https://github.com/charmbracelet/glow/issues/329
the exit message can be a bit irritating, especially when integrating
glow into scripts/etc.
PR https://github.com/charmbracelet/glow/pull/331 did more than just
remove the exit message but was since closed by the requestor.
2022-07-12 12:16:45 +02:00
Christian Rocha
8138788b0a Automatically read from stdin if stdin is a pipe 2021-10-22 13:13:09 -04:00
Tobias Klauser
1f2b3671c7 Use golang.org/x/term
The golang.org/x/crypto/ssh/terminal package is deprecated and merely a
wrapper around golang.org/x/term. Use the latter directly and avoid a
direct dependency on the former.
2021-04-29 15:34:10 +02:00
lestrrat
3285903aae
Enable/Disable pager from config (#242) 2021-02-04 01:34:44 +01:00
Christian Rocha
8d0ebb7249 If the only arguement is a directory open a TUI at that path (see #234) 2021-01-19 15:18:24 -05:00
Christian Rocha
4c63c62bfa Replace bit-based document type implementation with a set-based one 2020-12-24 10:29:22 -05:00
Christian Rocha
40a02259fc Only show news in news section 2020-12-24 10:29:22 -05:00
Nicolas Martin
d9242c9a72 Expand the path for a specified style file 2020-12-16 17:04:35 +01:00
Christian Rocha
e9d728cd96 Add "hidden" command/config for switching on mouse wheel support
See (#206)
2020-11-20 15:28:36 -05:00
Cristian Dominguez
998cbf1cc4 Ignore YAML frontmatter 2020-10-30 19:06:46 +01:00
Christian Muehlhaeuser
d4239a55db Error codes should be in the range of 0 to 125 2020-10-27 15:13:20 +01:00
Nicolas Martin
4b4fb783d2
Open the configuration file with $EDITOR via 'glow config' 2020-10-26 20:21:38 +01:00
Christian Rocha
7a700d2511
Stub out config sub-command 2020-10-26 12:21:23 -04:00
Christian Rocha
7ea7cc59e3
Respect width flag/config setting in the TUI; closes #168 2020-10-23 23:38:28 -04:00
Christian Muehlhaeuser
2091f03235 Support width as a config setting 2020-10-24 05:16:00 +02:00
Christian Muehlhaeuser
61a2533d41 Display default value for config flag in --help 2020-10-24 05:16:00 +02:00
Christian Muehlhaeuser
d5446bfddd Add config file support
The combination of Viper & go-app-paths lets us detect a config file
'glow.yml' in various default config paths (XDG-compliant), across all
platforms.

Currently there are only two configuration values:

local: true
style: "/some/style.json"

Additionally, this introduces mapping environment variables to config
values:

GLOW_LOCAL="true"
GLOW_STYLE="/some/style.json"

The values will be used in this order:

CLI-arg > ENV-var > config file > default
2020-10-24 05:16:00 +02:00
Christian Rocha
32f0be2688 Use the same type to track docs to load and docs loaded 2020-10-19 15:50:50 +00:00
Christian Rocha
fcf109aaff Add flag for local files only (aka disable network) in TUI 2020-10-19 15:50:50 +00:00
Christian Rocha
e73190a217 Move "stashed only" flag from the package-level into the model 2020-10-19 15:50:50 +00:00
Nicolas Martin
7f359969b7 Don't handle filenames with a colon in it as http(s) url 2020-10-15 06:50:34 +02:00
Christian Rocha
eb6fa55ec3 Run glow stash to browse stashed files only 2020-10-05 13:54:24 +02:00
Christian Rocha
a705921a96 Update -a help language 2020-10-05 13:54:24 +02:00
Christian Rocha
5b20e3edae Hide files and dirs starting with a dot by default 2020-10-05 13:54:01 +02:00
Christian Rocha
f8c4ddc388 Remove disabled force key/identity file stuff for now 2020-10-05 13:54:01 +02:00
Christian Rocha
805a26090f Format help and add examples to stash command 2020-10-05 13:54:01 +02:00