Hi, the LineFilter macro do not keep the Markers.
The reason is that it rewrite entirely the buffer. I think it could be faster if it would change the Buffer instead and use Segment
1. When deleting lines Markers are preserved now.
This is achieved by removing every matched line via buffer.remove(), which seems to take some time. This action is now much slower (about factor 5)!
2. Using Segment instead of String (but can't see a performance push).
Could someone take a look at this please, especially at the deleting performance? Thanks.
File Added: Line_Filter.bsh
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Attached is the macro with the following changes:
1. When deleting lines Markers are preserved now.
This is achieved by removing every matched line via buffer.remove(), which seems to take some time. This action is now much slower (about factor 5)!
2. Using Segment instead of String (but can't see a performance push).
Could someone take a look at this please, especially at the deleting performance? Thanks.
File Added: Line_Filter.bsh