Mergely
Mergely copied to clipboard
Collapse non-changes incl. tolerance
First glance of omitting non-changes by using the CodeMirror's text-marking collapse functionality. This includes a tolerance of 3 lines before and after each change. Further improvements under investigation (if you have any suggestions, please shoot):
- Replace collapsed coded with a space or line;
- Correct fancy markup drawings in the middle;
- Show collapsed line numbers.
It's a very good start. Code is clean too. I was able to get the Mergely editor to use the new option easy enough. Some issues I had with an example file:
- appears to always show line 1
- numbering is wonky
- appears to show the last few lines
- merge/left right seems to reset the view
Have you seen the CodeMirror code-folding demo? https://codemirror.net/demo/folding.html. I wonder if it is useful here?
Thanks for the quick review.
- Indeed because the 1st one starts 1 line after each change or line 0 the 1st time. Working on that!
- Numbering should be correct, but is hard to read now because they don't follow.
- Seems to be the same problem as point 1. Here it seem to be more lines.
- Not sure what you mean here. It's only when you merge left into right? I don't see a difference.