You are here: PSPad forum > English discussion forum > Re: delete lines
Posted by: Gabriel_ACE | Date: 2018-10-22 13:02 | IP: IP Logged
hi!
I need delete all marked lines
this function exist?
Best Regards
Posted by: pspad | Date: 2018-10-22 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
Posted by: Gabriel_ACE | Date: 2018-10-23 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??
Posted by: pspad | Date: 2018-10-23 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
Posted by: Gabriel_ACE | Date: 2018-11-05 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
Posted by: pspad | Date: 2018-11-05 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
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