summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-09-08Make `use` top-levelTau Gärtli
2024-09-08Merge get_is_light* functions togetherTau Gärtli
2024-09-08Allow --dark to override a light syntax themeTau Gärtli
2024-09-08Add missing test combinationsTau Gärtli
2024-09-08Add test for dark themeTau Gärtli
2024-09-08Do fallback outside switchTau Gärtli
2024-09-08De-duplicate test dataTau Gärtli
2024-09-08Prevent line breaksTau Gärtli
2024-09-06Fix linkDan Davison
Closes #1848
2024-09-06Delete unused Makefile targetDan Davison
2024-09-06Fix clippy warnings (#1851)Tau Gärtli
* Fix non-portable doc comments warning A line starting with > might be interpreted as a block quote. In regular markdown this could be prevented by escaping the `>` using a backslash. However, since the doc comments are used by clap for the long help more or less verbatim, the `\` would be visible hence the shuffling around of words. * Use `.contains()`
2024-09-02Handle quoted file paths in hunk headersThomas Otto
When core.quotepath is true (the default) then non-ASCII chars in a file name are quoted. These quotes hide the DIFF_PREFIXES and "a/1" "b/1" remains as such, instead of becoming "1" "1". This was interpreted by delta as renamed file. Now these quotes are removed before the DIFF_PREFIXES are searched.
2024-08-24Fix `Catppuccin Latte` name in `LIGHT_SYNTAX_THEMES` list (#1823)Justin Su
2024-08-24Move AmbiguousDiffMinusCounter to hunk_header (#1825)Dan Davison
2024-08-24Bump version in download linksDan Davison
2024-08-24Bump versionDan Davison
2024-08-24Don't use a pager for --version (#1824)Dan Davison
2024-08-21Added `platypus` theme (#1819)Sarp User
* Added platypus theme
2024-08-20Evolve python hyperlink server exampleDan Davison
2024-08-20Evolve python hyperlink server exampleDan Davison
2024-08-20Fix typo in manualDan Davison
2024-08-20Tweak hyperlinks manual pageDan Davison
2024-08-20Clean up Python server example...Dan Davison
2024-08-20Tweak hyperlinks manual pageDan Davison
2024-08-20Tweak Python server exampleDan Davison
2024-08-20Add hyperlinks section to manual (#1816)Dan Davison
2024-08-16Add hyperlinks to github handlesDan Davison
2024-08-16Add maintainers section with @th1000s to READMEDan Davison
2024-08-16Update URLs for binariesDan Davison
2024-08-16Delete now-unused pricate homebrew formula step from Makefile (II)Dan Davison
2024-08-16Update --help in manualDan Davison
2024-08-16Delete now-unused pricate homebrew formula step from MakefileDan Davison
2024-08-16Evolve release MakefileDan Davison
2024-08-16Bump versionDan Davison
2024-08-16cd: build binaries targeting GNU libc on ubuntu-20.04, not latest Thomas Otto
This improves compatibility, as latest is 24.04 currently. The statically linked musl build still uses ubuntu-latest
2024-08-15Handle ambiguous diff header, '--- ' can also be present in a minus hunkThomas Otto
`diff -u file1 file2` output starts with '--- file1', a '-- 12' line being removed results in '--- 12', which was interpreted as the start of a new diff. Now the number of removed lines announced in the header as e.g. '@@ -1,4 +1,3 @@' is taken into account for this specific diff input.
2024-08-15Support passing arguments to git diff and diff (#1697)Dan Davison
Adds --diff-args with short form -@.
2024-08-12Do not wrap short help (-h) outputThomas Otto
2024-08-09Fix delta-toggle shell scriptDan Davison
2024-08-01Cargo toml dependencies all in one block, sortedThomas Otto
2024-08-01Fix build for rust 1.80Thomas Otto
Upgrade "time" (and its dependency chain rooted at "plist"), the previous version did not build with 1.80. Tell the new 'unexpected_cfgs' lint that 'tarpaulin_include' is okay Mark one clippy lint as a false positive
2024-08-01Use angle bracket around <urls>, regenerate help output markdownThomas Otto
2024-08-01Wrap --help output and use pagerThomas Otto
Tell clap to not wrap output, append `after_long_help()` (with matching ansi codes in this section), then manually wrap the result. The help output is now paginated if writing to a terminal. All code paths flow back to main(), so an invoked pager is properly waited for (by the OutputType drop impl).
2024-08-01Add wrap function for --help outputThomas Otto
Unicode and somewhat ANSI aware, can add indentation (skippable) and can also skip wrapping lines by using configurable magic prefixes.
2024-08-01Make drop impl of OutputType more prominentThomas Otto
2024-08-01OutputType: PagerCfg and oneshot_writeThomas Otto
Use new, smaller PagerCfg instead of the full Config, as for pager output only 3 variables are relevant. oneshot_write() can be used to write paginated output, usually before exiting.
2024-07-28chore: cleanup brew formula file in favor of core tapRui Chen
Signed-off-by: Rui Chen <rui@chenrui.dev>
2024-07-22Add --max-syntax-highlighting-length, set to 400Thomas Otto
--max-line-length increased to 3000, highlighting now stops after 400 characters. In that case the highlighting may be incorrect until it is reset for the next hunk.
2024-07-22Add truncate_str_short() which always returns a prefix of the inputThomas Otto
Document that the input of `truncate_str()` may be cut on a double width char ("fullwidth") - then the output is no longer a prefix of the input. `truncate_str_short()` could be faster by not constructing the result and instead only returning an index, but it will be used in rare edge cases so reusing existing logic is good enough. Common code moved to `truncate_str_impl()`. Assume (with fallback) that graphemes are at most 2 wide. Fewer allocations. Tests.
2024-07-21Disable light mode detection in tests (#1765)Tau Gärtli