summaryrefslogtreecommitdiffstats
path: root/src/printer.rs
AgeCommit message (Expand)Author
2024-03-11style: simplify equality checkHamir Mahal
2024-03-10refactor: remove reference that is unnecessaryHamir Mahal
2024-02-25Inline `format!` args wherever possibleLena
2024-02-24Add squeeze functionality to `SimplePrinter`einfachIrgendwer0815
2024-02-24Add --squeeze-limit to specify max number of consecutive empty linesEthan P
2024-02-24Add --squeeze/-s optionEthan P
2024-02-11Skip syntax parsing when color output disabledEthan P.
2024-02-11Split syntax highlighting from print_line into fnEthan P.
2024-02-09Remove hyperlink when wrapping linesEthan P
2024-02-09Replace AnsiCodeIterator in printer.rsEthan P
2024-02-09Strip OSC sequences before printingEthan P
2024-01-21Attempt to fix integration testFilip Razek
2024-01-21Run cargo fmtFilip Razek
2024-01-21fix: Wrap file name in headerFilip Razek
2023-10-05Replace our own macros to write buffers with standard macrosrhysd
2023-09-01Merge pull request #2618 from Piturnah/feat/write-to-bufferDavid Peter
2023-09-01Clippy lintsPeter Hebden
2023-09-01Handle todosPeter Hebden
2023-09-01Fix signaturesPeter Hebden
2023-09-01Add `OutputHandle` enum to use instead of `&mut dyn io::Write`Peter Hebden
2023-09-01Replace unmaintained `encoding` with `encoding_rs`rhysd
2023-03-24Use `nu-ansi-term` instead of `ansi_term`Constantin Nickel
2023-03-15Merge pull request #2502 from Enselic/clippy-1.68David Peter
2023-03-14Print non-printable characters using caret notation (#2443)einfachIrgendwer0815
2023-03-14Fix clippy warnings with Rust 1.68Martin Nordholts
2022-09-10Revert "Remove code that tries to handle ANSI escape inputs"Martin Nordholts
2022-09-06Strip BOM from output in interactive mode (#1938)dag-h
2022-08-29Remove code that tries to handle ANSI escape inputs (#2189)Martin Nordholts
2022-05-07Bump to syntect 5.0.0 to e.g. start lazy-loading syntaxes (#2181)Martin Nordholts
2022-05-05printer.rs: De-duplicate code to highlight long linesMartin Nordholts
2022-05-04Skip syntax highlighting for long lines (#2165)Keith Hall
2022-02-14Underline highlighted lines in ANSI theme (#1985)Mahdi Dibaiee
2022-02-07Add new `--style` called `header-filesize` and display it by default (#1988)Mahdi Dibaiee
2021-12-08Improved ANSI passthrough (#1596)Ethan P
2021-09-29src/printer.rs: Simplify Plain Text fallback codeMartin Nordholts
2021-09-22src/printer.rs: Add HighlighterFromSet helperMartin Nordholts
2021-09-12Use deref coercion to simplify some argument passingMarcin Puc
2021-09-12Improve iterator usageMarcin Puc
2021-09-12Reduce nesting in if blocks by short circuitingMarcin Puc
2021-08-26Replace deprecated 'error-chain' with 'thiserror' (#1820)Martin Nordholts
2021-08-19Fix all lints that are new with Rust 1.54Martin Nordholts
2021-08-08When returning a SyntaxReference, also return the SyntaxSet that contains it ...Martin Nordholts
2021-07-29HighlightingAssets: Make .syntaxes() and syntax_for_file_name() failableMartin Nordholts
2021-07-19HighlightingAssets: Encapsulate syntax_set behind a getterMartin Nordholts
2021-05-27Use the functional update syntaxMohamed Abdelnour
2021-01-09Addressed PR feedback. Upped min version and used matches! macromark chaitin
2021-01-09fix bug where long lines were truncated in plain mode without wrap=never not ...mark chaitin
2020-12-21Add ansi theme to replace ansi-light and ansi-darkMitchell Kember
2020-12-19Don't add artificial newline to last line if --style=plainMartin Nordholts
2020-12-19replace_nonprintable: Keep \n aroundMartin Nordholts