<?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[Scroll and search through keyword lines by alphabetical order?]]></title><description><![CDATA[<p dir="auto">How can one scroll and search through main keywords only? Bookmarking keyword lines isnt permanent and cant scroll or search through them alphabetically.</p>
<p dir="auto">Aluminum-<br />
notesnotesnotes</p>
<p dir="auto">Boron-<br />
notesnotesnotes</p>
<p dir="auto">Copper-<br />
notesnotesnotes</p>
<p dir="auto">Dysprosium-<br />
notesnotesnotes</p>
<p dir="auto">Europium-<br />
notesnotesnotes</p>
<p dir="auto">Fluorine-<br />
notesnotesnotes</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25549/scroll-and-search-through-keyword-lines-by-alphabetical-order</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 08:26:50 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25549.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 03 Mar 2024 20:47:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Scroll and search through keyword lines by alphabetical order? on Mon, 04 Mar 2024 02:28:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> said in <a href="/post/93369">Scroll and search through keyword lines by alphabetical order?</a>:</p>
<blockquote>
<p dir="auto">^\w-$</p>
</blockquote>
<p dir="auto">I <em>intended</em> it to be <code>^\w+-$</code> but the <code>+</code> got lost somehow.  :-(</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93378</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93378</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 04 Mar 2024 02:28:23 GMT</pubDate></item><item><title><![CDATA[Reply to Scroll and search through keyword lines by alphabetical order? on Sun, 03 Mar 2024 23:14:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> 's suggestion is reasonable, though I would use <code>(?i)^[a-z]+-$</code> to mark lines that contain only element names followed by a <code>-</code> because every element name contains only ASCII letters.</p>
<p dir="auto">The <a href="https://github.com/molsonkiko/JsonToolsNppPlugin" rel="nofollow ugc">JsonTools plugin</a> features a treeview that can show all the search results for a regex search and jump to their locations in the document.</p>
<p dir="auto">For example, if I have this document:</p>
<pre><code>Hydrogen-
foo
bar baz

Helium-
foo
bar baz

Lithium-
foo
bar baz

Beryllium-
foo
bar baz

Boron-
foo
bar baz

Carbon-
foo
bar baz

Nitrogen-
foo
bar baz
</code></pre>
<p dir="auto">the query <code>sort_by(s_fa(@, `(?s)^(\w+)-\r\n(.*?)\r\n\r\n`, false), 0)</code> (entered in the text box at the top of the treeview) will allow you to scroll through the elements in alphabetical order using the treeview.</p>
<p dir="auto"><img src="/assets/uploads/files/1709507059885-14b7d725-d62f-45a8-854b-09b9b8624b5d-image.png" alt="14b7d725-d62f-45a8-854b-09b9b8624b5d-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I have also created a <a href="https://community.notepad-plus-plus.org/post/88155">PythonScript script</a> that lets you sort multi-line blocks of a document alphabetically, but I don’t think that’s the best solution here because it changes the document, and you just want to iterate through it in a non-standard order.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93370</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93370</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Sun, 03 Mar 2024 23:14:46 GMT</pubDate></item><item><title><![CDATA[Reply to Scroll and search through keyword lines by alphabetical order? on Sun, 03 Mar 2024 20:55:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/30377">@X88R88</a></p>
<p dir="auto">Presume your “keyword” is some text at start of line followed by <code>-</code> followed by a line-ending.</p>
<p dir="auto">If so, make a macro to bookmark that line using a regular expression search of <code>^\w-$</code>.  Assign the running of that macro to an unused keycombination.</p>
<p dir="auto">To counter the “isn’t permanent” complaint, run the macro by pressing the keycombo when you need it.</p>
<p dir="auto">Regarding “alphabetically”, they already appear alphabetic.  But, if they weren’t, there wouldn’t be a simple way to “search through them alphabetically”.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93369</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93369</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 03 Mar 2024 20:55:30 GMT</pubDate></item></channel></rss>