You are here: PSPad forum > English discussion forum > How to easy change to one line?

How to easy change to one line?

#1 How to easy change to one line?

Posted by: maki | Date: 2020-03-07 11:48 | IP: IP Logged

How to easy change to one line? Important for me!

Example:
05,69
65,50
38,63
47,54
80,62
60,79
44,70
46,68
51,11
26,56

Change to:
05,65,38,47,80,60,44,46,51,26
69,50,63,54,62,79,70,68,11,56

Options: Reply | Quote | Up ^


#2 Re: How to easy change to one line?

Posted by: pspad | Date: 2020-03-07 11:54 | IP: IP Logged

Menu / lines manipulation / join line
or
Script lists of values

Sorry. First you need to split it into 2 licts - column selectio /vit +paste
Or learn how to erite scrips for your spevial tasks

Edited 1 time(s). Last edit at 2020-03-07 11:56 by pspad.

Options: Reply | Quote | Up ^


#3 Re: How to easy change to one line?

Posted by: maki | Date: 2020-03-07 12:10 | IP: IP Logged

No scripts needed. 2 quick click.
Convert CSV Selection {comma, tab or user-defined separated} > Join Lines

Edited 1 time(s). Last edit at 2020-03-07 12:10 by maki.

Options: Reply | Quote | Up ^


#4 Re: How to easy change to one line?

Posted by: David in Delta | Date: 2020-04-22 22:49 | IP: IP Logged

Have you tried Ctrl-H (find and replace)?

I think you can Find $ and Replace ,[space]

The question mark at the end of the Find window pops open with the code for the end of line.

I would save the file first, then select the lines you want to combine, use Ctrl-H, and make sure to add a white space after the comma if you want some separation between your numbers.

Options: Reply | Quote | Up ^


#5 Re: How to easy change to one line?

Posted by: David in Delta | Date: 2020-04-22 23:38 | IP: IP Logged

Oops.

Just found this on www.pspad.com

ListToCSV.zip
448 B
ListToCSV (kimgkimg)
Converts a list of multiple lines to a single line of items separated by commas. eg. alpha beta gamma to "alpha,beta,gamma" Useful when having to create CSV lists of items for things like SQL queries.

Makes my idea redundant.

Options: Reply | Quote | Up ^


#6 Re: How to easy change to one line?

Posted by: pspad | Date: 2020-04-24 14:39 | IP: IP Logged

Part of the PSpad are scripts under List conversion
Script List of items does near the same.

By the small modification - remove brackets and spaces between items he can get result he needs. But Maki doesn't like anything where is necessary to learn anything new.
He needs some AI what will receive his command and does work instead of him. You can be his AI if you have enough time winking smiley

Options: Reply | Quote | Up ^


#7 Re: How to easy change to one line?

Posted by: maki | Date: 2020-04-24 15:24 | IP: IP Logged

Solved! Found Solution

No need script, macros or commands

replace with: \n

Alt+Backspace
CTRL+Y

Result.

Edited 3 time(s). Last edit at 2020-04-24 15:28 by maki.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR