<?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[[Improvements] Folding, copy paste, drag&#x27;n drop]]></title><description><![CDATA[<p dir="auto">I wish to advance a proposal of improvement to the Npp dev team. Its about how folding behaves when copy and pasting and when drag 'n dropping.<br />
If a section is folded into one line and the user select the folded part and copy and past or tries to drag’n drop elsewhere, not the whole section ins processed but only the start row that the folded section stars with.</p>
<p dir="auto">My proposal is that when a section is folded and the user moves with drag’n drop or cuts/copy and  / pasts it elsewhere the whole section has to be moved as happens with Microsoft word while moving the whole chapter of a structured text.</p>
<p dir="auto">At the moment if the user wants to process the whole section that is folded has to select the whole section plus one line more. The problem is that not every time it is empty so cannot be done.</p>
<p dir="auto">Ho to reproduce the bad behavior:<br />
Make a generic content that is possible to fold and fold it clicking on the - (folding point): the section folds… than select the row and cut|copy/past or drag’n drop it elsewhere: only the first row is processed if you don’t select an empty row after the folded section.<br />
If you have other text you cannot select correctly.</p>
<p dir="auto">Also when a section is folded and you try to move them by using the keyboard (Ctrl+Shift+up|down arrow) is expected that the whole section moves before or after the previous or next folded section at once. But instead is un-folded and moves line by line. This too is an ugly behavior that IMHO needs correction making a folded section move <strong>all at once</strong> and jump the others folded section <strong>all at once</strong>: each folded section has to act <strong>as a block</strong>.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24529/improvements-folding-copy-paste-drag-n-drop</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 19:36:39 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24529.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 04 Jun 2023 16:39:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Improvements] Folding, copy paste, drag&#x27;n drop on Sun, 11 Jun 2023 12:27:27 GMT]]></title><description><![CDATA[<p dir="auto">OK the solution proposed works indeed: so the trick is basically to select one more paragraph / end of line /  \r\n to make it work.<br />
Thank  you all.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86983</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86983</guid><dc:creator><![CDATA[wonkawilly]]></dc:creator><pubDate>Sun, 11 Jun 2023 12:27:27 GMT</pubDate></item><item><title><![CDATA[Reply to [Improvements] Folding, copy paste, drag&#x27;n drop on Tue, 06 Jun 2023 22:54:15 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> ,<br />
I think we just misunderstood each other…I’m agreeing with you, I’m just pointing out a flaw, more due to my UDL limitation, than the technique you’re talking about.<br />
:-)<br />
I agree with you, and have done it, it’s just the flaw with how the UDL works that causes it not to get the <code>intended</code> end of the fold, so it does work as it’s supposed to, my UDL just leaves it short.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86886</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86886</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Tue, 06 Jun 2023 22:54:15 GMT</pubDate></item><item><title><![CDATA[Reply to [Improvements] Folding, copy paste, drag&#x27;n drop on Tue, 06 Jun 2023 21:43:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lycan-thrope" aria-label="Profile: Lycan-Thrope">@<bdi>Lycan-Thrope</bdi></a> ,</p>
<p dir="auto">On a technicality, I still maintain that Alan and I are right, because Alan’s method grabs the entire folded section (27-46 in your example) – grabbing something outside the fold (lines 47 and 48 in your example) (whether it <em>should</em> have been part of the code block or not) was not part of the problem statement (“select the folded part”).  If you want to grab more than just what’s inside the fold, you can extend the selection after starting to grab the whole block the way that Alan described.</p>
<p dir="auto">To sum up: Double-clicking the margin will only select a single line, whether it’s the first line of a fold or not; selecting from the first character of a line then using shift+arrow to move to the next visible line will select the entirety of the fold; and you are responsible to extend beyond that yourself, if you want to select more than was folded.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86884</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86884</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 06 Jun 2023 21:43:41 GMT</pubDate></item><item><title><![CDATA[Reply to [Improvements] Folding, copy paste, drag&#x27;n drop on Tue, 06 Jun 2023 20:03:40 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> ,<br />
There is one exception to this, depending on if it’s an inhouse or UDL language. For instance, my UDL has an issue when the <code>return</code> statement is used inside say a <code>do case</code> structure, the folding short circuits including text after that return statement, as belonging to the function that is folded, and consequently, the remaining text after the first <code>return</code> will be outside the fold.</p>
<p dir="auto">However, copying that additional bit of text along with the folded function line, does indeed do as you describe, by copying and expanding the folded function, including the internal <code>do case</code> folded section as well. Below shows the needed copy and paste screenshots that I have to do, unless I can figure out how to allow a return statement inside of a function to not be counted when it is not the function’s true <code>return</code> closing keyword:</p>
<p dir="auto"><img src="/assets/uploads/files/1686081774289-foldedudlfunction1.png" alt="FoldedUDLFunction1.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1686081810658-foldedudlfunction2.png" alt="FoldedUDLFunction2.PNG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/86882</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86882</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Tue, 06 Jun 2023 20:03:40 GMT</pubDate></item><item><title><![CDATA[Reply to [Improvements] Folding, copy paste, drag&#x27;n drop on Tue, 06 Jun 2023 13:17:46 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,</p>
<blockquote>
<p dir="auto">It will do the described poor behavior if you click the line number margin to select.</p>
</blockquote>
<p dir="auto">Then <a class="plugin-mentions-user plugin-mentions-a" href="/user/wonkawilly" aria-label="Profile: wonkawilly">@<bdi>wonkawilly</bdi></a> said in <a href="/post/86864">[Improvements] Folding, copy paste, drag’n drop</a>:</p>
<blockquote>
<p dir="auto">Tried: doesn’t work; just the first line of the folded block gets moved</p>
</blockquote>
<p dir="auto">He just told you clicking in the line margin to select will <em>not</em> work, and then you tell him you tried doing that and it didn’t work.  This is unsurprising, as it’s exactly what he said wouldn’t work.  But luckily for you, Alan went on to explain exactly how you <em>can</em> achieve your desired behavior:</p>
<p dir="auto">And I quote <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> here (emphasis added):</p>
<blockquote>
<p dir="auto">However, if you <strong>don’t</strong> use the line-margin selection technique, but rather use the mouse to <strong>select the folded lineblock’s single visible line (in its entirety)</strong>, and then drag it to a new location, the block moves (and is expanded when dropped).</p>
</blockquote>
<p dir="auto">You also said,</p>
<blockquote>
<p dir="auto">I can’t because I get the message: "You can’t perform that action at this time. "</p>
</blockquote>
<p dir="auto">Yes, it is rather unfortunate for you that decisions you made when posting in the GitHub issues have lasting consequences.  But that doesn’t change the fact that we in the Community Forum can do <em>nothing</em> here to implement feature improvements, and any suggestions made here can only serve to get you <em>our</em> opinions on your ideas, and our thoughts for workarounds; but nothing you say here will be taken by any of the developers as an official feature request.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86875</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86875</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 06 Jun 2023 13:17:46 GMT</pubDate></item><item><title><![CDATA[Reply to [Improvements] Folding, copy paste, drag&#x27;n drop on Tue, 06 Jun 2023 11:27:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/wonkawilly" aria-label="Profile: wonkawilly">@<bdi>wonkawilly</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Oh, I <strong>misunderstood</strong> your post :-(( Indeed, you seem <strong>upset</strong> that a click on the <strong>line number</strong> of the <strong>folded</strong> line does <strong>not</strong> copy <strong>all</strong> the structure, doesn’t it ?</p>
<p dir="auto">Well, then simply use one of the <strong>two</strong> techniques, described in my <strong>previous</strong> post !</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86872</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86872</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Tue, 06 Jun 2023 11:27:28 GMT</pubDate></item><item><title><![CDATA[Reply to [Improvements] Folding, copy paste, drag&#x27;n drop on Tue, 06 Jun 2023 11:26:42 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/wonkawilly" aria-label="Profile: wonkawilly">@<bdi>wonkawilly</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/lycan-thrope" aria-label="Profile: lycan-thrope">@<bdi>lycan-thrope</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">But, <a class="plugin-mentions-user plugin-mentions-a" href="/user/wonkawilly" aria-label="Profile: wonkawilly">@<bdi>wonkawilly</bdi></a>, it <em>DOES</em> <strong>copy / paste</strong> the <strong>folded</strong> <strong><code>html</code></strong> section !</p>
<hr />
<ul>
<li>
<p dir="auto">Placed your caret to the <strong>very beginning</strong> of your <strong>folded</strong> line, whatever it is</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Shift + Down arrow</code></strong>  shortcut</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Ctrl + C </code></strong> shortcut</p>
</li>
<li>
<p dir="auto">Open a <strong>new</strong> tab ( <strong><code>Ctrl + V</code></strong> )</p>
</li>
<li>
<p dir="auto">Paste the <strong><code>HTML</code></strong> stucture of the <strong>folded</strong> section ( <strong><code>Ctrl + V</code></strong> )</p>
</li>
</ul>
<hr />
<p dir="auto">You may, as well, use the <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>’s techique and <strong>drag n’ drop</strong> your <strong>folded</strong> section in a <strong>new</strong> tab, using the <strong>two</strong> panels feature !</p>
<p dir="auto">But, whatever your choice, your <strong>new</strong> tab should contain the <strong>complete</strong> struture of the <strong>folded</strong> section selected !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86871</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86871</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Tue, 06 Jun 2023 11:26:42 GMT</pubDate></item><item><title><![CDATA[Reply to [Improvements] Folding, copy paste, drag&#x27;n drop on Tue, 06 Jun 2023 05:27:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wonkawilly" aria-label="Profile: wonkawilly">@<bdi>wonkawilly</bdi></a> ,<br />
The tools you mention, again for clarification, are <strong>Word Processors</strong> and Notepad++ is <strong>not</strong>.</p>
<p dir="auto">You can code in a word processor if you want to, as long as it’s exported/saved to a .txt format file, since a word processor has meta data and structures that allow for the fancy manipulation you are asking about…and again, for clarification and education, Notepad++ is <strong>not</strong> a word processor, it is a <strong>text editor</strong></p>
<p dir="auto">The capabilities of NPP is by nature, the product of a library that allows for meta manipulation of text for the purpose of minor word processing capability to produce syntax highlighting, folding (that you are asking about) and is inherent in the library itself, not NPP…so maybe this feature is something that you could direct to the Scintilla project, to make it something it can do by default by calling a few routines in that library.</p>
<p dir="auto">NPP can do a lot of things beyond just being a code editor, but at the end of the day, it only handles text, saves as text and does not save the structure of the document itself, in the document. That’s the basic difference between what we have, and what you want.</p>
<p dir="auto">Those examples you give save their document format and structure in the doument itself, hence by nature, it is not a comparable capability that can be embedded in the text files that NPP works with.  I can’t understand why people <strong>can not</strong> or <strong>will not</strong> understand and accept that NPP is a text editor and not a word processor, where all those <strong>neat</strong> features everyone wants belongs.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86865</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86865</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Tue, 06 Jun 2023 05:27:48 GMT</pubDate></item><item><title><![CDATA[Reply to [Improvements] Folding, copy paste, drag&#x27;n drop on Tue, 06 Jun 2023 05:04:57 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/86829">[Improvements] Folding, copy paste, drag’n drop</a>:</p>
<blockquote>
<p dir="auto">It will do the described poor behavior if you click the line number margin to select.</p>
</blockquote>
<p dir="auto">Tried: doesn’t work; just the first line of the folded block gets moved<br />
An Animated screenshot follows:<br />
<img src="/assets/uploads/files/1686027868899-2023-06-06-07-03-11.gif" alt="2023-06-06 07 03 11.gif" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/86864</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86864</guid><dc:creator><![CDATA[wonkawilly]]></dc:creator><pubDate>Tue, 06 Jun 2023 05:04:57 GMT</pubDate></item><item><title><![CDATA[Reply to [Improvements] Folding, copy paste, drag&#x27;n drop on Tue, 06 Jun 2023 04:23:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lycan-thrope" aria-label="Profile: Lycan-Thrope">@<bdi>Lycan-Thrope</bdi></a> Somethime you might have to move huge sections of text or code with the huge risk let in place some orphan row.<br />
Folding have been invented not only to hide rows but even to facilitate working with very long text with easiness.<br />
Look for example at MS Word or Libre office Write that are able to move whole chapters ad sub chapters around into a structured document just moving a row: the title of the chapter that you want to move.<br />
This is a powerful editing tool to have into a text editor.</p>
<p dir="auto">Ps<br />
Also about asking for new features and improvements into<br />
<a href="https://github.com/notepad-plus-plus/notepad-plus-plus" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus</a><br />
I can’t because I get the message:</p>
<p dir="auto">"You can’t perform that action at this time. "</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86862</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86862</guid><dc:creator><![CDATA[wonkawilly]]></dc:creator><pubDate>Tue, 06 Jun 2023 04:23:31 GMT</pubDate></item><item><title><![CDATA[Reply to [Improvements] Folding, copy paste, drag&#x27;n drop on Mon, 05 Jun 2023 20:35:21 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> ,<br />
Originally, I answered with the link to the FAQ on how to suggest Features, but if this is about a discussion, then my vote is that the user should just unfold and cut/copy/paste the complete text they want. That way there is no magic needed, nor will they be confused why everything wasn’t pasted.</p>
<p dir="auto">Some things, in my POV is that some people are just being excessively lazy either in planning out their layouts whether that be code or chapters of a book, and expecting the software to make their needing to change something, the responsibility of the application to make their mistakes easier to repair.</p>
<p dir="auto">I’m a touch typist, having been using a manual typewriter, going to an electric typewriter, to using software word processors and code editors, and it amazes me, how someone could have ever survived using the tools I did, prior to software tools. But, therein lies the answer to their problem…now they just have to learn how to code the solution to their problems themselves, rather than rely on other people and tools to do it for them. I guess I’m just old to think such things. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86848</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86848</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Mon, 05 Jun 2023 20:35:21 GMT</pubDate></item><item><title><![CDATA[Reply to [Improvements] Folding, copy paste, drag&#x27;n drop on Mon, 05 Jun 2023 10:53:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wonkawilly" aria-label="Profile: wonkawilly">@<bdi>wonkawilly</bdi></a> said in <a href="/post/86808">[Improvements] Folding, copy paste, drag’n drop</a>:</p>
<blockquote>
<p dir="auto">How to reproduce the bad behavior:<br />
Make a generic content that is possible to fold and fold it clicking on the - (folding point): the section folds… than select the row and cut|copy/past or drag’n drop it elsewhere: only the first row is processed if you don’t select an empty row after the folded section.<br />
If you have other text you cannot select correctly.</p>
</blockquote>
<p dir="auto">It will do the described poor behavior if you click the line number margin to select.</p>
<p dir="auto">However, if you don’t use the line-margin selection technique, but rather use the mouse to select the folded lineblock’s single visible line (in its entirety), and then drag it to a new location, the block moves (and is expanded when dropped).</p>
<hr />
<blockquote>
<p dir="auto">Also when a section is folded and you try to move them by using the keyboard (Ctrl+Shift+up|down arrow) is expected that the whole section moves before or after the previous or next folded section at once. But instead is un-folded and moves line by line. This too is an ugly behavior that IMHO needs correction making a folded section move all at once and jump the others folded section all at once: each folded section has to act as a block.</p>
</blockquote>
<p dir="auto">This perhaps is a valid point, with the obvious workaround of cut -&gt; move caret -&gt; paste.</p>
<p dir="auto">I used to like “move line up” / “move line down” functionality, but I have stopped using them for two reasons:  It puts a lot of information in the undo buffer, so if I’m undoing or redoing, I find myself getting confused about what the “real” operation was, and also because it can do unintended changes to “change history”, which I have come to rely on.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86829</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86829</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 05 Jun 2023 10:53:30 GMT</pubDate></item><item><title><![CDATA[Reply to [Improvements] Folding, copy paste, drag&#x27;n drop on Mon, 05 Jun 2023 04:59:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wonkawilly" aria-label="Profile: wonkawilly">@<bdi>wonkawilly</bdi></a> ,<br />
Try reading this FAQ, and take it from there.<br />
<a href="https://community.notepad-plus-plus.org/topic/15741/faq-desk-feature-request-or-bug-report">https://community.notepad-plus-plus.org/topic/15741/faq-desk-feature-request-or-bug-report</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/86817</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86817</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Mon, 05 Jun 2023 04:59:45 GMT</pubDate></item></channel></rss>