Commit Graph

1999 Commits (0f2b1022f2cc973665115769c10bbf0a55237e00)

Author SHA1 Message Date
Antonin Delpeuch 0f2b1022f2 Unvendor tree-sitter-clojure 2025-11-15 14:10:32 +07:00
Wilfred Hughes 0a3f8c2f92 Merge adjacent spans to normalise output in regression tests 2025-11-15 02:40:43 +07:00
Wilfred Hughes 57bcd173a7 Fix a clippy warning on newer rust due to lint ordering 2025-11-15 02:24:47 +07:00
Wilfred Hughes 3943c1401a Don't consider - as a word character
This produced some unfortunate subword diffs when mixing words, numbers and
hyphens.

Fixes #918
2025-11-14 16:42:25 +07:00
Wilfred Hughes c2c562f579 Fix example in doc comment 2025-11-14 16:29:17 +07:00
Wilfred Hughes c2c74fe1f4 Clarify comment 2025-11-14 16:28:54 +07:00
Wilfred Hughes 3e567b001d More YAML file patterns
Fixes #913
2025-11-14 16:14:50 +07:00
Wilfred Hughes dd18b1d6cd Tweak variable name for MatchedPos values 2025-11-10 22:23:09 +07:00
adamnemecek d615490493
various refactorings (#909)
* ran `cargo clippy --fix -- -Wclippy::use_self`

* refactoring

* refactored counting functions to use `std::iter::successors`
2025-10-26 16:49:08 +07:00
Wilfred Hughes 020dd7d8dd Define a separate type for content IDs 2025-10-25 01:13:48 +07:00
Wilfred Hughes 84e9a9e673 Fix word splitting with hyphens
Fixes #908
2025-10-23 09:50:06 +07:00
Wilfred Hughes 648fe733ba Improve bash atoms
Fixes #903
2025-10-23 09:37:53 +07:00
Wilfred Hughes 6f47e787ab Format errors more consistently 2025-10-22 01:03:01 +07:00
Wilfred Hughes a96ed2de96 Improve binary change descriptions 2025-10-22 00:49:42 +07:00
Wilfred Hughes 86e31458fc Use colour to make errors more obvious 2025-10-20 00:47:53 +07:00
Wilfred Hughes a22b32d82d Clarify doc comment 2025-10-20 00:38:48 +07:00
Antonin Delpeuch ef5cd765ef Unvendor tree-sitter-qmljs 2025-10-18 09:57:38 +07:00
Wilfred Hughes 160e184933 Revert "Autodetect dark/light terminals"
This reverts commit bf335094b8.

Doing `git dlog -p` and waiting shows a bunch of

ESCESCESC

in the terminal, so I don't think terminal-colorsaurus is
quite ready for difftastic yet.
2025-10-17 00:27:44 +07:00
Antonin Delpeuch 2a65dd7e02
Migrate to tree-sitter-sequel (#905)
For #891.
2025-10-15 00:52:40 +07:00
Wilfred Hughes aca32ba1ac Add doc comments 2025-10-14 00:26:29 +07:00
Antonin Delpeuch b0e331eb2f Unvendor tree-sitter-ada 2025-10-12 22:53:42 +07:00
Wilfred Hughes 43274db8ca Silence a clippy lint 2025-10-11 23:08:14 +07:00
Wilfred Hughes fadf9b68ed Fix clippy warning 2025-10-11 23:07:07 +07:00
Antonin Delpeuch 05a0736862 Unvendor tree-sitter-scheme 2025-10-10 08:49:05 +07:00
Antonin Delpeuch 85bda2f11b Unvendor tree-sitter-racket 2025-10-09 22:55:12 +07:00
Antonin Delpeuch 7cc43998a7 Unvendor tree-sitter-sfapex parser 2025-10-09 07:39:06 +07:00
Antonin Delpeuch 63cfdd2f82 Remove stray comment 2025-10-09 07:38:11 +07:00
Antonin Delpeuch 1bbcb20040 Unvendor tree-sitter-newick
For #891.
2025-10-08 20:14:15 +07:00
Wilfred Hughes 5fb7684b38 Fix broken line wrapping in --help for git invocations 2025-10-07 18:19:34 +07:00
Wilfred Hughes 640358fd7c Only use OSC 8 on a TTY 2025-10-07 18:19:34 +07:00
Antonin Delpeuch 6047469f71 Unvendor tree-sitter-gleam
For #891.
2025-10-07 09:46:07 +07:00
Wilfred Hughes dc37b874ac Make URL clickable in --help 2025-10-06 23:23:29 +07:00
Wilfred Hughes 81c88ba1d6 Document git diff conventions in --help 2025-10-06 23:10:41 +07:00
Wilfred Hughes 7a0e399454 Show example invocations in bold in --help 2025-10-06 23:06:33 +07:00
Wilfred Hughes b57ea96b88 Factor out colour TTY detection 2025-10-06 22:59:04 +07:00
Wilfred Hughes bf335094b8 Autodetect dark/light terminals
Closes #890
2025-10-06 22:23:43 +07:00
Antonin Delpeuch 3e8e78c991
Unvendor tree-sitter-elm (#893)
Co-authored-by: Wilfred Hughes <me@wilfred.me.uk>
2025-10-06 13:53:57 +07:00
Antonin Delpeuch 35f63d1015 Unvendor tree-sitter-devicetree 2025-10-06 21:52:29 +07:00
Antonin Delpeuch 6fbd425b55 Unvendor tree-sitter-dart 2025-10-05 21:09:41 +07:00
Antonin Delpeuch dd5ce7ae3d Unvendor tree-sitter-r 2025-10-05 11:19:48 +07:00
Wilfred Hughes 84d037343d Fix overly wide columns when last hunk is near start of file 2025-10-05 00:27:18 +07:00
Wilfred Hughes 5f43683d99 Continuation dots should depend on file lines, not visible lines 2025-10-04 17:16:49 +07:00
Wilfred Hughes 1033c0d152 Clarify struct field names 2025-10-04 17:15:35 +07:00
Wilfred Hughes 6ffa3613cc Define a separate source dimension that's explicitly the maximum line in the file 2025-10-04 17:14:09 +07:00
Wilfred Hughes 3e8324913f Another doc comment 2025-10-04 17:14:09 +07:00
Wilfred Hughes 117d20c527 Add doc comment 2025-10-04 17:14:09 +07:00
Antonin Delpeuch 6d7b594aca Unvendor tree-sitter-hcl 2025-10-04 09:31:32 +07:00
Antonin Delpeuch 3a94668aee Unvendor tree-sitter-solidity 2025-10-04 09:29:38 +07:00
Wilfred Hughes 65a803b203 Improve column width calculation on hunks
Instead of considering the column width for the large line number in
the hunk, consider the largest line number from all hunks for this
file.

Fixes #753
2025-10-02 22:41:35 +07:00
Wilfred Hughes b1783c4e6a Add comment clarifying . line number rendering rationale 2025-10-02 22:41:35 +07:00