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
Christian Muehlhaeuser
c5517add19
Search for READMEs case-insensitively & recursively
2020-01-13 01:42:59 +01:00
Christian Muehlhaeuser
85c0cde9c7
Pass writer to executeArg to make code easier to test
2020-01-08 21:50:34 +01:00
Christian Muehlhaeuser
b7304db99e
Fix starting glow without sources
2020-01-08 17:23:04 +01:00
Carlos Alexandro Becker
f04f2a8292
feat: support multiple files
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-01-08 17:18:43 +01:00
Christian Muehlhaeuser
e7c92ddfa7
Add -p flag to render output in default pager
...
Starts the user's default $PAGER or defaults to 'less -r'.
2019-12-31 11:13:06 +01:00
Christian Muehlhaeuser
be911b4609
Fix typo in comment
2019-12-31 08:13:05 +01:00
Christian Muehlhaeuser
79fad4d06c
Bump glamour dependency and adopt functional options API
2019-12-28 03:03:20 +01:00
Christian Muehlhaeuser
fa9d64c4ef
Trim unstyled padding spaces from output
2019-12-25 07:01:56 +01:00
Christian Muehlhaeuser
f090b74c60
Fix init when reading from stdin
2019-12-23 04:27:27 +01:00