Menu

Replace (Numeric Like Math)

2007-06-25
2012-11-14
  • Nobody/Anonymous

    Now I know you can replace i.e xxx with yyy etc etc...
    but how about if I got this:
    heyx
    heyx
    heyx

    And then I want to replace all the x with numbers.
    So I can simply fill in the start number, so i.e
    if I fill in the startnumber 234, the output would be:
    hey234
    hey235
    hey236

    This could really save some time,
    Like if I also wanna do a list, I can do:
    x -
    x -
    x -
    x -
    x -
    x -
    x -
    x -
    x -
    x -

    And then I do this new function starting with number 1,
    and the output would simply be:
    1 -
    2 -
    3 -
    4 -
    5 -
    6 -
    7 -
    8 -
    9 -
    10 -

    Yeay xD
    Let me know what you think. :)
    You can also contact me at medda86@hotmail.com

    Best Regards Medda

     
    • Don HO

      Don HO - 2007-06-25

      You're talking about the column edition.

      It'll be in the next release (v4.2).

      Don

       
    • Greg Bullock

      Greg Bullock - 2007-06-26

      I believe the first three items in the Plugins: TextFX: TextFX Edit menu can already do most, maybe all, of this, but I have a tough time remembering how to use them to full advantage.  You'll have to consult the TextFX documentation for the details.

      Regards.
      Greg

       
    • Greg Bullock

      Greg Bullock - 2007-06-28

      Starting with

      heyx
      heyx
      heyx

      Copy the text "234#" (without the quotes) to the clipboard.
      Put your cursor before the x in the first line.  Hold down the <Alt>+<Shift> keys, and move the cursor just past the x in the last line.
      Choose TextFX: TextFX Edit: Insert (Clipboard) through lines.
      You now have

      hey234x
      hey235x
      hey236x

      You can delete the x's with search/replace or with a keystroke macro.  Better yet, don't bother typing the x's in the first place.

      Similar steps will also work for the second task you mentioned, but in some cases you can more simply use TextFX: TextFX Tools: Insert Line Numbers.

      Regards.
      Greg

       
      • Greg Bullock

        Greg Bullock - 2007-06-28

        Whoops!  Correction.  I meant to type "#234", not "234#".

        Greg