<?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[sidebar with lines i need to have reference to]]></title><description><![CDATA[<p dir="auto">Hi, is there a way in notepad++ to create a sidebar where i can see certain lines from the document i work on?</p>
<p dir="auto">The document has lines beginning with keyword page. And i need to see on my left side these lines as gathered list. And when i click on the line in sidebar the document will jump to that line so i can edit text from there.</p>
<p dir="auto">And everytime i type a next page line or delete page line the sidebar updates too.</p>
<p dir="auto">Ideally if i could turn on/off the sorting of sidebar list by a-z order or unsorted order as it is typed in document.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23288/sidebar-with-lines-i-need-to-have-reference-to</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 11:22:43 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23288.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 23 Jul 2022 08:43:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to sidebar with lines i need to have reference to on Sat, 23 Jul 2022 17:58:01 GMT]]></title><description><![CDATA[<p dir="auto">Thx for the info you provided. I got it at least. It is just a simple “(page |rule ).*?$” regex after all.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78620</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78620</guid><dc:creator><![CDATA[Sylfir The White]]></dc:creator><pubDate>Sat, 23 Jul 2022 17:58:01 GMT</pubDate></item><item><title><![CDATA[Reply to sidebar with lines i need to have reference to on Sat, 23 Jul 2022 16:32:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sylfir-the-white" aria-label="Profile: Sylfir-The-White">@<bdi>Sylfir-The-White</bdi></a> said in <a href="/post/78613">sidebar with lines i need to have reference to</a>:</p>
<blockquote>
<p dir="auto">This currently does nothing</p>
</blockquote>
<p dir="auto">To get a function list for an arbitrary file type, for example your “plotline” type:</p>
<ol>
<li>You have to have a User Defined Language created for that type: for yours, name the UDL “Plotline” – it doesn’t need any formatting defined, just needs to exist (though the formatting might make it nicer to look at in the editor pane)</li>
<li><code>functionList\overrideMap.xml</code> must contain a reference to that UDL: <code>&lt;association id= "plotline.xml" userDefinedLangName="Plotline"/&gt;</code></li>
<li>you have to have the <code>plotline.xml</code></li>
<li>restart Notepad++</li>
<li>if you define the active file as <strong>Language &gt; Plotline</strong>, then the Plotline FunctionList will try to work.</li>
</ol>
<p dir="auto">It often takes a lot of debug to get the FunctionList working the way you want it to.  I usually start with a super-simple definition (like just looking for the word “page”), and get it to display just those… then I slowly expand it to more features (restarting after every update to the defnition).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78615</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78615</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 23 Jul 2022 16:32:50 GMT</pubDate></item><item><title><![CDATA[Reply to sidebar with lines i need to have reference to on Sat, 23 Jul 2022 16:19:31 GMT]]></title><description><![CDATA[<p dir="auto">I confirm, it is about function list. Looking at the docs it is about regex, which is kind of my problem too :-/. I found a lua regex and tried to do some experiments but nothing is seen.</p>
<p dir="auto">a) i did not write the regex correctly<br />
b) i need to set somewhere that the plotline.xml is connected to plotline syntax highlighter which i managed to setup correctly</p>
<p dir="auto">Yes, what i need to see in the list is something like this :<br />
game.txt<br />
page roomKitchen kitchen<br />
page roomBalcony balcony<br />
page itemBucket</p>
<p dir="auto">This is what i seek. All commands are defined as lines. So everything else from page is thrown away when parsing to function list.</p>
<p dir="auto">Here is the plotline.xml that i inserted into notepad++/functionList folder. Of course if i change it i restart the notepad and see if it works. This currently does nothing else and i have no idea if the class xml part i should remove, keep, or rework?</p>
<pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
&lt;NotepadPlus&gt;
	&lt;functionList&gt;
		&lt;parser displayName="Plotline" id="plotline_function" commentExpr="--.*?$" &gt;
        &lt;!-- My own plotline engine supported --&gt;
        &lt;classRange
            mainExpr="[.\w]+[\s]*=[\s]*\{"
            openSymbole="\{"
            closeSymbole="\}"
            displayMode="node"&gt;
            &lt;className&gt;
                &lt;nameExpr expr="[.\w]+"/&gt;
            &lt;/className&gt;
            &lt;function
                mainExpr="[.\w]+[\s]*=[\s]*['&amp;quot;]?[\w]+['&amp;quot;]?"&gt;
                &lt;functionName&gt;
                    &lt;funcNameExpr expr=".*"/&gt;
                &lt;/functionName&gt;
            &lt;/function&gt;
        &lt;/classRange&gt;
        &lt;!-- Basic lua functions support --&gt;
        &lt;function
            mainExpr="(\&gt;page)"
            displayMode="$className-&gt;$functionName"&gt;
            &lt;functionName&gt;
                &lt;nameExpr expr="(\&lt;page")+(A-Za-z0-9)* /&gt;
            &lt;/functionName&gt;
            &lt;className&gt;
                &lt;nameExpr expr="[.\w]+(?=:)"/&gt;
            &lt;/className&gt;
        &lt;/function&gt;
    &lt;/parser&gt;
	&lt;/functionList&gt;
&lt;/NotepadPlus&gt;
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/78613</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78613</guid><dc:creator><![CDATA[Sylfir The White]]></dc:creator><pubDate>Sat, 23 Jul 2022 16:19:31 GMT</pubDate></item><item><title><![CDATA[Reply to sidebar with lines i need to have reference to on Sat, 23 Jul 2022 14:11:24 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> said in <a href="/post/78610">sidebar with lines i need to have reference to</a>:</p>
<blockquote>
<p dir="auto">as it updates automatically</p>
</blockquote>
<p dir="auto">I should clarify that – it updates when the document is saved, not just “as you type”.  So, a keypress is still involved to get an update.</p>
<p dir="auto">Also, if you use the function-list approach, the <code>^page</code> regular expression I showed before is still useful, but you’ll probably want to capture what comes after that as well, to be displayed in the function-list panel.  We can help with that if you get stuck and don’t know how to make that happen (after reading the docs I linked to earlier).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78612</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78612</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 23 Jul 2022 14:11:24 GMT</pubDate></item><item><title><![CDATA[Reply to sidebar with lines i need to have reference to on Sat, 23 Jul 2022 12:14:27 GMT]]></title><description><![CDATA[<p dir="auto">Actually, using the <em>Function List</em> feature might be a better idea as it updates automatically, and has some sort capability.  See <a href="https://npp-user-manual.org/docs/function-list/" rel="nofollow ugc">HERE</a> and look for info on how to customize the function list.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78610</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78610</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 23 Jul 2022 12:14:27 GMT</pubDate></item><item><title><![CDATA[Reply to sidebar with lines i need to have reference to on Sat, 23 Jul 2022 12:10:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sylfir-the-white" aria-label="Profile: Sylfir-The-White">@<bdi>Sylfir-The-White</bdi></a> said in <a href="/post/78607">sidebar with lines i need to have reference to</a>:</p>
<blockquote>
<p dir="auto">The document has lines beginning with keyword page.</p>
</blockquote>
<p dir="auto">You could do a <em>Find All in Current Document</em> search for <code>^page</code> in <em>Regular expression</em> search mode:</p>
<p dir="auto"><img src="/assets/uploads/files/1658577854211-dec8d8a5-b2f8-41c0-9713-c8839f900c2f-image.png" alt="dec8d8a5-b2f8-41c0-9713-c8839f900c2f-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">This would get your desired lines appearing in the <em>Search results</em> window, which provides double-click jumping to the source line.  Here’s an example (I changed search to <code>^to</code> to search N++'s <code>license.txt</code> file):</p>
<p dir="auto"><img src="/assets/uploads/files/1658577961560-abb6de5f-4da1-4255-92e4-15b09add8f96-image.png" alt="abb6de5f-4da1-4255-92e4-15b09add8f96-image.png" class=" img-fluid img-markdown" /></p>
<blockquote>
<p dir="auto">And i need to see on my left side these lines as gathered list</p>
</blockquote>
<p dir="auto">The <em>Search results</em> window appears by default on the bottom, but it can be undocked and moved where you like.</p>
<blockquote>
<p dir="auto">And everytime i type a next page line or delete page line the sidebar updates too.</p>
</blockquote>
<p dir="auto">Auto-update is probably unreasonable, but you could make a macro out of the search action and tie it to a keycombo, so one keycombo press updates the list.</p>
<blockquote>
<p dir="auto">sorting</p>
</blockquote>
<p dir="auto">Probably not an easy way to add in sorting to the mix.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78609</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78609</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 23 Jul 2022 12:10:33 GMT</pubDate></item></channel></rss>