Enhancement of the COLUMN EDITOR feature
-
Hello, All,
In this topic, I would like to discuss about a possible improvement of the
Column Editorfeature… Let me explain :
-
Open any file
-
Put the caret, near the middle of current file, at any column
N -
Open the
Column Editorfeature -
Choose the
Text to Insertoption or theNumber to Insertoption with pertinent parameters
=> Presently, the
Column Editorfeature will insert the text or the list of numbers, at column locationN, throughout all the subsequent existing lines of the file.I propose an enhancement, with a new parameter, which would define the number of lines where the insertion of text or numbers would take place !
An example will make this clearer. Let’s suppose this INPUT text :
This is a simple example which shows how this new feature would act Througout all the lines of the current fileNote the two emmpty lines at the very end of file
-
Now, I put the caret right before the word
how, within the third line -
I choose the
Edit > Colum Editor...option -
I select, let’s say, the
Text to Insertoption, containing the sentenceThis is a test
+> After a click on the
OKbutton, the OUTPUT text is presently changed as :This is a simple example which shows This is a testhow this new feature would act Througout alThis is a testl the lines of the current This is a testfile This is a test This is a testNow, let’s imagine a new parameter, part of the
Column Editordialog, namedTotal Insertion Number, filled with the number15Then, it would add the text
This is a test15times, and would produce the following OUTPUT text :This is a simple example which shows This is a testhow this new feature would act Througout alThis is a testl the lines of the current This is a testfile This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a testIn other words :
-
It would act as usual as long as a current line exists in current file
-
It would add some lines, till the limit of
15, when no more line exists in current file
Of course, so as not to interfere with a possible
column-modeselection ormulti-selections, the use of this new capability would be allowed ONLY IF no initial selection exists, so ONLY IF a simgle caret is present, whatever its location in current file !
An other example could be :
-
You put the caret on the last empty line of a file
-
You open the
Column Editor -
For the new parameter, you choose, let’s say, the
100number
=>
100lines would be appended to the file with, either, the inserted text OR list of numbers
Do you think that this enhancement seems sensible ? I need your feedback before a possible pull request on GitHub !
Best Regards,
guy038
-
-
@guy038 said:
I need your feedback before a possible pull request on GitHub !
I think you mean before you “create an issue on GitHub”.
Feedback:
If I wanted to limit the lines for the common text insertion, I would create an empty column selection (what I call a “tall skinny caret”) over the lines to be affected, before invoking the column editor feature. If I do that, and then specify the insert text, what results is only on the lines touching the original selection.