reverse Ctl+Shift+J possible?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
mo
Posts: 306
Joined: Tue Mar 11, 2003 1:40 am

reverse Ctl+Shift+J possible?

Post 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
Best Wishes!
Mike Olds
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post 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)
mo
Posts: 306
Joined: Tue Mar 11, 2003 1:40 am

Post 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.
Best Wishes!
Mike Olds
Post Reply