Page 1 of 1

reverse Ctl+Shift+J possible?

Posted: Fri Feb 13, 2004 1:27 pm
by mo
A reverse Ctl+Shift+J feature would make it possible to take a comma separated list and move each item to a separate line to allow sorting.
Maybe this could be made a toggle, first time takes the list and breaks it down, second time same list, put's it back together?


Before I put this on the suggested features list, I would like to know if this can already be done -- I would appreciate being told how to do it

Posted: Fri Feb 13, 2004 2:21 pm
by MudGuard
Ctrl-Shift-J is Reformat in my Textpad - I don't see the connection to comma separated lists...

To split comma separated lists:
replace , by \n (with regex activated)

to rejoin the line:
replace \n by , (with regex activated)

Posted: Fri Feb 13, 2004 5:03 pm
by mo
MudGuard,

Thanks for the rx, which I will use unless I can get this feature. I use Ctrl+Shift+J to join sorted lists of keywords:

item,
item,
item,

to: item, item, item

quicker than the regex.