Commit graph

23 commits

Author SHA1 Message Date
332ca5582b cargo format 2025-09-11 15:20:00 -05:00
fdecdbc6c9 fp 2025-09-11 15:18:29 -05:00
7e86fb2e55 feat: rename similar -> likewise 2025-09-11 13:31:09 -05:00
Armin Ronacher
11d18ca26b Added serde example 2021-10-03 09:02:22 +02:00
Armin Ronacher
a3e10af892
Make the change type be generic over any T rather &T (#31)
This makes the interface of this crate more flexible as the utility
methods such as `iter_changes` now also work if a container does not
contain references.
2021-09-11 11:20:51 +02:00
Armin Ronacher
9a85c6013f Remove assert example and link to similar-asserts 2021-02-25 23:42:33 +01:00
Armin Ronacher
14874efedc Added an example that shows how similar performs for large diffs 2021-02-25 22:23:35 +01:00
Armin Ronacher
7e628d78d8
Add compaction support (#22) 2021-02-25 22:13:43 +01:00
Armin Ronacher
df78bdca1c Added basic assertion example 2021-02-07 22:10:52 +01:00
Armin Ronacher
777105fbb0
Added slice remapper and improved documentation (#8)
* Experimental slice remapper
* Added iter_slices to DiffOp
* Improvements to the utility diff functions
* Documentation improvements
* More documentation updates on utils
* More documentation on main text diff
2021-02-06 21:41:49 +01:00
Armin Ronacher
844769ae19 Move all text functionality toplevel 2021-02-03 00:56:17 +01:00
Armin Ronacher
1991955c52 Restructure crate layout 2021-02-02 22:44:52 +01:00
Armin Ronacher
34e5b3d571 Some internal refactorings 2021-02-02 20:22:10 +01:00
Armin Ronacher
4b85e70f91
Add support for byte diffing (#7)
Restructured text diffing to also support bstr
2021-02-02 14:16:00 +01:00
Armin Ronacher
e14b26502b Make InlineChange consistent with Change for missing_newline 2021-01-31 22:16:45 +01:00
Armin Ronacher
d0dd42e4af Improved display for inline-terminal 2021-01-31 22:06:08 +01:00
Armin Ronacher
f3e401fc17 Change behavior of inline diff to be word based
This also fixes a bug with bad indexes and updates the inline terminal
example.
2021-01-31 22:02:09 +01:00
Armin Ronacher
e63fe172c5 Slightly improve rendering inline-terminal example 2021-01-31 20:32:10 +01:00
Armin Ronacher
5d322d1e3d Improve terminal-inline example 2021-01-31 20:29:32 +01:00
Armin Ronacher
b601164a60 Added initial support for inline diff highlighting 2021-01-31 18:22:37 +01:00
Armin Ronacher
182a998e0f Added close-matches example 2021-01-30 23:28:01 +01:00
Armin Ronacher
020701c4d5 Improve diff op grouping for full matches
This changes the behavior of the diff op grouping function to return
an empty result if the diff is a full match.  This also adds an example
to demonstrate unified diff rendering.
2021-01-30 23:11:35 +01:00
Armin Ronacher
96bbaf1fdf Added virtual newline handling and example 2021-01-30 13:45:07 +01:00