rainman74 / NPPTextFX2

TextFX2 is a Notepad++ plugin which performs a variety of common conversions on selected text.
GNU General Public License v3.0
121 stars 10 forks source link

[Feature Optimization - Suggestion] About TextFX2: Menu Tools > Insert Line Numbers #17

Open wonkawilly opened 10 months ago

wonkawilly commented 10 months ago

That command requires to select some text before inserting line numbers before it. IMHO it should not require that but instead that command should:

  1. Insert line number at caret position directly, without the need of any text selection.
  2. Work even with column mode selections (For example Alt+DownArrow)
  3. Work even with multi carets mode (Ctrl+LeftMouseClicks) inserting line numbers in multiple lines even if the carets are not put into contiguous lines or even if there are multiple carets into the same line.
  4. Also it should allow the user to choose if adding or not zeros before the row number or not adding them at all and write just the row number. Should be good to have the possibility to let the user to choose the number of zeros to add at the beginning of the row number written into the text: at the moment in fact it adds 7 (=SEVEN) zeros before the row n. 1 ; 00000001 that is not always the wanted behavior.

Thank you.

rainman74 commented 10 months ago

I'm not actively developing TextFX2 at the moment, but I'm happy to integrate PR and publish with it. If you set a PR for it, I will merge it.

wonkawilly commented 9 months ago

I am really sorry but I am not a programmer in c or c++ or c# and I am not even completely used to github either. So I am not sure what even is a PR and how it works and how I can create one of it and what I should put in it: in fact I usually just make comments to comunicate ideas as the above one but unfortunately I am not capable to do much more: I wish a was. Please accept my deepest apologies for my ignorance about the subject.