Commit Graph

933 Commits (master)

Author SHA1 Message Date
Stéphane Blondon bb4d1cbd2e refactor: factorize constants by inverting loop and condition order 1 month ago
Stéphane Blondon 23ec433167 display which theme is the default one in basic output 1 month ago
sblondon d5bd4aa93f
display which theme is the default one in colored output (#2838) 1 month ago
Rivera Calzadillas f8c5429a6c Print $TERM with --diagnostic 1 month ago
Rivera Calzadillas f71226adbb Sort env vars printed by --diagnostic 1 month ago
Hamir Mahal 07c26adc35 style: simplify equality check 2 months ago
David Peter f29f9387b5
Merge pull request #2868 from cyqsimon/builtin-offload-v2
Faster startup by offloading glob matcher building to a worker thread
2 months ago
Hamir Mahal c290bfff1e refactor: remove reference that is unnecessary 2 months ago
cyqsimon 46a2c004a2
Add syntax mapping for Wireguard config 3 months ago
cyqsimon 26ac179548
Add note on thread synchronization 3 months ago
Lena 4c85483486 Inline `format!` args wherever possible 3 months ago
einfachIrgendwer0815 83b00bc653
Rename `--squeeze` to `--squeeze-blank` 3 months ago
einfachIrgendwer0815 f041ff8c5f
Hide `--squeeze-limit` from short help 3 months ago
einfachIrgendwer0815 6c2ce63101
Add squeeze functionality to `SimplePrinter` 3 months ago
Ethan P 0e4e10edb6
Add --squeeze-limit to specify max number of consecutive empty lines
Co-authored-by: einfachIrgendwer0815 <85333734+einfachIrgendwer0815@users.noreply.github.com>
3 months ago
Ethan P 0c7e5299bf
Add squeeze_empty_lines to PrettyPrinter 3 months ago
Ethan P c36ed32816
Add --squeeze/-s option
Co-authored-by: einfachIrgendwer0815 <85333734+einfachIrgendwer0815@users.noreply.github.com>
3 months ago
David Peter 1ae9e843ed
Merge branch 'master' into skip-highlighting-when-no-color 3 months ago
David Peter 4549f83689
Merge branch 'master' into quadlet 3 months ago
David Peter 3ffa3648cf
Merge pull request #2853 from einfachIrgendwer0815/document_default_style_components
Document default style components
3 months ago
David Peter a6f01af8de
Merge branch 'master' into containers-conf 3 months ago
David Peter b718889ba2
Merge branch 'master' into master 3 months ago
David Peter 708c74f6af
Merge pull request #2795 from mxaddict/master
Added JSONC and aws credentials to the syntax mappings
3 months ago
David Peter 74d666f5c0
Merge branch 'master' into skip-highlighting-when-no-color 3 months ago
David Peter 7604fe5567
Merge pull request #2807 from Oliver-Looney/2783-setting-terminal-title
2783 setting terminal title
3 months ago
David Peter 0080b043c4
Merge branch 'master' into master 3 months ago
cyqsimon 2b4339663c
Builtin glob matchers build offload, v2 3 months ago
cyqsimon 6a6b02117b
Apply clippy fixes (#2864)
* Apply clippy fixes

* Write changelog
3 months ago
cyqsimon 92915e22e7
Map containers `.conf` files to TOML syntax 3 months ago
cyqsimon 152d69fe98
Add syntax mapping for podman quadlets 3 months ago
Oliver Looney 1f628203e5
Merge branch 'master' into 2783-setting-terminal-title 3 months ago
David Peter bc1ca1a346
Merge branch 'master' into fix-2185 3 months ago
Ethan P. 25b5a41189
Skip syntax parsing when color output disabled 3 months ago
Ethan P. c94cf4e14e
Split syntax highlighting from print_line into fn
This simplifies the `print_line` function a little bit while also
providing a way for syntax highlighting to be skipped when it's
not being used (i.e. `--color=never`).
3 months ago
Ethan P. 84d80eebd0
Test for correct categorization of SGR sequences
This adds a regression test for the fix in the previous commit.
3 months ago
Ethan P. 915dd9fbf8
Fix incorrect categorization of SGR sequences
Specifically, prevent other attributes from leaking into the
bold/dim/italic/underline attributes, and ensure that bright backgrounds
are put into the background attribute instead of the foreground
attribute.
3 months ago
Ethan P. 9d77c1373c
Fix off-by-one error in line number continuation 3 months ago
Oliver Looney c3f2ddf509
Merge branch 'master' into 2783-setting-terminal-title 3 months ago
einfachIrgendwer0815 875046e4cd
Mention which style components are the default 3 months ago
mxaddict a5bd9f51be Added JSONC and aws credentials to the syntax mappings 3 months ago
Ethan P 1023399c5e
Remove hyperlink when wrapping lines 3 months ago
Ethan P 6549e26f5d
Re-emit hyperlinks when wrapping lines 3 months ago
Ethan P 165c495e75
Replace AnsiCodeIterator in printer.rs
This uses the new EscapeSequenceIterator, saving us a preprocessing step
for each line.
3 months ago
Ethan P 6b9b085be3
Add EscapeSequenceIterator
This is an iterator for escape sequences, using
EscapeSequenceOffsetsIterator for the underlying parsing of individual
escape sequences.
3 months ago
Ethan P 054421268f
Strip OSC sequences before printing
This commit strips OSC (Operating System Command) sequences before
printing lines. Eventually when time permits, I want to add back
support for printing OSC sequences (and improve it to treat hyperlinks
like an attribute).

Until then, this should help prevent garbled output :)
3 months ago
Ethan P 414403b062
Add EscapeSequenceOffsetsIterator
This can be used to extract a subset of ANSI escape sequences from a
string of text. I have big plans for this eventually, but for now, it'll
be used to strip OSC before printing.
3 months ago
David Tolnay 1a54c9bf6d
Eliminate dependency on serde's "derive" feature 3 months ago
Oliver looney 02077db53e
undid unnecessary api visibility changes 3 months ago
Oliver looney 7ce010d9ed
Using hypens instead of underscores for set-terminal-title command 3 months ago
Andy Kipp 0af1df5258
Create xonsh.toml 4 months ago