I would like to have an option not to reject lines that fail
in the grep based sort. I know it sounds a bit silly but
here is the rationale:
Consider the Column 2+ pattern as provided by default:
^[^\t]*\t(.*)$
\1
This pattern will cause all lines that don't have at least a
tab and one character after the tab to be dropped.
I can work around part of the problem if I add |.* at the
end of the match pattern (causing lines that fail the
original pattern to be accepted with no text selected)
and adding a blank after the \1 in the replacement
pattern so the replacement isn't an empty string. That
will cause lines with empty or missing column 2 to sort
before the rest (which is what one would expect).
This, however, does not deal with completely empty lines
(or, at least, I can not come up with a pattern that deals
with it). Also, more importantly, there are more
complicated patterns where this approach becomes
infeasible.
If this option were implemented, I would think the most
reasonable rule is that any failing lines should be
considered to have sort field of low-values (causing it to
sort before anything else in an ascending sort)
hagborg@sbcglobal.net
Logged In: YES
user_id=599900
Yes, this request seems reasonable. Another approach would be to move
rejected lines to the Clipboard, so they could be easily pasted back into the
document.
Logged In: YES
user_id=599900
Yes, this request seems reasonable. Another approach would be to move
rejected lines to the Clipboard, so they could be easily pasted back into the
document.