Line by line filtering now works properly, but replacement has been disabled, so this is not yet ready for merging