Kat Marchán
8b46679c36
fix(graphical): oops. Fix theme issue
2024-02-03 20:12:46 -08:00
Adam Curtis
e65d0a78cc
feat(highlighting): add syntax highlighting support with syntect crate ( #313 )
2024-02-03 19:47:46 -08:00
Boshen
f1dc89c076
fix(handler): remove the two extra `is_terminal` sys call from `MietteHandlerOpts::build` ( #325 )
...
`GraphicalReportHandler::new()` calls `GraphicalTheme::default()`
7ff4f874d6/src/handlers/graphical.rs (L52)
which calls `std::io::stdout().is_terminal()` and `std::io::stderr().is_terminal()`
7ff4f874d6/src/handlers/theme.rs (L72)
but this default theme is overridden by `with_theme(theme)`.
2024-02-03 19:12:49 -08:00
Zanie Blue
b0744462ad
feat(graphical): Add `wrap_lines: bool` option allowing wrapping be disabled entirely ( #328 )
2024-01-04 10:44:52 -08:00
Zanie Blue
fd77257cee
feat(graphical): Expose additional `textwrap` options ( #321 )
2023-11-15 10:34:24 -08:00
George Pollard
443d240f49
fix(atty): Switch out `atty` for `is-terminal` ( #229 )
2023-03-13 21:10:21 -07:00
Nathan Whitaker
5f3429b062
fix(miri): Resolve Miri's concerns around unsafe code ( #197 )
2022-08-25 08:30:18 -07:00
Luca Palmieri
b9ea587159
feat(graphical): Allow miette users to opt-out of the rendering of the cause chain ( #192 )
...
Fixes: https://github.com/zkat/miette/issues/191
2022-08-09 17:32:02 -07:00
Benjamin Lee
1816b06a2e
feat(theme): restructure automatic color selection ( #177 )
...
Fixes: https://github.com/zkat/miette/issues/176
Change the default ansi color theme to use colors that are more similar
to the colors from the default RGB theme. In particular, don't use red
for any of the span labels, since that color is also used for errors.
BREAKING CHANGES:
* the default theme now prefers ANSI colors, even if RGB is supported
* `MietteHandlerOpts::ansi_colors` is removed
* `MietteHandlerOpts::rgb_color` now takes an enum that controls the
color format used when color support is enabled, and has no effect
otherwise.
2022-06-24 08:30:36 -07:00
Rain
97197601ee
fix(theme): set correct field in MietteHandlerOpts::ansi_colors ( #150 )
2022-04-13 17:21:22 -07:00
Christopher Durham
70e84f9a01
fix(handler): Apply MietteHandlerOpts::graphical_theme ( #138 )
...
Fixes: https://github.com/zkat/miette/issues/134
2022-03-18 16:30:00 -07:00
Christopher Durham
209275d437
fix(colors): handler_opts.color(false) should disable color ( #133 )
2022-03-17 20:35:45 -07:00
Moritz Mœller
5d23c0d61d
fix(docs): Docs overhaul ( #124 )
...
* Fixed/formatted all intradoc links. Various other small doc fixes/typography/etc.
* Clarified semantic similarity with anyhow/eyre types/macros.
* Removed unused MietteError::SetPrinterFailure.
* README now generaed from lib.rs via `cargo readme`.
* More doc fixes, made ErrorHook type public.
* Indentation (docs).
2022-02-25 08:39:18 -08:00
Kat Marchán
5c085b39e2
fix(graphical): boolean was messing up graphical display
2022-02-17 22:25:05 -08:00
Kat Marchán
9dcce5f1bd
fix(colors): treat no-color mode as no-color instead of narratable ( #94 )
...
Fixes: https://github.com/zkat/miette/issues/93
BREAKING CHANGE: NO_COLOR no longer triggers the narrated handler. Use
NO_GRAPHICS instead.
2022-01-08 09:11:19 -08:00
Kat Marchán
51146535f5
fix(deps): switch to terminal_size
2022-01-07 17:47:56 -08:00
Kirill Vasiltsov
1f70140c2e
feat(tabs): Add replace tabs with spaces option ( #82 )
...
Fixes: https://github.com/zkat/miette/issues/73
2021-10-05 21:05:57 -07:00
Kat Marchán
bb25edf019
docs: fix doctests
2021-09-26 13:00:39 -07:00
Kat Marchán
47e4d4d05c
docs: add docs for handler options
2021-09-26 12:45:18 -07:00
Kat Marchán
b33084bdbf
feat(handler): context lines config support
2021-09-22 16:34:21 -07:00
Kat Marchán
4bb9d12102
feat(handlers): Update graphical handler to use new label protocol ( #66 )
2021-09-22 16:34:21 -07:00
Kat Marchán
93374173e3
feat(footer): add footer support to graphical and narrated
...
Fixes: https://github.com/zkat/miette/issues/34
2021-09-22 16:34:21 -07:00
Kat Marchán
4c2463f9ae
feat(report): make a single big MietteHandler that can switch modes
...
BREAKING CHANGE: linkification option method on GraphicalReportHandler has been changed to .with_links(bool)
2021-09-22 16:34:21 -07:00