[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Can your text editor do THIS?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 24
Thread images: 5

File: shortened_macro.webm (3MB, 1020x660px) Image search: [Google]
shortened_macro.webm
3MB, 1020x660px
Can your text editor do THIS?
>>
Most of them can
Search & Replace -> "_ with ",_ (space instead of underscore, substituted for visibility)
>>
>>59190455
Pretty sure about every text editor with regex replacement (=about every text editor) can do this.

Then again, I'd rather row select + pressing "," four times and then pretty print everything.
>>
>>59190498
That wouldn't work. It would put a comma after the name as well as health.
>>
>>59190455
what text editor is that?
>>
>>59190543
Vim on an 486.
>>
>>59190498
you're a retard

you'd have to use regex to do it properly
>>
>>59190455
Regex Find: "([0-9\-]+)"_
Replace: "\1",_

(spaces instead of underscores)
>>
>>59190864
nah, you have to take into account that the last literal doesn't get a comma, for example by looking at the following "
>>
Yes

t. textadept
>>
>>59190677
not in this case, no
>>
>>59191065
All of them get commas though.
>>
File: kill_yourself.jpg (13KB, 224x216px) Image search: [Google]
kill_yourself.jpg
13KB, 224x216px
>>59190455
1,$s/" /", /


/thread
>>
>>59193509
He only added the comma after the strings in the first 3 columns you dumb fucking nigger indian pajeet
>>
File: 1406654631817.gif (858KB, 240x228px) Image search: [Google]
1406654631817.gif
858KB, 240x228px
>>59193676
well then use a regex lookahead to fix it you nig
>>
>>59190455
Why wouldn't I have the commas there already when I first wrote each line?
>>
>>59190455
You mean a regex query replace?
>>
>>59195335
see the thread
>>
File: 1486420509063.jpg (8KB, 256x256px) Image search: [Google]
1486420509063.jpg
8KB, 256x256px
>>59191065
You dumb stupid nigger turbo pajeets cannot for the life of you spot a pattern.
>last literal doesn't get a comma
The last literal is also the only one that does not have a number directly before the closing double quote. Go back to fucking kindergarten
>>
>>59190455
that is a very slow terminal
>>
Even fucking notepad++ has this.
My editor can set all the commas at once, without going through all these lines. (I just have to click where it has to go before)
Stupid thread is stupid.
>>
>>59195369
>using a graphical WM

GET OUUUUT
>>
yes because it's fucking vim


the winning team
>>
Yes, it's very easy on emacs to record a macro

ctrl+x (
do your thing
ctrl+x )
ctrl+x e
OR
ctrl+u # of times ctrl+x e
Thread posts: 24
Thread images: 5


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.