I am processing multiple input files.
I want to use the Add line numbers filter within a subfilter that restricts to certain matching lines.
There's a tick box option called "Don't reset at the end of file (useful in subfilters)".
btw. The option name is actually misleading when it refers to a file.
If I leave this ticked, the line numbers are never reset, so the line numbers for input file 2 continue after the last number for file 1, etc.
If I untick it, every added line number is reset. i.e. They all become "001" which is not useful at all.
I need something more versatile.
i.e. To reset ONLY at the start of a new input file, but not to reset within the subfilter.
Is this something you can fix?
Best regards,
David
Add line numbers - filter options
Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators
-
- Posts: 988
- Joined: Sun Dec 09, 2007 2:49 am
- Location: UK
-
- Posts: 988
- Joined: Sun Dec 09, 2007 2:49 am
- Location: UK
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: Add line numbers - filter options
Hi David,
I plan to get back to you on all these items by Friday.
Regards,
Simon
I plan to get back to you on all these items by Friday.
Regards,
Simon
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: Add line numbers - filter options
Now added ready for next release:
Reset at start of new file
When this field is checked, the line number gets reset when a new file is started.
Reset at start of new file
When this field is checked, the line number gets reset when a new file is started.
-
- Posts: 988
- Joined: Sun Dec 09, 2007 2:49 am
- Location: UK
Re: Add line numbers - filter options
Hi Simon,
I don't often use the Add line numbers filter, but when I do, I expect it to work properly.
When used under a Restrict filter, ticking the option to Reset at start of new file still does not work!
You claimed to have fixed this 16 months ago. Why am I still seeing it behave incorrectly?
NB. Ticking the option to Reset at end of restriction works fine.
Best regards,
David
PS. It also looks as though the UI tick boxes do not match what the filter is supposed to do?
Even so, it makes no difference to the output whether or not the box is ticked.
I don't often use the Add line numbers filter, but when I do, I expect it to work properly.
When used under a Restrict filter, ticking the option to Reset at start of new file still does not work!
You claimed to have fixed this 16 months ago. Why am I still seeing it behave incorrectly?
NB. Ticking the option to Reset at end of restriction works fine.
Best regards,
David
PS. It also looks as though the UI tick boxes do not match what the filter is supposed to do?
Even so, it makes no difference to the output whether or not the box is ticked.
Code: Select all
Perl pattern [<work.+>\n(.+\n)\s+</work>] with []
| [X] Match case
| [ ] Whole words only
| [ ] Case sensitive replace
| [ ] Prompt on replace
| [ ] Skip prompt if identical
| [ ] First only
| [ ] Extract matches
| Maximum text buffer size 4096
| [ ] Maximum match (greedy)
| [ ] Allow comments
| [X] '.' matches newline
| [X] UTF-8 Support
|
|
|--Add line numbers
| Start line 1
| Increment 1
| [ ] Don't increment on blank lines
| [ ] Don't number blank lines
| Format [%3.3d]\t
| [X] Reset at end of restriction
| [ ] Reset at start of new file
|
|
David
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: Add line numbers - filter options
Hi David,
This has been rectified for 10.6.2.
This has been rectified for 10.6.2.