<?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[How do you open a new tab next to the current?]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">How do you open a new tab next to the current?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25439/how-do-you-open-a-new-tab-next-to-the-current</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 13:12:19 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25439.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Feb 2024 07:26:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How do you open a new tab next to the current? on Thu, 01 Feb 2024 12:31:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/piotrmp006" aria-label="Profile: PiotrMP006">@<bdi>PiotrMP006</bdi></a></p>
<p dir="auto">I don’t believe it can be done by Notepad++ itself.</p>
<p dir="auto">If by “next to” you mean “to the right of”, then the following PythonScript script can do it:</p>
<pre><code class="language-py"># -*- coding: utf-8 -*-

from Npp import *

curr_view = notepad.getCurrentView()
total_tabs_in_view = 0
for (pathname, buffer_id, index, view) in notepad.getFiles():
    if view == curr_view: total_tabs_in_view += 1
curr_tab_index = notepad.getCurrentDocIndex(curr_view)
notepad.new()
for __ in range(total_tabs_in_view - curr_tab_index - 1):
    notepad.menuCommand(MENUCOMMAND.VIEW_TAB_MOVEBACKWARD)
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/92550</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92550</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 01 Feb 2024 12:31:36 GMT</pubDate></item></channel></rss>