scholarsmate commented on PR #883: URL: https://github.com/apache/daffodil-vscode/pull/883#issuecomment-1789845035
@stricklandrbls, these selections should not grow unless we're doing overwrite only. If we are doing overwrite only, I like the second GIF that shows what _additional_ bytes will be overwritten if the changes are applied. `applyChanges` by default _effectively_ deletes the original segment, and inserts the new one. If overwrite only is used, it _effectively_ overwrites the bytes starting at the given offset for the length of the edited segment. I say _effectively_ because Ωedit™ has an algorithm to change one segment into another using the smallest change possible. You _could_ use Ωedit™ [viewports](https://github.com/ctc-oss/omega-edit/wiki#viewports) to power the selections and keep them updated when changes are made. They are designed to track changes in data segments from a content perspective (use `isFloating = true`) or from a position perspective (use `isFloating = false`). In this case, we want the the viewport to move with changes i the content, so use `isFloating = true`. Ωedit™ can handle _many_ of these for you and is one of the reasons for having floating viewports. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
