Hi, @alan-kilborn and All,
Of course, I could use your method to achieve my goal but that is just the reason why I wanted this enhancement which should avoid any further operation !!
BTW, this idea occured to me while I was writing this other post :
https://community.notepad-plus-plus.org/topic/27511/surprising-regular-expression
In the meanwhile, I’ve found out a nice work-around to realize that goal ! Let’s imagine that you want to do a list of 743 empty lines exactly ( I chose that number as it’s a prime number ). Then :
Open a new tab Within N++
Hit the Enter key just once
Open the Replace dialog ( Ctrl + H )
Uncheck all box options
Check the Wrap around option ONLY
Select the Regular expression search mode
FIND \R
REPLACE $0$0
Click 10 times on the Replace All button
=> You should get a total of 1,025 lines ( Note that, after each replacement N, the number of lines increases to the value 2 × N + 1 )
The trick is to repeat the process up to the first number which is greater than 743 !
Now, open the Search > Go to... option ( Ctrl + G )
Search for the line 744 ( so 743 + 1 )
Then, select to the very end of file with the Ctrl + Shift + End shortcut
And finally, hit the Delete key
=> It should remain the expected 743 lines !
I readily admit that all the different tasks of my work-around do not take long. However, I still think that a new field Total insertion number, in the Column Editor dialog, filled with the value 743, would have been more elegant and straightforward !
Best Regards,
guy038