<?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[is new tab next to current possible?]]></title><description><![CDATA[<p dir="auto">is new tab next to current,<br />
instead of creating at the end (last tab)<br />
is it possible?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/15737/is-new-tab-next-to-current-possible</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 23:39:32 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/15737.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 May 2018 10:13:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to is new tab next to current possible? on Tue, 08 May 2018 12:15:42 GMT]]></title><description><![CDATA[<p dir="auto">thanks a lot claudia and scott!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32131</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32131</guid><dc:creator><![CDATA[patrickdrd]]></dc:creator><pubDate>Tue, 08 May 2018 12:15:42 GMT</pubDate></item><item><title><![CDATA[Reply to is new tab next to current possible? on Tue, 08 May 2018 12:13:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/patrickdrd" aria-label="Profile: patrickdrd">@<bdi>patrickdrd</bdi></a></p>
<p dir="auto">You have to go into <strong>Plugins</strong> -&gt; <strong>PythonScript</strong> -&gt; <strong>Configuration</strong> and add your script to the <strong>Menu items</strong> area.  After that it will appear in the <strong>Shortcut Mapper</strong> and you can assign a keycombo to it.  [A restart of N++ is necessary before the changes to the PS config get picked up by the Shortcut Mapper…]</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32129</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32129</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Tue, 08 May 2018 12:13:20 GMT</pubDate></item><item><title><![CDATA[Reply to is new tab next to current possible? on Tue, 08 May 2018 11:49:04 GMT]]></title><description><![CDATA[<p dir="auto">almost…</p>
<p dir="auto">how do I assign a shortcut to it?</p>
<p dir="auto">I searched in modify shortcut and script configuration but I couldn’t find it</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32126</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32126</guid><dc:creator><![CDATA[patrickdrd]]></dc:creator><pubDate>Tue, 08 May 2018 11:49:04 GMT</pubDate></item><item><title><![CDATA[Reply to is new tab next to current possible? on Tue, 08 May 2018 11:35:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/patrickdrd" aria-label="Profile: patrickdrd">@<bdi>patrickdrd</bdi></a></p>
<p dir="auto">sorry for not being clear.</p>
<p dir="auto">No, create a new script and assign the same shortcut which is assigned for<br />
standard open new document action (normally ctrl+n).</p>
<p dir="auto">This solution, obviously, works only if you open new documents by using the shortcut<br />
but not if you use the mouse.</p>
<p dir="auto">Does this makes sense to you?</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32125</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32125</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Tue, 08 May 2018 11:35:58 GMT</pubDate></item><item><title><![CDATA[Reply to is new tab next to current possible? on Tue, 08 May 2018 11:31:28 GMT]]></title><description><![CDATA[<p dir="auto">do you mean add that to my already existing <a href="http://startup.py" rel="nofollow ugc">startup.py</a>?</p>
<p dir="auto">I did but I get two tabs when I launch npp and the code doesn’t seem to work:</p>
<p dir="auto">from Npp import editor, notepad, SCINTILLANOTIFICATION, NOTIFICATION, STATUSBARSECTION<br />
import os<br />
from datetime import datetime</p>
<p dir="auto">def StatusbarSelOverride(args):<br />
modified_time = os.path.getmtime(notepad.getCurrentFilename())<br />
last_modified_date = datetime.fromtimestamp(modified_time)<br />
notepad.setStatusBar(STATUSBARSECTION.DOCTYPE, ‘Mod: {:%d/%m/%Y %H:%M}’.format(last_modified_date))</p>
<p dir="auto">editor.callback(StatusbarSelOverride, [SCINTILLANOTIFICATION.UPDATEUI])<br />
notepad.callback(StatusbarSelOverride, [NOTIFICATION.READY])</p>
<p dir="auto">current_index = notepad.getCurrentDocIndex(notepad.getCurrentView())<br />
notepad.new()<br />
new_index = notepad.getCurrentDocIndex(notepad.getCurrentView())<br />
for i in range(current_index+1,new_index):<br />
notepad.menuCommand(44099)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32124</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32124</guid><dc:creator><![CDATA[patrickdrd]]></dc:creator><pubDate>Tue, 08 May 2018 11:31:28 GMT</pubDate></item><item><title><![CDATA[Reply to is new tab next to current possible? on Tue, 08 May 2018 11:07:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/patrickdrd" aria-label="Profile: patrickdrd">@<bdi>patrickdrd</bdi></a></p>
<p dir="auto">afaik not natively but a python script could look like this</p>
<pre><code>current_index = notepad.getCurrentDocIndex(notepad.getCurrentView())
notepad.new()
new_index = notepad.getCurrentDocIndex(notepad.getCurrentView())
for i in range(current_index+1,new_index): 
    notepad.menuCommand(44099)
</code></pre>
<p dir="auto">from nativeLang.xml</p>
<pre><code>                &lt;Item id="44098" name="Move Tab Forward"/&gt;
                &lt;Item id="44099" name="Move Tab Backward"/&gt;
</code></pre>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32123</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32123</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Tue, 08 May 2018 11:07:59 GMT</pubDate></item></channel></rss>