<?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[Keystroke to switch focus from console window to active editor tab?]]></title><description><![CDATA[<p dir="auto">Is there a keystroke to switch focus from the plugins with “console” windows back to the active editor tab?  I’m speaking of either the Pythonscript or the NppExec plugin consoles–I can switch back with the mouse, but doing that results in the current caret position being changed, or selections that are active disappearing, neither of which is desirable.</p>
<p dir="auto">The functionality I’m looking for is similar to the F7 key (default) when using the Find Result panel–if your focus is in that panel, pressing F7 will get you back to the active editor window, caret-position unmoved, and selection blocks still highlighted.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/12467/keystroke-to-switch-focus-from-console-window-to-active-editor-tab</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 04:50:33 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/12467.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Oct 2016 18:01:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Keystroke to switch focus from console window to active editor tab? on Wed, 25 Oct 2017 12:23:42 GMT]]></title><description><![CDATA[<p dir="auto">Another way to achieve the original goal of this thread (moving input focus) was inadvertently pointed out in <a href="https://notepad-plus-plus.org/community/topic/14681/give-focus-to-find-window" rel="nofollow ugc">this thread</a>.  Thus:</p>
<p dir="auto">Enable (tick) the <strong>Peek on tab</strong> feature in the <strong>MISC.</strong> section (of <strong>Settings</strong> menu -&gt; <strong>Preferences</strong>).  When your input focus is NOT in your active document (maybe it is in a console window or the Find-what zone of the Find window), but you want to move it there without changing caret position or destroying a currently-active selection(s), simply point the mouse at an <em>inactive</em> tab–assumes you have more than one file open–and the (IMO otherwise useless) document-peeker window will pop up.  You will find input focus is now back in the editing window for the currently-active tab in the most recently-accessed view (view0 or view1).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27599</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27599</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Wed, 25 Oct 2017 12:23:42 GMT</pubDate></item><item><title><![CDATA[Reply to Keystroke to switch focus from console window to active editor tab? on Fri, 20 Oct 2017 22:00:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi Scott,</p>
<blockquote>
<p dir="auto">A slightly faster solution than <a class="plugin-mentions-user plugin-mentions-a" href="/user/claudia-frank" aria-label="Profile: Claudia-Frank">@<bdi>Claudia-Frank</bdi></a> 's alt+w+w+enter is the double Windows logo press</p>
</blockquote>
<p dir="auto">but this doesn’t work on my linux installation :-(</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27532</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27532</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Fri, 20 Oct 2017 22:00:35 GMT</pubDate></item><item><title><![CDATA[Reply to Keystroke to switch focus from console window to active editor tab? on Fri, 20 Oct 2017 19:27:00 GMT]]></title><description><![CDATA[<p dir="auto">A slightly faster solution than <a class="plugin-mentions-user plugin-mentions-a" href="/user/claudia-frank" aria-label="Profile: Claudia-Frank">@<bdi>Claudia-Frank</bdi></a> 's <code>alt+w+w+enter</code> is the double Windows logo press suggested by <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> in this thread:  <a href="https://notepad-plus-plus.org/community/topic/14271/keyboard-shortcut-for-next-previous-incremental-search-result" rel="nofollow ugc">https://notepad-plus-plus.org/community/topic/14271/keyboard-shortcut-for-next-previous-incremental-search-result</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/27527</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27527</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Fri, 20 Oct 2017 19:27:00 GMT</pubDate></item><item><title><![CDATA[Reply to Keystroke to switch focus from console window to active editor tab? on Wed, 12 Oct 2016 11:28:03 GMT]]></title><description><![CDATA[<p dir="auto">I noticed that when Notepad++ starts up (with Pythonscript plug-in installed), after everything initializes, the input focus is left on the Pythonscript console window because I use a “console.show()” in my <a href="http://startup.py" rel="nofollow ugc">startup.py</a> script.  This is less than desirable, so I added the following further down in my <a href="http://startup.py" rel="nofollow ugc">startup.py</a>, based upon Claudia’s tip above:</p>
<pre><code>import SendKeys
SendKeys.SendKeys("%{W}W{ENTER}")  # press Alt+W, then W, then Enter (to give focus to the editing tab that was active in the previous N++ run)
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/18383</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/18383</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Wed, 12 Oct 2016 11:28:03 GMT</pubDate></item><item><title><![CDATA[Reply to Keystroke to switch focus from console window to active editor tab? on Fri, 07 Oct 2016 14:12:10 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/scott-sumner" aria-label="Profile: Scott-Sumner">@<bdi>Scott-Sumner</bdi></a> ,</p>
<p dir="auto">If you are using NppGTags plugin then you can use its “Toggle Results Window Focus” command to switch to your active  Scintilla doc window. You’ll need to assign a shortcut to the plugin command to be able to use it without the mouse.<br />
However it will just take you to the edited document - there is currently no way to switch the focus back to PythonScript or NppExec console.<br />
I can easily implement it though.</p>
<p dir="auto">BR,<br />
Pavel</p>
]]></description><link>https://community.notepad-plus-plus.org/post/18279</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/18279</guid><dc:creator><![CDATA[pnedev]]></dc:creator><pubDate>Fri, 07 Oct 2016 14:12:10 GMT</pubDate></item><item><title><![CDATA[Reply to Keystroke to switch focus from console window to active editor tab? on Fri, 07 Oct 2016 11:28:29 GMT]]></title><description><![CDATA[<p dir="auto">I was hoping for a single keystroke to achieve it, but the solutions provided by Claudia and guy038 do indeed achieve the goal.  Thanks to all for the help.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/18274</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/18274</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Fri, 07 Oct 2016 11:28:29 GMT</pubDate></item><item><title><![CDATA[Reply to Keystroke to switch focus from console window to active editor tab? on Thu, 06 Oct 2016 23:54:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scott-sumner" aria-label="Profile: Scott-Sumner">@<bdi>Scott-Sumner</bdi></a></p>
<p dir="auto">Hi Scott, nppexec has a builtin function “toggle console dialog” and for python script<br />
and others I do alt+w+w+enter.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/18259</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/18259</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Thu, 06 Oct 2016 23:54:22 GMT</pubDate></item><item><title><![CDATA[Reply to Keystroke to switch focus from console window to active editor tab? on Thu, 06 Oct 2016 21:09:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scott-sumner" aria-label="Profile: Scott-Sumner">@<bdi>Scott-Sumner</bdi></a> Ah ok. I remember doing something similar before but my use-case was a bit different.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/18257</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/18257</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Thu, 06 Oct 2016 21:09:39 GMT</pubDate></item><item><title><![CDATA[Reply to Keystroke to switch focus from console window to active editor tab? on Thu, 06 Oct 2016 20:08:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dail" aria-label="Profile: dail">@<bdi>dail</bdi></a></p>
<p dir="auto">Thanks for the reply.  It doesn’t seem to get invoked when my focus is anywhere in the Pythonscript console window and I press the keycombo I’ve assigned.  If I’m in an editor window and press the keycombo, I see the console write of the debug message (“I’m running”) I created to make sure nothing else is breaking down with my process.  However, when I’m in the console area, pressing the keycombo results in no debug message.  Same bad result if the NppExec console window has focus when invoked.  It DOES work if I’m in the Find Result panel when I run it, or if I run it via the menu after giving focus to either of the mentioned consoles…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/18253</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/18253</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Thu, 06 Oct 2016 20:08:05 GMT</pubDate></item><item><title><![CDATA[Reply to Keystroke to switch focus from console window to active editor tab? on Thu, 06 Oct 2016 20:02:21 GMT]]></title><description><![CDATA[<p dir="auto">Hi <strong>Scott</strong>,</p>
<p dir="auto">Humm… I just tried and…( I may be <strong>wrong</strong> ) I’m thinking about a <strong>very easy</strong> way to do it :-))</p>
<p dir="auto">So, let’s suppose you opened our <strong>loved</strong> editor and that you displayed, for instance, the <strong>Python Console</strong>. Then :</p>
<ul>
<li>
<p dir="auto">With your mouse, create, in the <strong>current</strong> file, a <strong>normal</strong> or <strong>column</strong> mode selection ( or even the two ones, <strong>simultaneously</strong> ! )</p>
</li>
<li>
<p dir="auto">Click inside the <strong>Python console</strong> to get the <strong>focus</strong> on the <strong>plugin</strong></p>
</li>
<li>
<p dir="auto"><strong>Right</strong>-click, on the <strong>tab</strong> of the <strong>current</strong> file, to get the specific <strong>context</strong> menu, about <strong>tabs</strong></p>
</li>
<li>
<p dir="auto">Finally, either, hit the <strong>ESC</strong> key OR <strong>Left</strong>-click on the <strong>current</strong> tab, to close the <strong>context</strong> menu</p>
</li>
</ul>
<p dir="auto">=&gt; The focus should be <strong>back</strong> to the <strong>main editor</strong> window, with all the selections <strong>still</strong> highlighted and the cursor location <strong>unchanged</strong></p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/18252</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/18252</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 06 Oct 2016 20:02:21 GMT</pubDate></item><item><title><![CDATA[Reply to Keystroke to switch focus from console window to active editor tab? on Thu, 06 Oct 2016 18:07:39 GMT]]></title><description><![CDATA[<p dir="auto">AFAIK there isn’t anything built in. However you can do it from PythonScript (which you can tie to a shortcut). You’d have to do:</p>
<pre><code class="language-python">editor.grabFocus()
</code></pre>
<p dir="auto">See the documentation for <a href="http://npppythonscript.sourceforge.net/docs/latest/scintilla.html#Editor.grabFocus" rel="nofollow ugc">grabFocus()</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/18250</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/18250</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Thu, 06 Oct 2016 18:07:39 GMT</pubDate></item></channel></rss>