Hi Neil,
> On Apr 3, 2025, at 4:37 PM, 'Neil Hodgson' via scintilla-interest <
scintilla...@googlegroups.com> wrote:
>
> Mitchell:
>
>> With change history enabled long enough, the margin eventually becomes all or mostly green. What is the recommended way to clear change history but preserve the ability to undo?
>
> The change history implementation depends closely on the undo history and has to match exactly. The simplest approach for now is to turn off change history or just hide it.
I’ve tried to turn it off and back on, but that didn’t work, because like you said, it’s dependent on undo history. (In this case, it has to be empty before turning it back on.)
>
>> Subsequent edits should still create modified markers. I can close and re-open a file, but I lose undo history. I suppose I could maybe use the new feature to save/restore undo history, but that seems a bit overkill.
>
> It would be possible to truncate both undo and change history at some point, removing both old change history markers and the ability to undo the changes they represent but this is similar to the save and reload case, just more selective.
>
> There are possible future features like assigning an 'archaic' edition to changes before some point and then allowing choice of marker (including invisible) for that archaic edition. However, the implementation of change history was very complex and adding another edition that can still be undone correctly will increase complexity still further. I barely handled the original implementation effort.
May I ask if you actually use this feature on a daily basis? Or did you implement it for someone other than yourself?
Cheers,
Mitchell