<?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[Delete every line below a bookmarked line.]]></title><description><![CDATA[<p dir="auto">I have a number of documents where I have used different search terms to find lines that I have bookmarked. What I now want is to delete the line below that contains text that is redundant. I have tried making a macro that looks like this: start recording F2-&gt;down arrow-&gt; CTRL+i-&gt;Delete stop recording. Then I have run the macro on repeat where it goes completely wrong. Is there any kind soul who can guide me in the right direction? Here is an example of how I think.<br />
Before:</p>
<pre><code>#STNEW:_TEST-1
blablablabla
#STNEW:_TEST-2
blablablabla
#STNEW:_TEST-3
blablablabla
#STNEW:_TEST-4
blablablabla
</code></pre>
<p dir="auto">After:</p>
<pre><code>#STNEW:_TEST-1
#STNEW:_TEST-2
#STNEW:_TEST-3
#STNEW:_TEST-4
</code></pre>
<p dir="auto">Kind regards Thore from Sweden</p>
<p dir="auto">-–</p>
<p dir="auto"><em>moderator added code markdown around text; please don’t forget to <a href="https://community.notepad-plus-plus.org/topic/21925/faq-desk-formatting-forum-posts">use the <code>&lt;/&gt;</code> button to mark example text as “code”</a> so that characters don’t get changed by the forum</em></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/26511/delete-every-line-below-a-bookmarked-line</link><generator>RSS for Node</generator><lastBuildDate>Mon, 15 Jun 2026 07:53:21 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/26511.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 29 Dec 2024 14:52:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Sun, 05 Jan 2025 14:48:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/antheds-kennel" aria-label="Profile: Antheds-Kennel">@<bdi>Antheds-Kennel</bdi></a> said in <a href="/post/98980">Delete every line below a bookmarked line.</a>:</p>
<blockquote>
<p dir="auto">since there are 397,580 rows</p>
</blockquote>
<p dir="auto">So that’s a good reason to avoid (1), but nothing you have said explains why you <em>think</em> (2) won’t work for you.</p>
<blockquote>
<p dir="auto">I have to give up</p>
</blockquote>
<p dir="auto">Don’t lie to yourself. If you give up, it’s your own choice.  All the information you have given us says that (2) will work for you, but you are <em>choosing</em> to ignore that option without explaining why.</p>
<blockquote>
<p dir="auto">that I have to sort somehow.</p>
</blockquote>
<p dir="auto">This is the first you’ve mentioned sorting, that I noticed.</p>
<p dir="auto">Until you accurately describe what you are actually wanting, no one can help you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98984</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98984</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sun, 05 Jan 2025 14:48:42 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Sun, 05 Jan 2025 13:28:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> Hello again. THANK YOU for all the time you have put into this project, but I guess I’ll have to give up and give up. When someone like you says that this is difficult to solve in the way I thought I would, I have to give up unfortunately. I understand what you mean, but I don’t know how I’m going to do it, since there are 397,580 rows that I have to sort somehow. I thought I was on the right track when I managed to bookmark the row of the two that has groupings in it. The second row is just an address that is unique for each post. I thank you so much for all the help, you are super nice here. This was my first problem I have posted in this forum, and it is definitely not the last. I will use the ideas you have come up with on other occasions when I have saved them. Have a good time, with kind regards from a snow-white and icy Sweden.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98980</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98980</guid><dc:creator><![CDATA[Antheds Kennel]]></dc:creator><pubDate>Sun, 05 Jan 2025 13:28:33 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Sat, 04 Jan 2025 17:57:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/antheds-kennel" aria-label="Profile: Antheds-Kennel">@<bdi>Antheds-Kennel</bdi></a> said in <a href="/post/98965">Delete every line below a bookmarked line.</a>:</p>
<blockquote>
<p dir="auto">why your script deletes the last line that I do not want to delete.</p>
</blockquote>
<p dir="auto">It’s a macro, not a script, so it has no logic capability.  I hadn’t noticed it doing that during my earlier tests, but I can reproduce.  Essentially what happens is after the last bookmark (on what was originally line 9) is removed and it deletes the next line as it should have, it hasn’t reached the end yet, so searches for a bookmark again, and doesn’t find one, but still moves forward in the macro (because macros cannot have logic) and thus toggles the non-existent bookmark to “on”, then moves down a line, and deletes it, then it searches for the next bookmark which requires it to wrap around, finds one, toggles it, and deletes the next line, and keeps going through those accidental loops until the down-a-line finally reaches the end of the file.</p>
<p dir="auto">As I tried to indicate earlier, it was entirely possible that a macro is not sufficient for your problem; we have now found the reason why.  There might be a different way to construct the macro that would avoid that logic problem, but I cannot think of one.  I really don’t think a macro is going to cut it.</p>
<p dir="auto">You still haven’t explained why bookmarking the actual lines you want to delete, rather than the lines before the ones you want to delete, is not a valid solution: <strong>any</strong> search that you can use to automatically mark those lines could be easily modified to mark the line <em>after</em> the text rather than the line on your matching text, thus bookmarking the lines you want to delete (and in that case, you could just delete them from the search/replace, rather than bookmarking as one search then deleting in a separate macro action)… And if you’re manually bookmarking the lines, rather than doing it from the Mark dialog, you’re wasting a lot of time, because if you’re already there to mark it, you could just as easily do the deletion yourself.</p>
<p dir="auto">So the right solution that I can see for you is: (1) if you are currently manually bookmarking, then just manually delete the next line; or (2) if you are bookmarking using the search-based Mark dialog, make a slight tweak to your search and use the Replace menu instead to immediately delete those.  If you believe neither (1) nor (2) are sufficient for your needs, you will have to explain why, because I cannot see any reason why one of those two won’t work for the circumstances you’ve described.  If you can come up with a meaningful reason, then I or someone else might be able to come up with a script for the PythonScript plugin that will have all the safety logic built in to follow your inefficient and illogical bookmark-the-wrong-line-then-delete-the-subsequent-lines-separately sequence that you seem to be insisting upon… but I still believe (1) or (2) would be better for you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98968</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98968</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 04 Jan 2025 17:57:58 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Sat, 04 Jan 2025 13:38:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> Hi and thanks for the quick reply. What I’m using is this one which I bookmarked lines 3,7 and 9:</p>
<pre><code>#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
D:/MP3/Sweden/ABBA/The Album
#EXTINF: id="ABBA" name="ALBUM" group-title="Denmark"
D:/MP3/Sweden/ABBA/ABBA
#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
D:/MP3/Sweden/ABBA/Ring ring
#EXTINF: id="ABBA" name="ALBUM" group-title="Canada"
D:/MP3/Sweden/ABBA/Voyage
#EXTINF: id="ABBA" name="ALBUM" group-title="USA"
D:/MP3/Sweden/ABBA/Super Trouper
#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
D:/MP3/Sweden/ABBA/Waterloo
</code></pre>
<p dir="auto">And I have closed Notepad++ before I change the files, I have been creating macros for several years and made that very mistake in the beginning where I did not close the program before. So the question is as I posted in my last post why your script deletes the last line that I do not want to delete. Otherwise it works great. With kind regards Thore</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98965</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98965</guid><dc:creator><![CDATA[Antheds Kennel]]></dc:creator><pubDate>Sat, 04 Jan 2025 13:38:55 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Fri, 03 Jan 2025 13:52:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/antheds-kennel" aria-label="Profile: Antheds-Kennel">@<bdi>Antheds-Kennel</bdi></a>,</p>
<p dir="auto">No, the only difference in that <code>&lt;Macro name="..."...&gt;</code> line is that mine had a keyboard shortcut assigned and yours did not.  Remember, after editing the macro, you must save, exit Notepad++, and reload; and if you had done any other macro recording or keyboard shortcut setting in the same session where you edited the macro, you will have overwritten it, and you will need to re-edit, making sure to exit Notepad++ and start it again <em>before</em> editing and <em>after</em> saving and editing, otherwise it will be overwritten when Notepad++ exits.</p>
<p dir="auto">Unfortunately, from your posted data, I cannot tell what you had before you ran the macro, where your bookmarks were, and why what you got was different than what you expected.  Without all that data, unambiguous, there is no way I can guess what went wrong.</p>
<p dir="auto">My macro literally goes “move to next bookmark, toggle the bookmark off, go down one line, and delete the line”.  If that is not the algorithm you want, then your previous descriptions have all been insufficient to say what you really want.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98952</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98952</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 03 Jan 2025 13:52:11 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Fri, 03 Jan 2025 12:43:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/antheds-kennel" aria-label="Profile: Antheds-Kennel">@<bdi>Antheds-Kennel</bdi></a> said in <a href="/post/98943">Delete every line below a bookmarked line.</a>:Something went wrong at the end of my post, and I’m not allowed to correct it since it’s been 4 hours. So the Swedish part is still there, sorry. But it should be like this:</p>
<p dir="auto">Your “Macro name” line looks like this:</p>
<pre><code>&lt;Macro name="DelUnderBookmarks" Ctrl="yes" Alt="no" Shift="yes" Key="121"&gt;
</code></pre>
<p dir="auto">And mine looks like this:</p>
<pre><code>&lt;Macro name="DelUnderBookmarks" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
</code></pre>
<p dir="auto">Could that be the difference?<br />
So now it’s REALLY CLOSE to get it working, you’re a rock at this, you know, THANK YOU :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98949</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98949</guid><dc:creator><![CDATA[Antheds Kennel]]></dc:creator><pubDate>Fri, 03 Jan 2025 12:43:56 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Fri, 03 Jan 2025 08:44:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a> If it were that easy, unfortunately, I have about: 200,000 lines where the # lines that I bookmarked have different names. I have managed to make a code that bookmarks all the ones I want to delete with the differences that I found. So now it is “only” the line under all the bookmarks that needs to be deleted. Then I re-bookmark those lines with # again and delete the bookmarked lines.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98944</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98944</guid><dc:creator><![CDATA[Antheds Kennel]]></dc:creator><pubDate>Fri, 03 Jan 2025 08:44:30 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Fri, 03 Jan 2025 08:36:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> YES, the only thing now is that the last line is deleted. I don’t know if I understood you correctly, but this is what I changed in my Macro:</p>
<pre><code>#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
D:/MP3/Sweden/ABBA/The Album
#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
D:/MP3/Sweden/ABBA/Ring ring
#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
</code></pre>
<p dir="auto">But I want it to look like this:</p>
<pre><code>#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
D:/MP3/Sweden/ABBA/The Album
#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
D:/MP3/Sweden/ABBA/Ring ring
#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
D:/MP3/Sweden/ABBA/Waterloo
</code></pre>
<p dir="auto">I changed my macro code from this:</p>
<pre><code>&lt;Macro name="DelUnderBookmarks" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
            &lt;Action type="0" message="2024" wParam="2" lParam="0" sParam="" /&gt;
            &lt;Action type="2" message="0" wParam="43006" lParam="0" sParam="" /&gt;
            &lt;Action type="0" message="2300" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="0" message="2337" wParam="0" lParam="0" sParam="" /&gt;
        &lt;/Macro&gt;
</code></pre>
<p dir="auto">To this one where I copied your suggestion which does everything right up to the last bookmark, where it also removes what I want to save:</p>
<pre><code>&lt;Macro name="DelUnderBookmarks" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
            &lt;Action type="2" message="0" wParam="43006" lParam="0" sParam="Next Bookmark" /&gt;
            &lt;Action type="2" message="0" wParam="43005" lParam="0" sParam="Toggle Bookmark" /&gt;
            &lt;Action type="0" message="2300" wParam="0" lParam="0" sParam="Line Down" /&gt;
            &lt;Action type="0" message="2338" wParam="0" lParam="0" sParam="Line Delete" /&gt;
        &lt;/Macro&gt;
</code></pre>
<p dir="auto">So I think I’ve somehow made a mistake that also deletes the last bookmark row that we want to save, assuming it’s 3,7, and 9 we want to delete.<br />
Din “Macro name” rad ser ut så här:</p>
<pre><code>&lt;Macro name="DelUnderBookmarks" Ctrl="yes" Alt="no" Shift="yes" Key="121"&gt;
</code></pre>
<p dir="auto">Och min ser ut så här:</p>
<pre><code>&lt;Macro name="DelUnderBookmarks" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
</code></pre>
<p dir="auto">Kan det vara skillnaden?<br />
So now it’s REALLY CLOSE to get it working, you’re a rock at this, you know, THANK YOU :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98943</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98943</guid><dc:creator><![CDATA[Antheds Kennel]]></dc:creator><pubDate>Fri, 03 Jan 2025 08:36:55 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Fri, 03 Jan 2025 04:05:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/antheds-kennel" aria-label="Profile: Antheds-Kennel">@<bdi>Antheds-Kennel</bdi></a> If you tell us which lines you want to delete exactly, we can help you with a regular expression, if not, you are wasting our time</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98942</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98942</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Fri, 03 Jan 2025 04:05:09 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Thu, 02 Jan 2025 16:30:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/antheds-kennel" aria-label="Profile: Antheds-Kennel">@<bdi>Antheds-Kennel</bdi></a> ,</p>
<p dir="auto">The macro idea isn’t bad (I hate admitting that a generative AI got even partial credit).</p>
<p dir="auto">Unfortunately for the AI’s reputation, in my initial experiments, it seems that recording the  <strong>Search &gt; Bookmark &gt; Next Bookmark</strong> action (<code>F2</code>) doesn’t just record that menu entry; instead, it records an underlying SCI_GOTOLINE (<code>2024</code>) command that I wasn’t expecting, as well.  :</p>
<pre><code>            &lt;Action type="0" message="2024" wParam="2" lParam="0" sParam="" /&gt;
</code></pre>
<p dir="auto">Because that line was recorded for me, then when the run-multiple-times tells it to run again, then it goes back to that same starting line, and thus goes to the same bookmark as before, and deletes the <em>next</em> line under it as well.  As it loops, it will obviously then delete a lot more than you were hoping.</p>
<p dir="auto">The AI didn’t know Notepad++ would record that extra GOTO, and thus “unintentionally” misinformed you. Since the generative AI only spout <em>the most likely text</em> based on what it was trained on from scraping the internet, the answers it gives are guaranteed to be the most likely based on its training set, but as can be seen from any experience on the internet, the most likely text is not likely to be the most accurate or correct text.  (It is hard to call it truly unintentional, because the GPT providers all brag about how good their models are at providing good-sounding data, without the emphasis that they should provide that it’s only “most likely”, not “most accurate”.  I think they should be held accountable for this misleading bragging, and the misinformation and potential damage that they thus cause.)</p>
<p dir="auto">Really, as was suggested above, the easiest would be to bookmark the lines you want to delete, instead of bookmarking the lines <em>above</em> what you want to delete.</p>
<p dir="auto">But if you insist, I have manually crafted a replacement macro for you to use.  Close Notepad++, open again, edit <code>%AppData%\Notepad++\shortcuts.xml</code>, find your macro (by searching for its name), and replace its <code>&lt;Action...&gt;</code> lines with the <code>&lt;Action...&gt;</code> lines from my macro below:</p>
<pre><code>        &lt;Macro name="DelUnderBookmarks" Ctrl="yes" Alt="no" Shift="yes" Key="121"&gt;
            &lt;Action type="2" message="0" wParam="43006" lParam="0" sParam="Next Bookmark" /&gt;
            &lt;Action type="2" message="0" wParam="43005" lParam="0" sParam="Toggle Bookmark" /&gt;
            &lt;Action type="0" message="2300" wParam="0" lParam="0" sParam="Line Down" /&gt;
            &lt;Action type="0" message="2338" wParam="0" lParam="0" sParam="Line Delete" /&gt;
        &lt;/Macro&gt;
</code></pre>
<p dir="auto">This will move to the next bookmark, from wherever you are, then disable that line’s bookmark, <em>then</em> moves down and deletes the line (the macro recorder for <code>Ctrl+L</code> actually <em>CUT</em> the line using SCI_LINECUT 2337 rather than <em>DELETED</em> the line using SCI_LINEDELETE 2338 (mapped to <code>Ctrl+Shift+L</code> for me), so it clobbered your clipboard; I switched to 2338 to do the SCI_LINEDELETE instead.)  Since this alternate macro toggles off each bookmark as it’s found, it won’t accidentally go to the same location again and re-delete.</p>
<p dir="auto">When I run my shown macro from the start to the end of file, if I had bookmarked 3, 7, and 9, then it deleted what were 4, 8, and 10.  If I leave out the <strong>Toggle Bookmark</strong> from the macro, it will delete all the lines from 4 onward, because the old bookmark locations can be re-visited.</p>
<p dir="auto">If you need to keep the bookmarks on the original lines, even after the subsequent line was deleted, then it would take more effort to avoid that problem – and probably becomes something not solvable with macros alone. At which point, I would recommend installing PythonScript plugin, and then you could write a script which adds in the safety logic which a macro alone cannot provide.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98932</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98932</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 02 Jan 2025 16:30:12 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Thu, 02 Jan 2025 15:41:39 GMT]]></title><description><![CDATA[<p dir="auto">Hi again, I have an example here where you probably understand better what I mean. I have different albums that I have marked up with bookmarks and want to delete, but in the example I have not bookmarked any as I think you can randomly make your own to make it work. In the example there are six albums where for example I only want to save 3 (every other), then I think you first delete the line DIRECTLY BELOW and then delete the bookmarks.</p>
<pre><code>#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
D:/MP3/Sweden/ABBA/The Album
#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
D:/MP3/Sweden/ABBA/ABBA
#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
D:/MP3/Sweden/ABBA/Ring ring
#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
D:/MP3/Sweden/ABBA/Voyage
#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
D:/MP3/Sweden/ABBA/Super Trouper
#EXTINF: id="ABBA" name="ALBUM" group-title="Sweden"
D:/MP3/Sweden/ABBA/Waterloo
</code></pre>
<p dir="auto">Kind regards Thore</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98931</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98931</guid><dc:creator><![CDATA[Antheds Kennel]]></dc:creator><pubDate>Thu, 02 Jan 2025 15:41:39 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Thu, 02 Jan 2025 15:20:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said in <a href="/post/98879">Delete every line below a bookmarked line.</a>:</p>
<blockquote>
<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/antheds-kennel" aria-label="Profile: antheds-kennel">@<bdi>antheds-kennel</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/datatraveller1" aria-label="Profile: datatraveller1">@<bdi>datatraveller1</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Sorry, <a class="plugin-mentions-user plugin-mentions-a" href="/user/antheds-kennel" aria-label="Profile: antheds-kennel">@<bdi>antheds-kennel</bdi></a>, But I still do <strong>not</strong> understand your goal ! You said :</p>
<blockquote>
<p dir="auto">I only want to delete the lines below the ones that are bookmarked.</p>
</blockquote>
<p dir="auto">Do you mean :</p>
<blockquote>
<p dir="auto">I only want to delete <strong>each</strong> <em>SINGLE</em> line which is <strong>below</strong> the <strong>bookmarked</strong> lines</p>
</blockquote>
<p dir="auto">or</p>
<blockquote>
<p dir="auto">I only want to delete <strong>all</strong> the lines which are <strong>below</strong> the <strong>bookmarked</strong> lines</p>
</blockquote>
<hr />
<p dir="auto">In addition, in the description of your <strong>macro</strong>, you said, twice :</p>
<blockquote>
<p dir="auto">Press Ctrl+F2 to jump to the next bookmark.</p>
</blockquote>
<p dir="auto">This is <strong>not</strong> right ! This feature does <strong>not</strong> enable you to move to the <strong>next</strong> bookmark ! The <strong><code>Ctrl + F2</code></strong> feature <em>TOGGLE</em> the <strong>Bookmark</strong> status of the <strong>current</strong> line :</p>
<ul>
<li>
<p dir="auto">If the <strong>current</strong> line is <strong>not</strong> bookmarked, a <strong><code>Ctrl + F2</code></strong> action will <strong>bookmark</strong> this line</p>
</li>
<li>
<p dir="auto">If the <strong>current</strong> line is <strong>bookmarked</strong>, a <strong><code>Ctrl + F2</code></strong> action will <strong>un-bookmark</strong> this line</p>
</li>
</ul>
<hr />
<p dir="auto">To <strong>move</strong> to a bookmark, you can, either :</p>
<ul>
<li>
<p dir="auto">Hit the <strong><code>F2</code></strong> key, which moves to the <strong>next</strong> bookmark</p>
</li>
<li>
<p dir="auto">Hit the <strong><code>Shift + F2</code></strong> combination, which moves to the <strong>previous</strong> bookmark</p>
</li>
</ul>
<p dir="auto">BR</p>
<p dir="auto">guy038<br />
Hello and THANK YOU for your patience, what you are referring to is what ChatGPT suggested, I think I missed being clear that there is only ONE row under each bookmarked row that should be deleted.</p>
</blockquote>
]]></description><link>https://community.notepad-plus-plus.org/post/98930</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98930</guid><dc:creator><![CDATA[Antheds Kennel]]></dc:creator><pubDate>Thu, 02 Jan 2025 15:20:46 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Thu, 02 Jan 2025 11:55:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a> said in <a href="/post/98924">Delete every line below a bookmarked line.</a>:</p>
<blockquote>
<p dir="auto">the OP is unwilling to use it</p>
</blockquote>
<p dir="auto">Well, if it comes down to being able to obtain an end result that you need, and you refuse to use a technique that gets you there, I guess you may not get to your destination.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98925</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98925</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 02 Jan 2025 11:55:23 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Thu, 02 Jan 2025 10:22:21 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> <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> and all: The regular expression method explained by <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> would have been best but due to some fixed ideas, the OP is unwilling to use it. Happy New Year!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98924</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98924</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Thu, 02 Jan 2025 10:22:21 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Wed, 01 Jan 2025 19:48:22 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">You should start with a “feature request” for this behavior.</p>
</blockquote>
<p dir="auto">And <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16005" rel="nofollow ugc">HERE</a> it is.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98916</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98916</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 01 Jan 2025 19:48:22 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Wed, 01 Jan 2025 17:44:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said :</p>
<blockquote>
<p dir="auto">When no standard selection, in current file, the commands Toggle Bookmark, Clear All Bookmarks, Cut Bookmarked Lines, Copy Bookmarked Lines , Paste to (Replace) Boomarked lines, Remove Bookmarked lines, Remove Non-Bookmarked Lines and Inverse Bookmark would act on the entire file</p>
</blockquote>
<p dir="auto">With the exception of <em>Toggle Bookmark</em>, these commands already all work on the entire file.</p>
<blockquote>
<p dir="auto">When a standard selection would occur ( even partially ), these eight commands would act on that selection only</p>
</blockquote>
<p dir="auto">You should start with a “feature request” for this behavior.</p>
<blockquote>
<p dir="auto">Could this new behavior be extended to multiple standard selections ?</p>
</blockquote>
<p dir="auto">I would think that only a single stream-type selection should be supported.  Anything more than that overcomplicates a feature request (and probably kills it).</p>
<hr />
<blockquote>
<p dir="auto">what about a Ctrl + Z / Ctrl + Y action ?</p>
</blockquote>
<p dir="auto">Not applicable.<br />
Undo/redo applies to textual changes only.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98914</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98914</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 01 Jan 2025 17:44:21 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Wed, 01 Jan 2025 17:33:59 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">BTW, I’m thinking  : would it be a problem if :</p>
<ul>
<li>
<p dir="auto">When <strong>no</strong> standard selection, in <strong>current</strong> file, the commands <strong><code>Toggle Bookmark</code></strong>, <strong><code>Clear All Bookmarks</code></strong>, <strong><code>Cut Bookmarked Lines</code></strong>, <strong><code>Copy Bookmarked Lines </code></strong>, <strong><code>Paste to (Replace) Boomarked lines</code></strong>, <strong><code>Remove Bookmarked lines</code></strong>,  <strong><code>Remove Non-Bookmarked Lines</code></strong> and  <strong><code>Inverse Bookmark</code></strong> would act on the <strong>entire</strong> file</p>
</li>
<li>
<p dir="auto">When a standard <strong>selection</strong> would occur ( even partially ), these <strong>eight</strong> commands would act on that selection <strong>only</strong></p>
</li>
</ul>
<hr />
<ul>
<li>
<p dir="auto">Could this <strong>new</strong> behavior be <strong>extended</strong> to <strong>multiple</strong> standard selections ?</p>
</li>
<li>
<p dir="auto">More important : what about a <strong><code>Ctrl + Z</code></strong> / <strong><code>Ctrl + Y</code></strong> action ?</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98913</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98913</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 01 Jan 2025 17:33:59 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Wed, 01 Jan 2025 13:48:45 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><strong>Alan</strong>, nice catch ;-))</p>
<p dir="auto">Happy New Year !</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98910</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98910</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 01 Jan 2025 13:48:45 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Wed, 01 Jan 2025 15:55:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said :</p>
<blockquote>
<p dir="auto">…bookmark all the unmarked lines which lay before the first bookmarked line</p>
</blockquote>
<p dir="auto">This may be a lot of manual effort if there are many lines upon which to place a bookmark – think about clicking the margin or pressing F2 hundreds of times.  :-(</p>
<p dir="auto">Making a text selection of all of these lines and then choosing the <em>Toggle Bookmark</em> command does not do it; it sets a bookmark on the (single) line of the caret in the selection.</p>
<p dir="auto">Here’s a way to automate placing bookmarks on multiple lines, acting on <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> 's example text:</p>
<ul>
<li>put a character that does not appear in the document at the end of the last line upon which bookmarking of all individual lines is desired:<br />
<img src="/assets/uploads/files/1735736789629-c00a17d5-7895-41d8-9703-5067f6b9fd7d-image.png" alt="c00a17d5-7895-41d8-9703-5067f6b9fd7d-image.png" class=" img-fluid img-markdown" /></li>
<li>run this marking operation:<br />
<img src="/assets/uploads/files/1735736974498-b8f93f73-44a1-46c5-82f3-c4f3c51f388c-image.png" alt="b8f93f73-44a1-46c5-82f3-c4f3c51f388c-image.png" class=" img-fluid img-markdown" /></li>
<li>obtain this result:<br />
<img src="/assets/uploads/files/1735737040595-520d4b7c-b975-424c-b75e-62932cfb3302-image.png" alt="520d4b7c-b975-424c-b75e-62932cfb3302-image.png" class=" img-fluid img-markdown" /></li>
<li>remove the extra character added earlier</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/98909</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98909</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 01 Jan 2025 15:55:25 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Wed, 01 Jan 2025 12:47:40 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/antheds-kennel" aria-label="Profile: antheds-kennel">@<bdi>antheds-kennel</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/datatraveller1" aria-label="Profile: datatraveller1">@<bdi>datatraveller1</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/antheds-kennel" aria-label="Profile: antheds-kennel">@<bdi>antheds-kennel</bdi></a>, you said :</p>
<blockquote>
<p dir="auto">I want to delete <strong>all</strong> the lines which are <strong>below</strong> the <strong>bookmarked</strong> lines</p>
</blockquote>
<p dir="auto">OK ! Then, if I consider this <em>INPUT</em> text, in a <strong>new</strong> tab :</p>
<pre><code class="language-diff">  Line 01
  Line 02
  Line 03
• Line 04
  Line 05
  Line 06
• Line 07
  Line 08
  Line 09
  Line 10
  Line 11
• Line 12
  Line 13
  Line 14
  Line 15
  Line 16
  Line 17
  Line 18
  Line 19
  Line 20
  Line 21
  Line 22
</code></pre>
<p dir="auto">Where <strong>only</strong> the lines <strong><code>4</code></strong>, <strong><code>7</code></strong> and <strong><code>12</code></strong> are <strong>bookmarked</strong></p>
<p dir="auto">You’re expecting this <em>OUTPUT</em> text, aren’t you ?</p>
<pre><code class="language-diff">  Line 01
  Line 02
  Line 03
• Line 04
• Line 07
• Line 12
</code></pre>
<hr />
<p dir="auto">If <strong>this</strong> behavior is the one you looking for :</p>
<ul>
<li>
<p dir="auto">Firstly, <strong>bookmark</strong> all the <strong>unmarked</strong> lines which lay <strong>before</strong> the <strong>first</strong> <em>bookmarked</em> line of current file ( so the lines <strong><code>01</code></strong>, <strong><code>02</code></strong> and <strong><code>03</code></strong> in our <strong>example</strong> )</p>
</li>
<li>
<p dir="auto">Secondly, do a mouse <strong>right</strong>-click, within the <strong>bookmark</strong> margin, on the <strong>left</strong>, and run the <strong><code>Remove Non-Bookmarked Lines</code></strong> option</p>
</li>
</ul>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98908</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98908</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 01 Jan 2025 12:47:40 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Wed, 01 Jan 2025 11:53:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> Hello and happy new year, what I attached last time was a suggestion from ChatGPT. What I do is:</p>
<ol>
<li>Bookmark all the lines that I want to delete (after I delete the line below).</li>
<li>Record a macro where I click F2-&gt;down arrow.</li>
<li>CTRL+L to delete that line.</li>
<li>Stop recording.</li>
<li>Click Macro-&gt;Run A Macro Multiply Times-&gt;Run Until…(with the macro I just created).</li>
<li>Now I’m supposed to go via Search-&gt;Bookmark-&gt;Remove Bookmarked Lines, but I can’t get that far because the macro deletes more than what I want to delete.</li>
</ol>
]]></description><link>https://community.notepad-plus-plus.org/post/98907</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98907</guid><dc:creator><![CDATA[Antheds Kennel]]></dc:creator><pubDate>Wed, 01 Jan 2025 11:53:14 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Wed, 01 Jan 2025 11:38:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said in <a href="/post/98879">Delete every line below a bookmarked line.</a>:</p>
<blockquote>
<p dir="auto">I only want to delete all the lines which are below the bookmarked lines</p>
</blockquote>
<p dir="auto">That is what i want, Sorry for not being clear enough, english is not my first language, but i will do my best.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98906</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98906</guid><dc:creator><![CDATA[Antheds Kennel]]></dc:creator><pubDate>Wed, 01 Jan 2025 11:38:07 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Tue, 31 Dec 2024 17:28:21 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/antheds-kennel" aria-label="Profile: antheds-kennel">@<bdi>antheds-kennel</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/datatraveller1" aria-label="Profile: datatraveller1">@<bdi>datatraveller1</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Sorry, <a class="plugin-mentions-user plugin-mentions-a" href="/user/antheds-kennel" aria-label="Profile: antheds-kennel">@<bdi>antheds-kennel</bdi></a>, But I still do <strong>not</strong> understand your goal ! You said :</p>
<blockquote>
<p dir="auto">I only want to delete the lines below the ones that are bookmarked.</p>
</blockquote>
<p dir="auto">Do you mean :</p>
<blockquote>
<p dir="auto">I only want to delete <strong>each</strong> <em>SINGLE</em> line which is <strong>below</strong> the <strong>bookmarked</strong> lines</p>
</blockquote>
<p dir="auto">or</p>
<blockquote>
<p dir="auto">I only want to delete <strong>all</strong> the lines which are <strong>below</strong> the <strong>bookmarked</strong> lines</p>
</blockquote>
<hr />
<p dir="auto">In addition, in the description of your <strong>macro</strong>, you said, twice :</p>
<blockquote>
<p dir="auto">Press Ctrl+F2 to jump to the next bookmark.</p>
</blockquote>
<p dir="auto">This is <strong>not</strong> right ! This feature does <strong>not</strong> enable you to move to the <strong>next</strong> bookmark ! The <strong><code>Ctrl + F2</code></strong> feature <em>TOGGLE</em> the <strong>Bookmark</strong> status of the <strong>current</strong> line :</p>
<ul>
<li>
<p dir="auto">If the <strong>current</strong> line is <strong>not</strong> bookmarked, a <strong><code>Ctrl + F2</code></strong> action will <strong>bookmark</strong> this line</p>
</li>
<li>
<p dir="auto">If the <strong>current</strong> line is <strong>bookmarked</strong>, a <strong><code>Ctrl + F2</code></strong> action will <strong>un-bookmark</strong> this line</p>
</li>
</ul>
<hr />
<p dir="auto">To <strong>move</strong> to a bookmark, you can, either :</p>
<ul>
<li>
<p dir="auto">Hit the <strong><code>F2</code></strong> key, which moves to the <strong>next</strong> bookmark</p>
</li>
<li>
<p dir="auto">Hit the <strong><code>Shift + F2</code></strong> combination, which moves to the <strong>previous</strong> bookmark</p>
</li>
</ul>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98879</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98879</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Tue, 31 Dec 2024 17:28:21 GMT</pubDate></item><item><title><![CDATA[Reply to Delete every line below a bookmarked line. on Tue, 31 Dec 2024 10:10:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> It’s true that I only want to delete the lines below the ones that are bookmarked. So technically I could blureed out the “#STNEW” lines since my original question was to delete all lines below the ones that are bookmarked. So I admit I was unclear.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98878</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98878</guid><dc:creator><![CDATA[Antheds Kennel]]></dc:creator><pubDate>Tue, 31 Dec 2024 10:10:34 GMT</pubDate></item></channel></rss>