Commit graph

96 commits

Author SHA1 Message Date
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
Toby Padilla
bd52d1cee4 Get markdown command 2020-10-05 13:32:36 +02:00
Toby Padilla
395ae998dd List stash 2020-10-05 13:32:36 +02:00
Toby Padilla
a106bc0163 Working stash command 2020-10-05 13:32:34 +02:00
Jesse Millar
6025e736ea
Enable use of the GLAMOUR_STYLE environment variable (#152) 2020-07-23 18:03:03 +02:00
Christian Muehlhaeuser
d433820a1b
Validate options once 2020-05-05 07:48:05 +02:00
Christian Muehlhaeuser
c9af84b75a
Automatically detect terminal width, with a 120 char limit 2020-05-05 07:43:11 +02:00
Christian Muehlhaeuser
18fcf68c0f
Change default rendering width to 80 2020-05-05 07:28:33 +02:00
Christian Muehlhaeuser
c5d7aa0155
Rename readerFromArg to sourceFromArg 2020-03-31 08:57:49 +02:00
Christian Muehlhaeuser
ec9cc0bde4
Make source private 2020-03-31 08:53:35 +02:00
Christian Muehlhaeuser
5cdf8294a8
Use glamour's WithAutoStyle option as default 2020-03-31 06:58:21 +02:00
Christian Muehlhaeuser
5038a7b69f Use glamour's 'auto' style per default 2020-01-14 02:20:33 +01:00