Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #21653

    jic
    Participant

    Greetings!

    Imagine these lines in the editor,

    line a
    line b
    line c
    line d
    line e
    line f

    I would like to add a 3 digit sequential file starting from 1. So, the result should be
    001 line a
    002 line b
    003 line c
    004 line d
    004 line e
    006 line f

    I tried some regular expression trying to replace ^ with various options, but none work. Any thoughts? Thanks.

    josé

    #21655

    sky
    Participant

    Step 1. Press “Ctrl + A” (Select all)
    Step 2. Press “Tab”
    Step 3. Change to CSV tab mode
    Step 4. Select all Col 1
    Step 5. Press “Alt + N” (Numbering…)
    Step 6. First Line = 001 , Increment = 1
    Step 7. “OK”

    #21662

    jic
    Participant

    Ok, that works somewhat, but then I have to take the tabs out. What would be nice is,
    Step 1. Press “Ctrl + A” (Select all, or select the lines desired)
    Step 5. Press “Alt + N” (Numbering…)
    Step 6. First Line = 001 , Increment = 1, Insert in column: 0
    Step 7. “OK”

    Step 6 is a new choice in the numbering function that would allow entry of numbers or sequential characters in the column chosen. Column 0 is before column 1.

    #21674

    sky
    Participant

    Step 1. Press “Ctrl + Home”
    Step 2. Edit -> Vertical Selection
    Step 3. Press “Alt + N” (Numbering…)
    Step 4. First Line = 001 , Increment = 1
    Step 5. “OK”

    #21675

    jic
    Participant

    Thanks. Wow. I was trying all of these different search/replace, but it’s much simpler. Thanks again.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Share with friends... Tweet about this on TwitterShare on FacebookShare on Google+Email this to someone