<?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[Automatically copy selected text?]]></title><description><![CDATA[<p dir="auto">Some platforms (Unix/X11) and tools (UltraEdit) can automatically copy selected text to the clipboard (without having to ctrl-C or right-click).  Is there some way to configure Notepad++ to do this?</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19778/automatically-copy-selected-text</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 04:40:11 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19778.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Jul 2020 19:26:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Automatically copy selected text? on Fri, 31 Jul 2020 21:01:49 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/56373">Automatically copy selected text?</a>:</p>
<blockquote>
<p dir="auto">there’s no reason that functionality even needs to mess with the clipboard to do what it does</p>
</blockquote>
<p dir="auto">Indeed.  That was the point I was trying to make that made your head hurt. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56374</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56374</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 31 Jul 2020 21:01:49 GMT</pubDate></item><item><title><![CDATA[Reply to Automatically copy selected text? on Fri, 31 Jul 2020 21:00:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/56370">Automatically copy selected text?</a>:</p>
<blockquote>
<p dir="auto">Not to be confused with this Paste-special.</p>
</blockquote>
<p dir="auto">As I was composing earlier I almost said YAPS (yet-another-paste-special).  Indeed, I already have a subfolder under <code>Scripts</code> in my Pythonscript menu in N++ called <code>PasteSpecial</code> (because there are a lot of them).  What I really need is a PasteSpecialManager.</p>
<blockquote>
<p dir="auto">my Chrome browser in Windows (and/or this forum) actually already has a second buffer or equivalent: when I highlight the above line and click Reply, it auto-populates with just that portion of your text</p>
</blockquote>
<p dir="auto">Yes, very handy, but there’s no reason that functionality even needs to mess with the clipboard to do what it does.  Like when a Pythonscript does <code>editor.getSelText()</code> in order to manipulate some text (within N++), the clipboard is not involved/affected.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56373</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56373</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 31 Jul 2020 21:00:27 GMT</pubDate></item><item><title><![CDATA[Reply to Automatically copy selected text? on Fri, 31 Jul 2020 20:52:38 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/56368">Automatically copy selected text?</a>:</p>
<blockquote>
<p dir="auto">Two buffers is a good idea, although as you state it requires two different ways of invoking a paste.  The one for the auto-copied text might be thought of as a Paste-special.</p>
</blockquote>
<p dir="auto">Not to be confused with <a href="https://community.notepad-plus-plus.org/topic/19566/pastespecial-revisited"><em>this</em> Paste-special</a>. :-)</p>
<p dir="auto">Oddly, my Chrome browser in Windows (and/or this forum) actually already has a second buffer or equivalent: when I highlight the above line and click Reply, it auto-populates with just that portion of your text.  But my clipboard is still there, because I was able to paste the URL. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56370</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56370</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 31 Jul 2020 20:52:38 GMT</pubDate></item><item><title><![CDATA[Reply to Automatically copy selected text? on Fri, 31 Jul 2020 20:26:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a></p>
<p dir="auto">Two buffers is a good idea, although as you state it requires two different ways of invoking a paste.  The one for the auto-copied text might be thought of as a Paste-special.</p>
<blockquote>
<p dir="auto">Personally, if I had such a feature in Notepad++, I would want it to be “look at the contents of the active selection, and insert that text here”, not “put the contents of the active selection in the clipboard then paste here”</p>
</blockquote>
<p dir="auto">For some reason that made my head hurt, but I <em>think</em> I understand its meaning.  :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56368</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56368</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 31 Jul 2020 20:26:41 GMT</pubDate></item><item><title><![CDATA[Reply to Automatically copy selected text? on Fri, 31 Jul 2020 19:56:41 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/56364">Automatically copy selected text?</a>:</p>
<blockquote>
<p dir="auto">Wouldn’t one just hook into the editor window’s <code>WM_LBUTTONUP</code> message, and then if <code>editor.getSelectionEmpty()</code> is False, do an <code>editor.copy()</code> ?</p>
</blockquote>
<p dir="auto">That would probably do what was described/requested, yes.</p>
<blockquote>
<p dir="auto">for those “oops” moments.</p>
</blockquote>
<p dir="auto">“I had a huge amount of text in the clipboard, then I selected one word in Notepad++ because I was going to paste the clipboard to replace that word, and now my clipboard just contains that one word!”</p>
<p dir="auto">I think in the X11 (linux gui) environment, there are actually two copy-buffers: one for manual Ctrl+C/Ctrl+V and one for the selection-buffer, otherwise the sequence below wouldn’t work</p>
<p dir="auto">-----<br />
<img src="https://i.imgur.com/J62v3Kj.gif" alt="" class=" img-fluid img-markdown" /></p>
<pre><code>manual copy : __

selection

final paste: 

------

1. copy "manual copy" using Ctrl+C
2. highlight "selection"
3. paste using Ctrl+V 
    =&gt; pastes "manual copy", not "selection", 
    so highlight-selection obviously didn't 
4. undo
5. select "selection"
6. middle click between the underscores
    =&gt; it pastes "selection"
7. go to after "final paste:" and Ctrl+V paste
    =&gt; it pastes "manual copy", so the 
    pasting of the highlighted "selection"
    didn't overwrite the clipboard
</code></pre>
<p dir="auto">-----</p>
<p dir="auto">Personally, if I had such a feature in Notepad++, I would want it to be “look at the contents of the active selection, and insert that text here”, <strong>not</strong> “put the contents of the active selection in the clipboard then paste here”.  Of course, that would only work inside of Notepad++, and wouldn’t have the cross-application capabilities that X11 includes for the selection-buffer pasting.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56366</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56366</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 31 Jul 2020 19:56:41 GMT</pubDate></item><item><title><![CDATA[Reply to Automatically copy selected text? on Fri, 31 Jul 2020 19:01:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/56313">Automatically copy selected text?</a>:</p>
<blockquote>
<p dir="auto">…Pythonscript…which is the right Scintilla notification to hook into.</p>
</blockquote>
<p dir="auto">Wouldn’t one just hook into the editor window’s <code>WM_LBUTTONUP</code> message, and then if <code>editor.getSelectionEmpty()</code> is False, do an <code>editor.copy()</code> ?</p>
<p dir="auto">If I had such a feature, I’d like something like an <code>Esc</code> keypress in between <code>WM_LBUTTONDOWN</code> and <code>WM_LBUTTONUP</code> to cancel the automatic copy, for those “oops” moments.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56364</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56364</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 31 Jul 2020 19:01:05 GMT</pubDate></item><item><title><![CDATA[Reply to Automatically copy selected text? on Wed, 29 Jul 2020 19:57:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/georg-trimborn" aria-label="Profile: Georg-Trimborn">@<bdi>Georg-Trimborn</bdi></a> said in <a href="/post/56312">Automatically copy selected text?</a>:</p>
<blockquote>
<p dir="auto">Is there some way to configure Notepad++ to do this?</p>
</blockquote>
<p dir="auto">This plugin supposedly does that:</p>
<p dir="auto"><a href="https://github.com/KubaDee/SelectToClipboard/" rel="nofollow ugc">https://github.com/KubaDee/SelectToClipboard/</a></p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56314</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56314</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Wed, 29 Jul 2020 19:57:35 GMT</pubDate></item><item><title><![CDATA[Reply to Automatically copy selected text? on Wed, 29 Jul 2020 19:33:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/georg-trimborn" aria-label="Profile: Georg-Trimborn">@<bdi>Georg-Trimborn</bdi></a> ,</p>
<p dir="auto">That is not a feature that’s been implemented in Notepad++, as far as I know.  If someone else disagrees, they can chime in.</p>
<p dir="auto">Given the right notification to hook into, it might be doable in PythonScript or thru a plugin, but I don’t know of an already-existing plugin that handles that, nor do I know off the top of my head which is the right <a href="https://www.scintilla.org/ScintillaDoc.html#Notifications" rel="nofollow ugc">Scintilla notification</a> to hook into.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56313</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56313</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 29 Jul 2020 19:33:59 GMT</pubDate></item></channel></rss>