Add line numbers - filter options

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
DFH
Posts: 976
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Add line numbers - filter options

Post by DFH »

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
DFH
Posts: 976
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Re: Add line numbers - filter options

Post by DFH »

Still awaiting a reply.
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Add line numbers - filter options

Post by DataMystic Support »

Hi David,

I plan to get back to you on all these items by Friday.

Regards,

Simon
Regards,

Simon Carter, https://www.DataMystic.com
https://www.JadeDiabetes.com - Insulin dose calculator for Type 1 diabetes
https://www.DownloadPipe.com - 250,000 free software downloads
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Add line numbers - filter options

Post by DataMystic Support »

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.
Regards,

Simon Carter, https://www.DataMystic.com
https://www.JadeDiabetes.com - Insulin dose calculator for Type 1 diabetes
https://www.DownloadPipe.com - 250,000 free software downloads
DFH
Posts: 976
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Re: Add line numbers - filter options

Post by DFH »

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.
Screenshot of filter UI
Screenshot of filter UI
Screenshot 2017-12-29 16.10.34.png (117.26 KiB) Viewed 6595 times

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
|   
|
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Add line numbers - filter options

Post by DataMystic Support »

Hi David,

This has been rectified for 10.6.2.
Regards,

Simon Carter, https://www.DataMystic.com
https://www.JadeDiabetes.com - Insulin dose calculator for Type 1 diabetes
https://www.DownloadPipe.com - 250,000 free software downloads
Post Reply