Tagged: sequential lines added numbers
- AuthorPosts
- April 3, 2017 at 1:55 pm #21653jicParticipant
Greetings!
Imagine these lines in the editor,
line a
line b
line c
line d
line e
line fI 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 fI tried some regular expression trying to replace ^ with various options, but none work. Any thoughts? Thanks.
josé
April 3, 2017 at 5:16 pm #21655skyParticipantStep 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”April 4, 2017 at 9:41 am #21662jicParticipantOk, 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.
April 4, 2017 at 5:52 pm #21674skyParticipantStep 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”April 5, 2017 at 9:57 am #21675jicParticipantThanks. Wow. I was trying all of these different search/replace, but it’s much simpler. Thanks again.
- AuthorPosts
- You must be logged in to reply to this topic.