Commit Graph

1924 Commits (6aa5eb2d24a5cb1812df99a28d291df6de35a495)

Author SHA1 Message Date
Wilfred Hughes 6aa5eb2d24 More logging of text encoding detection 2025-07-02 22:28:48 +07:00
Wilfred Hughes a104d0ae90 Silence a clippy warning 2025-07-02 22:28:48 +07:00
Wilfred Hughes 390360f97a Add doc comment 2025-07-02 22:28:48 +07:00
Wilfred Hughes b14cc7c96f Make Windows-1252 detection stricter, consistent with other encodings
This should help with #841.
2025-06-20 23:20:48 +07:00
Wilfred Hughes 43eb109472 Display Flatpak status in --version 2025-06-18 21:14:47 +07:00
Wilfred Hughes 7628f5f51c Switch to jemalloc, at least for now
See discussions in #805.
2025-06-13 00:54:08 +07:00
Wilfred Hughes 1c1617c5d1 Add an atom node declaration for Verilog 2025-06-13 00:33:30 +07:00
Wilfred Hughes 2c963d831b Improve doc comments 2025-06-13 00:29:53 +07:00
Wilfred Hughes 6b522b867c Clarify atom nodes docs
This is a frequent source of confusion, so rewrite and add some
examples of when it's necessary and the consequence of not having it.
2025-06-13 00:27:14 +07:00
Bryce Berger 791b0e2bec add verilog, systemverilog support 2025-06-13 00:15:53 +07:00
Wilfred Hughes dbfc68ec6a Improve file detection on compressed files
Fixes #835
2025-05-21 00:24:28 +07:00
Kian-Meng Ang 39aacd8272 Fix typo
Found via `typos --hidden --format brief`
2025-05-09 09:18:03 +07:00
Harry Mander d9e9e90bcf Parse .ipynb as JSON 2025-05-06 06:17:35 +07:00
Wilfred Hughes 149c040c45 Prefer 'line-oriented diff' terminology
'Text diff' is confusing as the input files to difftastic's structural
diffing logic is also text. Line-oriented more accurately captures the
important aspect.
2025-04-28 09:05:11 +07:00
Wilfred Hughes 083efd06f6 Tweak file size formatting to one decimal place
Fixes #821
2025-04-08 08:54:48 +07:00
Wilfred Hughes aa04647514 Improve help text on other CLI options 2025-04-08 08:42:03 +07:00
Wilfred Hughes c4ba17b1ec Clarify --graph-limit
See discussion in #814
2025-04-08 08:40:31 +07:00
Wilfred Hughes 6e1ec52bdc Remove little-used itertools dependency 2025-03-21 00:11:44 +07:00
Wilfred Hughes 0e0e81dde7 Reference diff-slider-tools 2025-03-20 22:36:20 +07:00
Wilfred Hughes ba45a40f71 Elide lifetimes in more places
Versions of clippy after the MSRV complain about these, and it's fine
on our current Rust version too.
2025-03-18 00:27:11 +07:00
Wilfred Hughes 0e6c4ba77a Fix typo 2025-03-18 00:22:55 +07:00
Wilfred Hughes d8b715bd5b Rename myers_diff to LCS diff as it's not actually Myers algorithm 2025-03-09 23:55:08 +07:00
Wilfred Hughes ca9b7da43f Run cargo fmt 2025-03-06 23:03:40 +07:00
Wilfred Hughes 8953c55cf8 Pass String to new_atom
This is a very tiny perf hit, but allows us to pass newly allocated
strings to new_atom(), which will be necessary for normalising
case-insensitive languages.
2025-02-23 20:08:45 +07:00
Wilfred Hughes 0b386d332f Update Erlang parser to use crate
Whilst we're here, restore support for rebar files now the parser
supports these.
2025-02-22 22:06:42 +07:00
Wilfred Hughes 89e2a459d6 Update F# parser to use crate 2025-02-22 21:53:21 +07:00
Wilfred Hughes 1b04d17c4d Update Swift parser to use crate 2025-02-22 21:41:08 +07:00
Wilfred Hughes 97bab83730 Update Pascal parser to use crate
Closes #817
2025-02-22 21:34:10 +07:00
crbelaus 505a9f6c24 Consider Elixir sigils as atom nodes 2025-02-10 09:05:39 +07:00
Wilfred Hughes d42797fa7e Update Nix parser and use the crate from crates.io 2025-02-10 08:59:52 +07:00
Wilfred Hughes bd9c98050e Update Elixir parser and use crate from crates.io 2025-02-10 08:48:31 +07:00
Wilfred Hughes 59034daf60 Sort parsers alphabetically 2025-02-07 09:06:54 +07:00
Wilfred Hughes 17e6a54294 Ensure side-by-side-show-both always uses two columns
Fixes #812
2025-02-07 09:03:10 +07:00
Wilfred Hughes e83fd336a2 Use array consistently in tree_sitter_parser 2025-02-03 22:25:56 +07:00
Wilfred Hughes c14f567f81 Use FxHashSet everywhere
This is a performance improvement, and makes the code more consistent.

Instruction counts before:

3,137M instructions typing_*.ml
2,210M instructions slow_*.rs

Instruction counts after:

2,994M instructions typing_*.ml
2,180M instructions slow_*.rs

So almost a 5% reduction in instruction count.
2025-02-03 22:17:04 +07:00
Wilfred Hughes 6f35d13fee Update to latest tree-sitter Rust parser on crates.io 2025-01-25 17:10:30 +07:00
Wilfred Hughes 8fcfdae7bd Ignore .git subdirectories when diffing directoriesa
Closes #798
2025-01-21 21:54:00 +07:00
Wilfred Hughes ba843a689d Remove --missing-as-empty from argument parsing and man page
Fixes #802
2025-01-11 15:14:57 +07:00
Wilfred Hughes 09355c6c21 Make Windows-1252 detection stricter 2025-01-11 14:50:27 +07:00
Wilfred Hughes fadd0f22ef Support Windows-1252 and make UTF-16 detection stricter
Fixes #797
2025-01-04 15:48:39 +07:00
Wilfred Hughes 44be153e7d Use clap's dynamic String feature rather than another dependency 2025-01-03 21:33:05 +07:00
Wilfred Hughes 4796db333d Migrate to clap4
Closes #775
2025-01-03 21:10:16 +07:00
Wilfred Hughes 209ea7f0de Migrate to clap4 validators 2025-01-03 21:01:41 +07:00
Wilfred Hughes 5b7643602f Fix more clap deprecation issues 2025-01-03 20:49:41 +07:00
Wilfred Hughes c286656366 Fix more clap deprecation issues 2025-01-03 20:37:56 +07:00
Wilfred Hughes d5e58781be Fix another clap deprecation warning 2025-01-03 20:37:56 +07:00
Wilfred Hughes dfcb26c7af Use tree-sitter-yaml from crates.io 2024-12-21 14:19:40 +07:00
Wilfred Hughes dda64336e6 Use tree-sitter-make from crates.io 2024-12-21 14:10:07 +07:00
Wilfred Hughes b3606fc219 Use tree-sitter-xml from crates.io 2024-12-20 09:16:19 +07:00
Wilfred Hughes cef0b569dd Use tree-sitter-lua from crates.io 2024-12-20 09:12:16 +07:00