Commit graph

107 commits

Author SHA1 Message Date
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
Christian Muehlhaeuser
2821cf2fb4 Disable identity & force-key flags 2020-10-05 13:53:26 +02:00
Christian Rocha
fa7c8f09f9 Respect -i/--identity flag in the TUI 2020-10-05 13:52:22 +02:00
Christian Rocha
6aadaf8a69 Remove stash list, get and delete commands 2020-10-05 13:52:07 +02:00
Christian Rocha
d16c13f929 Disable mouse for now 2020-10-05 13:52:07 +02:00
Christian Rocha
c954898009 Add basic mouse wheel support to pager 2020-10-05 13:47:16 +02:00
Christian Rocha
7f9cc95893 Update altscreen calls per latest Bubble Tea update 2020-10-05 13:47:16 +02:00
Christian Rocha
6e72cbdc4f Consolidate debug config stuff 2020-10-05 13:46:49 +02:00
Christian Rocha
671eade0b5 Remove Boba residue 2020-10-05 13:45:22 +02:00
Christian Rocha
964be85e6d Parse subcommands before main command arguments int the CLI 2020-10-05 13:44:20 +02:00
Christian Rocha
05a56388a9 Comments 2020-10-05 13:44:20 +02:00
Christian Rocha
28f8f185d7 Make --force-key/-f a persistent flag, like --identity 2020-10-05 13:44:20 +02:00
Christian Rocha
c3ceed2c04 Log to a given path if GLOW_LOG_TO_FILE is set 2020-10-05 13:41:17 +02:00
Christian Rocha
5d2ca090ac Pass style argument to the Boba program 2020-10-05 13:37:35 +02:00
Christian Rocha
359828a719 Silence this Go linter message 2020-10-05 13:37:35 +02:00
Christian Rocha
25340455a7 Do it fullscreen 2020-10-05 13:37:33 +02:00
Christian Rocha
bb6904afe2 Load stash + fix spinner issues + render nothing useful
Note that this is we're currently building aginst unreleased versions of Charm and Boba.
2020-10-05 13:36:51 +02:00
Christian Rocha
b58ee10487 Stub out Tea UI: create Charm client and generate keys if necessary 2020-10-05 13:36:11 +02:00
Toby Padilla
4792345f31 Delete from stash command 2020-10-05 13:32:36 +02:00