Clay Buxton
Clay Buxton

Reputation: 11

How to add a list in front of current list in Sublime Text

I need to add a list of names in front of a current list of number in sublime and having a hard time figuring out how to do it.

Basically if I have list 1

Tom
Jerry
Mary
Sue

and

12
34
45
39

I need the final text file to read

12 Tom
34 Jerry
45 Mary
39 Sue

I would do it by hand, but its around 800 entries each with about 25 sets of numbers after it.

Thanks!

Upvotes: 1

Views: 355

Answers (1)

Enteleform
Enteleform

Reputation: 3833

  • select list 1
  • press Ctrl + Shift + L to split the selection into lines
  • cut the selected lines
  • select list 2
  • press Ctrl + Shift + L to split the selection into lines
  • press End to go to the end of each line & add a space character
  • paste the previously copied text

 

Note:
This only works if both selections have the same number of lines.

Upvotes: 3

Related Questions