Reputation: 1584
Input:
boston beach summer figural yellow blue
boston floral flowers still still-life food pink figural
boston horse pink purple house flowers floral figural
Expected output:
"boston beach summer figural yellow blue"
"boston floral flowers still still-life food pink figural"
"boston horse pink purple house flowers floral figural"
The actual input file has 600+ lines, and I'm looking at a quick way to wrap each line in quotes? Does the method involve using multiple cursors? How about macros?
Upvotes: 56
Views: 51421
Reputation: 111
None of these worked in Sublime Text 3 for a multi-column TSV file with tab spacing.
I found this worked for column 1:
Find: ^\s*\S+
Replace: "$0"
Upvotes: 4
Reputation: 36100
Method 1:
Replace (.*)
with "\1"
Method 2:
Ctrl+a, Ctrl+Shift+l, "
Method 3:
Ctrl+a, Ctrl+Shift+l, End, "
, Home, "
Upvotes: 33
Reputation: 8969
I would use a multiple cursors approach like this:
Windows
Mac
Upvotes: 179