You are here: PSPad forum > English discussion forum > delete lines

delete lines

#1 delete lines

Posted by: Gabriel_ACE | Date: 10/22/2018 13:02 | IP: IP Logged

hi!

I need delete all marked lines

this function exist?

Best Regards

Options: Reply | Quote | Up ^


#2 Re: delete lines

Posted by: pspad | Date: 10/22/2018 13:12 | IP: IP Logged

No, such function doesn't exists.
How did you mark lines? Manually?

If manually, there is possibility to write script, go through marks and delete lines
If you marked lines with search dialog, check Copy non matching and use copy button

Options: Reply | Quote | Up ^


#3 Re: delete lines

Posted by: Gabriel_ACE | Date: 10/23/2018 13:36 | IP: IP Logged

I use new function (the new button in ctrl + f) to mark all that I need to delete
I was thinking about an option that eliminate marked lines
what do you think? is it difficult??

Options: Reply | Quote | Up ^


#4 Re: delete lines

Posted by: pspad | Date: 10/23/2018 13:38 | IP: IP Logged

Use Ctrl+F dialog, check non matching and press Copy button.
It will copy all lines exclude matched into new Window and you have what you need - content without selected lines

Options: Reply | Quote | Up ^


#5 Re: delete lines

Posted by: Gabriel_ACE | Date: 10/26/2018 14:09 | IP: IP Logged

thz

Options: Reply | Quote | Up ^


#6 Re: delete lines

Posted by: Gabriel_ACE | Date: 11/05/2018 14:50 | IP: IP Logged

I tried to use that method, but I realize that it is not very practical

I have to do the search, save the result and then repeat the action for each time I need to delete text with different types of search

that's why it seemed more practical to be able to mark what I needed to erase
and with an option to delete by brand, all the content at the same time

Options: Reply | Quote | Up ^


#7 Re: delete lines

Posted by: pspad | Date: 11/05/2018 15:35 | IP: IP Logged

There is no necessary to save your file. Imagine, you need to delete lines with e.g. 5 different searchses.
When you will do copy nonmatching line, you will get the result in new window. Then you can continue with new window content and finally copy result from the last file into first one and save.

The otther possibility is made search with regular expressions and put there all search variation into one expression

Options: Reply | Quote | Up ^






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