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
Armin Ronacher
71e0498c49
Fight some more short variable names
2021-01-17 23:18:20 +01:00
Armin Ronacher
0fb88ebe7d
Avoid one character names in myers
2021-01-17 23:14:30 +01:00
Armin Ronacher
e556888ce5
Some more saner variable names
2021-01-17 23:10:01 +01:00
Armin Ronacher
af43d14243
Remove a macro for myers
2021-01-17 23:07:03 +01:00
Armin Ronacher
fa11404bcb
Fight bad variable names in replacer
2021-01-17 22:59:50 +01:00
Armin Ronacher
e1c6cb8a42
Reorder fields in patience diff
2021-01-17 22:41:45 +01:00
Armin Ronacher
5ba816486e
Fight some one character variable names
2021-01-17 22:38:02 +01:00
Armin Ronacher
3308d7b4d6
Initial implementation
2021-01-17 22:18:57 +01:00