summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2021-07-13Run cargo fmtDavid Peter
2021-07-12Use resolved path for --diagnostic as wellDavid Peter
2021-07-12Fix for Windows: do not run binaries from CWDDavid Peter
This fixes a bug on Windows where `Command::new` would also run executables from the current working directory, possibly resulting in accidental runs of programs called `less`.
2021-07-09Abort ignored filename suffix stripping early on unworkable filenamesDavid Peter
2021-07-09Simplify ignored filename suffix strippingDavid Peter
2021-07-09Find syntax ignoring known backup/template filename suffixesVille Skyttä
For example, fall back to `foo.extension` for `foo.extension~`, `foo.extension.orig`, `foo.extension.in.in` etc.
2021-06-28pretty_printer.rs: Don't use a URL as an example Input titleMartin Nordholts
Otherwise Rust 1.53.0 gets confused during `cargo doc` because it thinks we want an actual URL: warning: this URL is not a hyperlink --> src/pretty_printer.rs:331:40 | 331 | /// The title for the input (e.g. "http://example.com/example.txt") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<http://example.com/example.txt>` | = note: `#[warn(rustdoc::bare_urls)]` on by default = note: bare URLs are not automatically turned into clickable links It was perhaps also a bit confusing to give an URL as an example in the first place, because according to our own API example `examples/inputs.rs` it is meant to be more a free-text thing.
2021-06-13Spelling fixesVille Skyttä
2021-05-27Refactor "Use `matches` macro"Mohamed Abdelnour
2021-05-27Use the functional update syntaxMohamed Abdelnour
2021-05-27Implement `From<..>` instead of `Into<..>`Mohamed Abdelnour
2021-05-27Use the functional update syntaxMohamed Abdelnour
2021-05-27Use `matches` macroMohamed Abdelnour
2021-05-27Use `!theme.is_empty()`Mohamed Abdelnour
2021-05-12Fix less version parsing for minor versions of lessAllen Wild
Less 581.2 is here, and it has a ".2" in the version string, which can't be parsed as a usize. Update the check to find a non-digit character rather than a space. This ignores the minor version, but parses the major version correctly.
2021-03-17Include LESS in --diagnosticMartin Nordholts
So issues like #1586 are easier to troubleshoot.
2021-03-15Add SystemVerilog supportSean McLoughlin
2021-03-07'mut self' => 'self', remove pubDavid Peter
2021-03-07Improve readabilityAleksey Kladov
Using `Path`s for paths expresses intent more clearly.
2021-02-28Change circle detection to use new more conservative method and run in main ↵Niklas Mohrin
loop instead of before the loop
2021-02-28Do not ignore non-existent BAT_CONFIG_PATHDavid Peter
Do not ignore `BAT_CONFIG_PATH` if it doesn't exist. Both when generating a new config file with `--generate-config-file` and when attempting to read the config. Also, provide a better error message in case the file can not be created. closes #1550
2021-02-16Fix broken resolv.conf highlightingDavid Peter
closes #1510 The change in `create_highlighted_versions.py` fixes a "unknown theme "'1337'" warning. The single quotes were wrong. `bat` was always falling back to the default theme, so let's use that for now.
2021-02-16Highlight *.pac files as JavaScriptDavid Peter
closes #1515
2021-02-16Fix clippy suggestionDavid Peter
2021-02-16Use less binary specified in bat config for --diagnosticEthan P
2021-02-16Make less version check accept a path to the less binaryEthan P
2021-02-16Update dependencies; replace unmaintained (#1522)Caden Haustein
* Update dependencies; replace unmaintained * Fix errors * Revert dependency changes * Revert git2 to 0.13.15 Co-authored-by: David Peter <mail@david-peter.de>
2021-01-11get_pager(): Simplify use_less_instead expressionMartin Nordholts
2021-01-11Fix #1413 Can't use `bat` at all! (Error: Use of bat as a pager is ↵Martin Nordholts
disallowed...) Fixed by implementing the proposal by sharkdp: * Allow PAGER=bat, but ignore the setting in bat and simply default to less. Unless of course, BAT_PAGER or --pager is used to overwrite the value of PAGER. * Disallow the usage of bat within BAT_PAGER and --pager.
2021-01-11Remove deprecated PrettyPrinter methodssharkdp
2021-01-10Improve --map-syntax documentation, see #1386sharkdp
2021-01-10PagerKind::from(): SimplifyMartin Nordholts
2021-01-10pager.rs: Some comment fixupsMartin Nordholts
2021-01-10PagerSource: [Bat]PagerEnvVar -> EnvVar[Bat]PagerMartin Nordholts
2021-01-10pager.rs: Limit visibilities to pub(crate)Martin Nordholts
2021-01-10Merge remote-tracking branch 'origin/master' into fix-1063Martin Nordholts
2021-01-09--diagnostic: add MANPAGER environment variablesharkdp
2021-01-09Fix clippy suggestion: .or_else(|| Some(…)) => .or(Some(…))sharkdp
2021-01-09Use new matches!(…) macro to simplify codesharkdp
2021-01-09Add a Default implementation for PrettyPrintersharkdp
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
being set
2021-01-08Fix theme dir hint in --list-themes outputCsaba Henk
2021-01-07Merge remote-tracking branch 'origin/master' into fix-1063Martin Nordholts
2021-01-06Add --diagnostics aliassharkdp
2021-01-06Update to bugreport 0.3.0sharkdp
2021-01-06Exhaustive list of relevant environment variablessharkdp
2021-01-06Add config file, compile time info and less versionsharkdp
2021-01-06Add --diagnostic option to batsharkdp
2021-01-06Merge remote-tracking branch 'origin/master' into fix-1063Martin Nordholts