Commit Graph

2941 Commits (9bb0271e7d800dab61556effa5a5ea92681e56be)
 

Author SHA1 Message Date
Ethan P 9bb0271e7d
Update CHANGELOG.md (PR #1441) 7 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>
7 months ago
Ethan P 0c7e5299bf
Add squeeze_empty_lines to PrettyPrinter 7 months ago
Ethan P c36ed32816
Add --squeeze/-s option
Co-authored-by: einfachIrgendwer0815 <85333734+einfachIrgendwer0815@users.noreply.github.com>
7 months ago
David Peter e1a3fc5529
Merge pull request #2857 from eth-p/skip-highlighting-when-no-color
Skip syntax parsing when color is not being output.
7 months ago
David Peter 1ae9e843ed
Merge branch 'master' into skip-highlighting-when-no-color 7 months ago
David Peter dbe4cfb763
Merge pull request #2866 from cyqsimon/quadlet
Add syntax mapping for podman quadlets
7 months ago
David Peter 4549f83689
Merge branch 'master' into quadlet 7 months ago
David Peter e6e8f847be
Merge pull request #2865 from cyqsimon/syntax-mapping-fix
Relax syntax mapping rule restrictions to allow brace expansion
7 months ago
David Peter b9e249f782
Merge branch 'master' into syntax-mapping-fix 7 months ago
David Peter 3ffa3648cf
Merge pull request #2853 from einfachIrgendwer0815/document_default_style_components
Document default style components
7 months ago
David Peter 5c2cc53882
Merge pull request #2867 from cyqsimon/containers-conf
Map containers `.conf` files to TOML syntax
7 months ago
David Peter a6f01af8de
Merge branch 'master' into containers-conf 7 months ago
David Peter 85a549e293
Merge pull request #2840 from anki-code/master
Added xonsh shell support
7 months ago
David Peter b718889ba2
Merge branch 'master' into master 7 months ago
David Peter 708c74f6af
Merge pull request #2795 from mxaddict/master
Added JSONC and aws credentials to the syntax mappings
7 months ago
David Peter 74d666f5c0
Merge branch 'master' into skip-highlighting-when-no-color 7 months ago
David Peter 7604fe5567
Merge pull request #2807 from Oliver-Looney/2783-setting-terminal-title
2783 setting terminal title
7 months ago
David Peter 0080b043c4
Merge branch 'master' into master 7 months ago
cyqsimon 6a6b02117b
Apply clippy fixes (#2864)
* Apply clippy fixes

* Write changelog
7 months ago
cyqsimon 511cd30105
Write changelog 7 months ago
cyqsimon 92915e22e7
Map containers `.conf` files to TOML syntax 7 months ago
cyqsimon d499191b0a
Write changelog 7 months ago
cyqsimon 152d69fe98
Add syntax mapping for podman quadlets 7 months ago
cyqsimon 81aa24310c
Write changelog 7 months ago
cyqsimon 75cdabaf13
Relax syntax mapping rule restrictions to allow brace expansion 7 months ago
Oliver Looney 1f628203e5
Merge branch 'master' into 2783-setting-terminal-title 7 months ago
David Peter 1b9fc1d5af
Merge pull request #2856 from eth-p/fix-2185
Fix incorrect categorization of ANSI SGR sequences.
7 months ago
David Peter bc1ca1a346
Merge branch 'master' into fix-2185 7 months ago
David Peter f735120978
Merge pull request #2854 from eth-p/fix-line-number-wrap-off-by-one
Fix off-by-one error in line number continuation
7 months ago
Ethan P. 25b5a41189
Skip syntax parsing when color output disabled 7 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`).
7 months ago
Ethan P. 84d80eebd0
Test for correct categorization of SGR sequences
This adds a regression test for the fix in the previous commit.
7 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.
7 months ago
Ethan P. 9d77c1373c
Fix off-by-one error in line number continuation 7 months ago
Oliver Looney c3f2ddf509
Merge branch 'master' into 2783-setting-terminal-title 7 months ago
Oliver looney 8a51172b11
simplified basic_set_terminal_title 7 months ago
einfachIrgendwer0815 875046e4cd
Mention which style components are the default 7 months ago
mxaddict a5bd9f51be Added JSONC and aws credentials to the syntax mappings 7 months ago
Ethan P 5a2a20af42
Merge pull request #2544 from eth-p/fix-2541
Treat OSC ANSI Sequences as Invisible Text & Add OSC 8 Support
7 months ago
Ethan P 61029c8bd2
Update changelog for fix of ANSI OSC sequences 7 months ago
Ethan P 1023399c5e
Remove hyperlink when wrapping lines 7 months ago
Ethan P 6549e26f5d
Re-emit hyperlinks when wrapping lines 7 months ago
Ethan P 165c495e75
Replace AnsiCodeIterator in printer.rs
This uses the new EscapeSequenceIterator, saving us a preprocessing step
for each line.
7 months ago
Ethan P 6b9b085be3
Add EscapeSequenceIterator
This is an iterator for escape sequences, using
EscapeSequenceOffsetsIterator for the underlying parsing of individual
escape sequences.
7 months ago
Ethan P 2d46d54ae3
Add tests for re-emitting SGR sequences on wrap 7 months ago
Ethan P 3d04699710
Add regression test for #2541
More specifically, the test ensures that OSC sequences don't end up
wrapping the line.
7 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 :)
7 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.
7 months ago
Ethan P c29bf2ff28 Update git2 dependency 7 months ago