I'd like to be able to break the filter -k call by doing something from the custom alias called (calling /return, probably).
Suprisingly, even /halt doesn't do anything:
//alias testbreak echo -a $!1- $(|) halt | filter -fk $qt($mircini) testbreak | alias testbreak
This will halt because echo -a fails on empty line, and /filter was changed to halt if the custom alias throws an error (no problem with this)
So, maybe /halt not halting is a bug here, but in any case I think we should be able to break from /filter without breaking a loop or halting the current execution.
An example? Well let's suppose you have an INI file and you want to load a whole section to a custom @window, but you need to modify the actual output line, you can use filter with -r to start matching at the line where the section starts, and keep matching until you find an empty line, I could theorically use the above with :error to halt and hide the error but that doesn't seem like a good practice/idea.