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
e53427b56f
Expose get_diff_ratio
2021-02-01 14:05:44 +01:00
Armin Ronacher
8089e56f07
Small refactoring in replace
2021-02-01 13:27:32 +01:00
Armin Ronacher
37587908de
Add proper multi-sequence inline highlighting
...
Fixes #5
2021-02-01 01:38:00 +01:00
Armin Ronacher
e14b26502b
Make InlineChange consistent with Change for missing_newline
2021-01-31 22:16:45 +01:00
Armin Ronacher
0a4dd224f5
Added support for unicode word splitting and change inline to use it
2021-01-31 22:13:56 +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
459fdfdf9d
Change word diffing to split into words and spaces
2021-01-31 21:42:57 +01:00
Armin Ronacher
a4128af756
Silence a clippy lint
2021-01-31 19:35:59 +01:00
Armin Ronacher
158c28784d
Added missing docs
2021-01-31 19:35:20 +01:00
Armin Ronacher
7abcdc09d8
Added documentation updates
2021-01-31 19:29:06 +01:00
Armin Ronacher
a9a11e9099
Make missing newline hint in unified diff configurable
2021-01-31 19:23:22 +01:00
Armin Ronacher
4db3f2f77e
Change inline changes code to patience
2021-01-31 18:26:16 +01:00
Armin Ronacher
8ea4590a7b
Fix snapshots for newline changes
2021-01-31 18:26:06 +01:00
Armin Ronacher
b601164a60
Added initial support for inline diff highlighting
2021-01-31 18:22:37 +01:00
Armin Ronacher
d0a715d7af
Fixed example in readme and update lib.rs example
2021-01-30 23:23:11 +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
4459c5ee3a
Change default udiff context radius to 3
2021-01-30 22:57:53 +01:00
Armin Ronacher
bce4191356
Explain unified diff header parameter
2021-01-30 22:52:52 +01:00
Armin Ronacher
861c53889d
Moved code around for unified diff handling
2021-01-30 22:42:01 +01:00
Armin Ronacher
503d912262
Refactor change iteration
2021-01-30 22:30:38 +01:00
Armin Ronacher
94890c52a5
Customize unified diff formatting
2021-01-30 20:45:31 +01:00
Armin Ronacher
96bbaf1fdf
Added virtual newline handling and example
2021-01-30 13:45:07 +01:00
Armin Ronacher
da32711e1a
Added DiffHook::apply_to_hook
2021-01-27 18:08:36 +01:00
Armin Ronacher
8a8e1c4822
Improvements to get_close_matches
2021-01-24 22:14:37 +01:00
Armin Ronacher
892851d060
Added get_close_matches
2021-01-24 14:09:24 +01:00
Armin Ronacher
7603aeb708
Added ratio function to changelog and added empty test case
2021-01-24 11:43:15 +01:00
Armin Ronacher
1ba57dd21a
Added missing snapshot files
2021-01-24 11:40:31 +01:00
Armin Ronacher
602b587c2d
Move more snapshots to separate files
2021-01-24 11:27:46 +01:00
Armin Ronacher
1baa23ddcc
Change as_tag_tuple to work by reference
2021-01-24 11:25:27 +01:00
Armin Ronacher
16d1eea8fc
Feature flagged out the text module
2021-01-24 09:26:56 +01:00
Armin Ronacher
18fff98d22
Use named snapshots for tests
2021-01-24 09:17:09 +01:00
Armin Ronacher
93ded2e62c
Document grapheme diffing and fix from_chars/from_words
2021-01-24 09:13:15 +01:00
Armin Ronacher
1b96739cc3
Added support for grapheme and char diffing
2021-01-24 09:07:43 +01:00
Armin Ronacher
fdaf81371c
Small documentation updates on text
2021-01-24 08:48:51 +01:00
Armin Ronacher
5dca6ae665
Fix bug in patience
2021-01-24 03:01:40 +01:00
Armin Ronacher
74a3ed0dd8
Update readme and cargo metadata
2021-01-24 02:25:42 +01:00
Armin Ronacher
136afc5193
Small documentation updates
2021-01-24 02:18:30 +01:00
Armin Ronacher
bf03a57c03
Small refactor on the api
2021-01-24 02:11:20 +01:00
Armin Ronacher
8aaa934925
Added unified diff text api
2021-01-24 01:58:14 +01:00
Armin Ronacher
c0b61f95b0
Initial work to refactor the text module
2021-01-23 22:55:42 +01:00
Armin Ronacher
8692e89b0a
Add utility methods to diff that capture
2021-01-23 22:29:10 +01:00
Armin Ronacher
c9b0aa2eef
Remove text utility functions in anticipation of API change
2021-01-23 22:07:56 +01:00
Armin Ronacher
ca19caddc2
Implement diff op grouping for capture hook
2021-01-23 22:00:05 +01:00
Armin Ronacher
34dd260dbb
Added text diff utilities
2021-01-18 21:37:04 +01:00
Armin Ronacher
bc97614946
Slightly improve documentation
2021-01-17 23:53:20 +01:00
Armin Ronacher
be49f4b55f
Replace all tests with insta tests
2021-01-17 23:47:57 +01:00
Armin Ronacher
51e9b6e192
Remove unused method on capture hook
2021-01-17 23:43:54 +01:00
Armin Ronacher
7c8d07df6d
Added better tests for myers and patience, added capture hook
2021-01-17 23:42:38 +01:00
Armin Ronacher
501ca2fd5f
Rearrange code to be more consistent
2021-01-17 23:19:16 +01:00