<?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[Creating &quot;copy buttons&quot;]]></title><description><![CDATA[<p dir="auto">I have a file I use daily, with a few hundred SQL scripts that I use regularly.</p>
<p dir="auto">I currently use “BEGIN” and “END” tags to collapse, which helps.<br />
However, if I unfold the block, I then have to specifically drag and copy.</p>
<p dir="auto">Is it possible to put a button somewhere, that copies lines X:Y, and can be added at the beginning of each script?</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16317/creating-copy-buttons</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 22:39:54 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16317.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Sep 2018 00:16:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Creating &quot;copy buttons&quot; on Thu, 13 Sep 2018 17:43:02 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>
<blockquote>
<p dir="auto">this may be related to #32</p>
</blockquote>
<p dir="auto">Ugh, and I looked thru the list before opening #104…double ugh!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34834</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34834</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Thu, 13 Sep 2018 17:43:02 GMT</pubDate></item><item><title><![CDATA[Reply to Creating &quot;copy buttons&quot; on Thu, 13 Sep 2018 17:35:22 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>
<blockquote>
<p dir="auto">They do not give a tool-tip when you hover over them on the toolbar…</p>
</blockquote>
<p dir="auto">See <a href="https://github.com/bruderstein/PythonScript/issues/104" rel="nofollow ugc">Add tooltip with script name when hover over script toolbar button</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/34833</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34833</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Thu, 13 Sep 2018 17:35:22 GMT</pubDate></item><item><title><![CDATA[Reply to Creating &quot;copy buttons&quot; on Thu, 13 Sep 2018 16:28:55 GMT]]></title><description><![CDATA[<p dir="auto">Oh boy, time to learn some Python!</p>
<p dir="auto">This probably isn’t the most complex script, so it may be a good starting point.</p>
<p dir="auto">Thanks everyone!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34832</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34832</guid><dc:creator><![CDATA[Jared Elick]]></dc:creator><pubDate>Thu, 13 Sep 2018 16:28:55 GMT</pubDate></item><item><title><![CDATA[Reply to Creating &quot;copy buttons&quot; on Thu, 13 Sep 2018 16:21:14 GMT]]></title><description><![CDATA[<p dir="auto">Oh, right.  I forgot about that panel.</p>
<p dir="auto">Experiment:  I just added two of my scripts to that panel.</p>
<ul>
<li>If you click on the name of the script after you’ve <strong>Add</strong>ed it, then you can <strong>Set Icon…</strong> to either an <code>.ico</code> or <code>.bmp</code>.</li>
<li>Each script in that panel can get a separate icon.</li>
<li>You have to restart Notepad++ to get the button to show up, whether you use a custom icon or don’t assign one</li>
<li>They do not give a tool-tip when you hover over them on the toolbar, so you’ll want to make sure you use meaningful icons that will tell you at a glance what they’re supposed to do.  Good luck with that. :-)</li>
</ul>
<p dir="auto"><strong>edit</strong>: those assignments go into <code>%AppData%\Notepad++\plugins\config\PythonScriptStartup.cnf</code>…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34831</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34831</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 13 Sep 2018 16:21:14 GMT</pubDate></item><item><title><![CDATA[Reply to Creating &quot;copy buttons&quot; on Thu, 13 Sep 2018 15:56:11 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>
<blockquote>
<p dir="auto">how to connect a script to a toolbar button?</p>
</blockquote>
<p dir="auto">It’s actually very similar to how one assigns a keycombo to a script…see <strong>Plugins</strong> (menu) -&gt; <strong>Python Script</strong> -&gt; <strong>Configuration…</strong>* and look to the <em>RIGHT</em> of the window; keyboard stuff is on the <em>LEFT</em>.</p>
<p dir="auto">For myself I only use ONE toolbar button for a PS, so I’m not sure about getting a custom graphic on this type of toolbar button…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34830</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34830</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Thu, 13 Sep 2018 15:56:11 GMT</pubDate></item><item><title><![CDATA[Reply to Creating &quot;copy buttons&quot; on Thu, 13 Sep 2018 15:51:02 GMT]]></title><description><![CDATA[<p dir="auto">I had forgotten about that.  Do you have example (both for the OP, and for my curiosity) of how to connect a script to a toolbar button?</p>
<p dir="auto">(I vaguely remember from eons past that there was a toolbar-customizer plugin, but I never got into that one.  Is the toolbar-to-py something you can “register” within the <code>startup.py</code>?  Or someplace else?)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34829</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34829</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 13 Sep 2018 15:51:02 GMT</pubDate></item><item><title><![CDATA[Reply to Creating &quot;copy buttons&quot; on Thu, 13 Sep 2018 14:59:19 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:</p>
<blockquote>
<p dir="auto">It wouldn’t be a button, but …</p>
</blockquote>
<p dir="auto">Why not?  Pythonscripts are tie-able to either a keycombo OR a toolbar <em>button</em> …  :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34827</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34827</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Thu, 13 Sep 2018 14:59:19 GMT</pubDate></item><item><title><![CDATA[Reply to Creating &quot;copy buttons&quot; on Thu, 13 Sep 2018 13:21:32 GMT]]></title><description><![CDATA[<p dir="auto">You could write a <a href="http://npppythonscript.sourceforge.net/" rel="nofollow ugc">PythonScript</a> which would automate the copy process; after using <strong>Plugins &gt; Python Script &gt; Configuration</strong> to put that script into the <strong>Macro</strong> menu, you could use <strong>Settings &gt; Shortcut Mapper</strong> to assign a keyboard shortcut to that script.</p>
<p dir="auto">It wouldn’t be a button, but it might do what you want.</p>
<p dir="auto"><strong>edit</strong>: while the official  <a href="http://npppythonscript.sourceforge.net/" rel="nofollow ugc">PythonScript homepage</a> is at the link above, you should download the most recent from <a href="https://github.com/bruderstein/PythonScript/releases" rel="nofollow ugc">here</a>, or using the Plugin Manager.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34822</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34822</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 13 Sep 2018 13:21:32 GMT</pubDate></item></channel></rss>