<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Something amazingly useful I fear is not a thing regarding deleting text]]></title><description><![CDATA[<p dir="auto">I am an admin. It look at mountains of log files. Often I need to just pass or keep sections of the logs.<br />
I would like to know if there is a way to ‘crop’ my text files.<br />
By this, I mean I want to highlight a certain portion of text and then delete everything that is NOT highlighted with a right click or shortcut key.<br />
I AM AN ADMIN. I repeat this to make clear I am obviously aware how to copy paste. I do not wish to create a new document. I wish to flush unnecessary miles of my current document.<br />
Is this possible?<br />
Thank you for your time.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21757/something-amazingly-useful-i-fear-is-not-a-thing-regarding-deleting-text</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 01:08:03 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21757.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 30 Aug 2021 18:24:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Something amazingly useful I fear is not a thing regarding deleting text on Tue, 31 Aug 2021 19:50:35 GMT]]></title><description><![CDATA[<p dir="auto">Yes, but copy selected text does not need to have multiple selections active at the time of doing the copy.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69414</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69414</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Tue, 31 Aug 2021 19:50:35 GMT</pubDate></item><item><title><![CDATA[Reply to Something amazingly useful I fear is not a thing regarding deleting text on Tue, 31 Aug 2021 19:45:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> said in <a href="/post/69412">Something amazingly useful I fear is not a thing regarding deleting text</a>:</p>
<blockquote>
<p dir="auto">and there is this copy styled text feature in the search menu,<br />
which could be used within the macro if more than one block of text is highlighted</p>
</blockquote>
<p dir="auto">Actually, if <em>Multi-Editing</em> is enabled, the original macro handles “more than one block” just fine, no need to dabble in “styles” or “Copy Styled Text”.</p>
<p dir="auto"><img src="/assets/uploads/files/1630439056673-e43a4b11-11a5-4605-a058-9ec00f471712-image.png" alt="e43a4b11-11a5-4605-a058-9ec00f471712-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/69413</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69413</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 31 Aug 2021 19:45:54 GMT</pubDate></item><item><title><![CDATA[Reply to Something amazingly useful I fear is not a thing regarding deleting text on Tue, 31 Aug 2021 19:38:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/craig-beringhaus" aria-label="Profile: Craig-Beringhaus">@<bdi>Craig-Beringhaus</bdi></a><br />
and there is this <code>copy styled text</code> feature in the search menu,<br />
which could be used within the macro if more than one block of text is highlighted</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69412</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69412</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Tue, 31 Aug 2021 19:38:10 GMT</pubDate></item><item><title><![CDATA[Reply to Something amazingly useful I fear is not a thing regarding deleting text on Tue, 31 Aug 2021 13:31:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a><br />
Thank you!<br />
Sad that it’s not pre-existing, but you think outside the box. I like it!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69393</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69393</guid><dc:creator><![CDATA[Craig Beringhaus]]></dc:creator><pubDate>Tue, 31 Aug 2021 13:31:47 GMT</pubDate></item><item><title><![CDATA[Reply to Something amazingly useful I fear is not a thing regarding deleting text on Mon, 30 Aug 2021 18:39:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/craig-beringhaus" aria-label="Profile: Craig-Beringhaus">@<bdi>Craig-Beringhaus</bdi></a></p>
<p dir="auto">Most useful for you would be an “Invert Selection” command, that would take your current selection and select everything <em>else</em>.  Then a tap of the Delete key and you are done.</p>
<p dir="auto">Alas, there is no such command in Notepad++.</p>
<p dir="auto">Plus, it is complicated, because it would require “multi-select” to be enabled, because in most cases, you would need such a selection inversion command to select a block <em>before</em> your selection and a block <em>after</em> your selection.</p>
<hr />
<p dir="auto">But all is not lost…</p>
<p dir="auto">A simple thing that seems to work is to record a macro for the following actions, in order:</p>
<ul>
<li>Copy (Ctrl+c)</li>
<li>Select All (Ctrl+a)</li>
<li>Paste (Ctrl+v)</li>
</ul>
<p dir="auto">Then you give it a name and assign a keycombo to it.<br />
When you want to actually use it, you select the text you want to keep, then run the macro via the assigned keycombo.</p>
<p dir="auto">Of course, the slight downside may be that it destroys your clipboard contents, but perhaps this is a small deficiency.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69386</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69386</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 30 Aug 2021 18:39:24 GMT</pubDate></item></channel></rss>