<?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[Sort Lines Lexicographically did not work]]></title><description><![CDATA[<p dir="auto">I had a file with a 300+ names in it.  When I clicked on Sort Lexicographically either ascending or descending nothing happened. When I used the dos sort command the file sorted correctly.<br />
Notepad++ Edit/Line Operations/Sort Lines Lexicographically.</p>
<p dir="auto">I can provide the list of names if needed.</p>
<p dir="auto">Notepad++ v7.5.8 32 bit<br />
Win 10 Pro</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16313/sort-lines-lexicographically-did-not-work</link><generator>RSS for Node</generator><lastBuildDate>Mon, 15 Jun 2026 07:59:23 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16313.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 Sep 2018 17:47:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Fri, 14 Apr 2023 22:31:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cooeeeee" aria-label="Profile: Cooeeeee">@<bdi>Cooeeeee</bdi></a> said in <a href="/post/83205">Sort Lines Lexicographically did not work</a>:</p>
<blockquote>
<p dir="auto">I’ve been using Notepad++ for years. My most used feature is Sort Lexicographically to sort a column mode selection (i.e. I essentially have a table of data). For example, I’ll use Alt+Shift and maybe select columns 27-30 across all lines, then do a lexicographical sort on that.</p>
<p dir="auto">Today I encountered a list that wasn’t sorting correctly. I’ve not had this problem before. My lines had some tabs prior to the columns I was trying to sort. Reading through this thread gave me the idea to try the “TAB to space” conversion. My listed would sort correctly after making that adjustment. Somehow the tabs were breaking it. I figured I’ll leave this tip here in case it can help anyone else.</p>
</blockquote>
<p dir="auto">Indeed, sorting by column does not work if there are tabs before the columns. No doubt for efficiency, the column sort in Notepad++ determines a single pair of starting and ending character positions to apply to all lines, rather than independently extracting the selected text on every line; tabs are treated as single characters, no matter how wide they are on the display.</p>
<p dir="auto">If you’re interested in a pre-release version of a plugin, <a href="https://github.com/Coises/ColumnsPlusPlus" rel="nofollow ugc">Columns++</a> includes a sort function which works as expected when there are tabs in the document.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85671</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85671</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Fri, 14 Apr 2023 22:31:55 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Fri, 14 Apr 2023 21:20:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rui-chen" aria-label="Profile: Rui-Chen">@<bdi>Rui-Chen</bdi></a> ,</p>
<p dir="auto">Sorry, I cannot replicate.  You either didn’t do a good job of explaining the data and sequence you took, or you did something wrong when trying to do your sort.</p>
<p dir="auto">If I have two nearly-identical data sets, which only differ in <code>a</code> vs <code>v</code> in the location you described, the two files sort identically using <strong>Edit &gt; Line Operations &gt; Sort Lines Lexicographically Ascending</strong></p>
<h4>file “a”, before sort</h4>
<pre><code class="language-txt">1
{ key = '7 Pro', a},
2
{ key = '7', a},
3
</code></pre>
<h4>file “a” after sort</h4>
<pre><code class="language-txt">1
2
3
{ key = '7 Pro', a},
{ key = '7', a},
</code></pre>
<h4>file “v” before sort</h4>
<pre><code class="language-txt">1
{ key = '7 Pro', v},
2
{ key = '7', v},
3
</code></pre>
<h4>file “v” after sort</h4>
<pre><code class="language-txt">1
2
3
{ key = '7 Pro', v},
{ key = '7', v},
</code></pre>
<p dir="auto">There is no difference between those results, and they work as expected.</p>
<p dir="auto">You might want to check if you have different line endings in the different files, or if one file has mixed line endings and the other doesn’t, or something.  (<strong>View &gt; Show Symbol &gt; Show All Characters</strong> or <strong>Show End of Line</strong>).  You can embed a screenshot with the line-endings shown if you think it will help us replicate your problem.</p>
<p dir="auto">Please make use of the <code>&lt;/&gt;</code> button in the toolbar to mark up example text, and make the example text actually replicate the problem.  Also, share <strong>?</strong>-menu’s <strong>Debug Info</strong> so we know what version, environment, and plugins you have, which might be influencing things.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85670</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85670</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 14 Apr 2023 21:20:21 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Fri, 14 Apr 2023 20:53:49 GMT]]></title><description><![CDATA[<p dir="auto">Here is a very simple strange case:</p>
<p dir="auto">&gt; sort file1<br />
end of line<br />
first line, all spaces in the file<br />
{ key = ‘7’, a},<br />
{ key = ‘7 Pro’, a},</p>
<p dir="auto">&gt; sort file2<br />
end of line<br />
first line, all spaces in the file<br />
{ key = ‘7 Pro’, v},<br />
{ key = ‘7’, v},</p>
<p dir="auto">Only difference is that “a” vs “v” in those two lines.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85669</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85669</guid><dc:creator><![CDATA[Rui Chen]]></dc:creator><pubDate>Fri, 14 Apr 2023 20:53:49 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Wed, 11 Jan 2023 12:10:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cooeeeee" aria-label="Profile: Cooeeeee">@<bdi>Cooeeeee</bdi></a> said in <a href="/post/83205">Sort Lines Lexicographically did not work</a>:</p>
<blockquote>
<p dir="auto">My lines</p>
</blockquote>
<p dir="auto">Might have been more helpful if you had shown the data that illustrates your failure…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83207</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83207</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 11 Jan 2023 12:10:22 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Wed, 11 Jan 2023 09:41:06 GMT]]></title><description><![CDATA[<p dir="auto">I’ll drop a comment here because Google brought me here.</p>
<p dir="auto">I’ve been using Notepad++ for years. My most used feature is Sort Lexicographically to sort a column mode selection (i.e. I essentially have a table of data). For example, I’ll use Alt+Shift and maybe select columns 27-30 across all lines, then do a lexicographical sort on that.</p>
<p dir="auto">Today I encountered a list that wasn’t sorting correctly. I’ve not had this problem before. My lines had some tabs prior to the columns I was trying to sort. Reading through this thread gave me the idea to try the “TAB to space” conversion. My listed would sort correctly after making that adjustment. Somehow the tabs were breaking it. I figured I’ll leave this tip here in case it can help anyone else.</p>
<p dir="auto">It breaks again if I use the Space To Tab (All) option.</p>
<p dir="auto">The spaces / tabs are not part of the column I’m trying to sort - they are outside my selection.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83205</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83205</guid><dc:creator><![CDATA[Cooeeeee]]></dc:creator><pubDate>Wed, 11 Jan 2023 09:41:06 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Mon, 04 Jul 2022 13:20:01 GMT]]></title><description><![CDATA[<p dir="auto">Here was the problem that I had. Notepad++ was setup with Windows style line endings (CR LF: \r\n), but the file contained Unix style line endings (LF: \n), so while it appeared to have correct line endings, it did not according to Windows style line endings. Thus the sort did nothing.<br />
Solution: cut and paste into a new file so that the LF became CR LF.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78108</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78108</guid><dc:creator><![CDATA[Jeffrey Edison]]></dc:creator><pubDate>Mon, 04 Jul 2022 13:20:01 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Thu, 30 Dec 2021 02:26:12 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/72474">Sort Lines Lexicographically did not work</a>:</p>
<blockquote>
<p dir="auto">Notepad++ developers could compensate for that, but for whatever reason, have chosen not to.</p>
</blockquote>
<p dir="auto">And this looks like the official tracking item for what hasn’t been done:  <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/7735" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/issues/7735</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/72479</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72479</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 30 Dec 2021 02:26:12 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Wed, 29 Dec 2021 22:39:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peter-vazny" aria-label="Profile: peter-vazny">@<bdi>peter-vazny</bdi></a></p>
<p dir="auto">The real problem is that the editing component, Scintilla, while it supports the notion of a line-ending type for a file, it does not enforce that (sadly).  If it did that, the downstream feature in Notepad++, in this case sorting, would work correctly.  Sure, Notepad++ developers could compensate for that, but for whatever reason, have chosen not to.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72474</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72474</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 29 Dec 2021 22:39:48 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Wed, 29 Dec 2021 20:46:47 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/72243">Sort Lines Lexicographically did not work</a>:</p>
<blockquote>
<p dir="auto">Perhaps you should be happy that Notepad++ refusing to sort the lines correctly has alerted you to the fact that your file is technically corrupted?</p>
</blockquote>
<p dir="auto">I am grateful for the product, but from a UI perspective, this is definitely an inconsistent behavior between what is displayed and  what sort expects. If Notepad++ treats the different line endings the same for display, it should also treat them the same for sorting. At the minimum it should display a warning that the reason it did not perform a sort is due to line ending inconsistencies.</p>
<p dir="auto">For the record all my line endings were LF, but because it was an unsaved new document that defaulted to EOL Convention -&gt; Windows (CR LF), the sort was not working. I had to search for the problem and read through this thread to figure out what was wrong. Which seems a long way around to working out a problem with something that should be intuitive.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72471</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72471</guid><dc:creator><![CDATA[Peter Vazny]]></dc:creator><pubDate>Wed, 29 Dec 2021 20:46:47 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Mon, 20 Dec 2021 13:25:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mplungjan" aria-label="Profile: mplungjan">@<bdi>mplungjan</bdi></a> said in <a href="/post/72238">Sort Lines Lexicographically did not work</a>:</p>
<blockquote>
<p dir="auto">This is the only thing that worked for me. What a pain</p>
</blockquote>
<p dir="auto"><em>What</em> is the only thing that worked for you?<br />
And <em>what</em> is a “pain”?</p>
<p dir="auto">I presume you mean having to deal with inconsistent line-endings in your file before being able to sort the lines?</p>
<p dir="auto">Perhaps you should be happy that Notepad++ refusing to sort the lines correctly has alerted you to the fact that your file is technically corrupted?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72243</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72243</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 20 Dec 2021 13:25:56 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Mon, 20 Dec 2021 06:59:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> This is the only thing that worked for me. What a pain</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72238</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72238</guid><dc:creator><![CDATA[mplungjan]]></dc:creator><pubDate>Mon, 20 Dec 2021 06:59:37 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Thu, 25 Feb 2021 14:51:15 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">But, I don’t think that a paste operation should manipulate data that is outside of the range of what is being pasted.</p>
</blockquote>
<p dir="auto">I agree. I didn’t read the entire previous post carefully enough.<br />
The behavior of the menu paste should be classified as a bug. The ctrl-c, ctrl-v is behaving as it should.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63244</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63244</guid><dc:creator><![CDATA[gstavi]]></dc:creator><pubDate>Thu, 25 Feb 2021 14:51:15 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Thu, 25 Feb 2021 13:41:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gstavi" aria-label="Profile: gstavi">@<bdi>gstavi</bdi></a></p>
<p dir="auto">Most of what you’ve said I agree with.<br />
But, I don’t think that a paste operation should manipulate data that is <em>outside</em> of the range of what is being pasted.</p>
<p dir="auto">Say I have a huge file and I paste something (a line or 2) into it.<br />
Now perhaps I have to wait noticeable time while Notepad++ adjusts all the line-endings in my file.<br />
This is perhaps unreasonable.</p>
<p dir="auto">Or say I am intentionally wanting to maintain mixed line endings in a file.<br />
Not a use-case for me, but I’ve seen users wanting this.<br />
So okay, what I paste in is subject to eol conversion, but meanwhile so is everything else.</p>
<p dir="auto">So luckily, users using a menu-based <em>Paste</em> are probably in the minority – most use Ctrl+v, which doesn’t have strange behavior in this regard.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63237</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63237</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 25 Feb 2021 13:41:33 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Thu, 25 Feb 2021 13:21:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said in <a href="/post/63227">Sort Lines Lexicographically did not work</a>:</p>
<blockquote>
<p dir="auto">How did you find out that particularity, Alan ?</p>
</blockquote>
<p dir="auto">Best that I can recall:</p>
<p dir="auto">I think it came from experimenting with data after seeing a thread such as this one, where someone is complaining that sorting doesn’t work.</p>
<p dir="auto">I turned visible line-endings on (which I do not normally do because it is so overwhelming), and I wrote a script to randomize line endings in the active tab.</p>
<p dir="auto">And then I started looking at the sorting problem.</p>
<p dir="auto">At some point along the journey, I did a Paste using the right-click context menu (must have been, because I would never paste from the <em>Edit</em> menu – too much effort) and noticed the entire-file conversion effect.</p>
<p dir="auto">Then, a bit more experimenting to find that <em>Edit</em> menu paste is same as context menu, but Ctrl+v paste is different.</p>
<p dir="auto">Somehow I forgot to mention it before yesterday, which is unusual for me, but sometimes, like all of us, I get distracted. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63234</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63234</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 25 Feb 2021 13:21:26 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Thu, 25 Feb 2021 11:58:42 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: terry-r">@<bdi>terry-r</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/gstavi" aria-label="Profile: gstavi">@<bdi>gstavi</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/mathlete2" aria-label="Profile: mathlete2">@<bdi>mathlete2</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Many thanks, <strong>Alan</strong> for your <strong>informative</strong> post ! I have <strong>not</strong> noticed this fact, yet, although I’m using N++ <strong>daily</strong>, since <strong><code>12</code></strong> years about !</p>
<p dir="auto">Of course, I just did the <strong>simple</strong> test : <strong><code>Ctrl + A</code></strong> - <strong><code>ctrl + C</code></strong> - <strong><code>Ctrl + V</code></strong> which , anyway, can be used to <strong>uniform</strong> all <strong>line-endings</strong> to the <strong>ending-line</strong> value of the <strong>status</strong> bar !</p>
<p dir="auto">I confirm , that I get the <strong>same</strong> behavior with <strong><code>Win XP SP3</code></strong>, too !</p>
<hr />
<p dir="auto">So, in summary, we can say that :</p>
<ul>
<li>
<p dir="auto">A <strong><code>Ctrl + V</code></strong> operation <strong>paste</strong> the clipboard’s contents, using the <strong>current</strong> line-ending <strong>definition</strong>, in <strong>status</strong> bar, for <strong>each</strong> line pasted, <strong>only</strong></p>
</li>
<li>
<p dir="auto">A <strong><code>Edit &gt; Paste</code></strong> operation <strong>paste</strong> the clipboard’s contents <em>AND</em> change <strong>all</strong> line-endings, of <strong>current</strong> file, by the <strong>current</strong> line-ending <strong>definition</strong>, in <strong>status</strong> bar</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> : <strong>How</strong> did you find out that particularity, <strong>Alan</strong> ?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63227</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63227</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 25 Feb 2021 11:58:42 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Thu, 25 Feb 2021 07:47:35 GMT]]></title><description><![CDATA[<p dir="auto">Copy-paste is very intuitive but, as advanced users should know, pretty complicated <strong>by definition</strong>. That why some applications have the <strong>paste special</strong> function.<br />
<strong>Copy</strong> is taking a selected entity and creates multiple representations of it in the clipboard.<br />
<strong>Paste</strong> selects the most fitting representation and adds it into the destination, possibly also converting it on the fly.<br />
<strong>Paste special</strong> allows the user to select the relevant representation from the clipboard rather than use the application’s default.</p>
<p dir="auto">The text copying behavior described above is ideal for most Notepad++ users. Copied text is adjusted to the document properties, encoding and line endings.</p>
<p dir="auto">Most people when copying text from UTF-8 unix style ending into UCS-2-LE windows style ending would want the text converted both to the proper encoding and to the selected line ending to keep the destination file consistent.</p>
<p dir="auto">You could ask for Notepad++ to have paste special function with “paste maintaining line endings” option but which user would want it?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63223</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63223</guid><dc:creator><![CDATA[gstavi]]></dc:creator><pubDate>Thu, 25 Feb 2021 07:47:35 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Thu, 25 Feb 2021 02:09:25 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/63221">Sort Lines Lexicographically did not work</a>:</p>
<blockquote>
<p dir="auto">Is it only me that this happens for??</p>
</blockquote>
<p dir="auto">Nope, happens for me too. And I can say I’ve haven’t messed with my configs much either so I’d say that’s a built-in feature out of the box.</p>
<p dir="auto">In my case I too had the Windows (CR LF) setting in bottom bar. I had 4 lines, CR/LF, then LF, then CR followed by another CR/LF. After paste they all became the CR/LF.</p>
<p dir="auto"><img src="/assets/uploads/files/1614218875832-d5c9ba47-36fd-4109-90c3-eb4a883c37f0-image.png" alt="d5c9ba47-36fd-4109-90c3-eb4a883c37f0-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Edit: should say this was done with the Ctrl-C and Ctrl-V hotkeys</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63222</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63222</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Thu, 25 Feb 2021 02:09:25 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Thu, 25 Feb 2021 01:51:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a></p>
<blockquote>
<p dir="auto">I still don’t fully understand your last post !<br />
Do you mean that using the Edit &gt; Paste menu option OR the Ctrl + V shortcut do not produce the same results ?</p>
</blockquote>
<p dir="auto">That’s EXACTLY what I’m saying.</p>
<h4>Take some mixed line-ending data:</h4>
<p dir="auto"><img src="/assets/uploads/files/1614217114588-47b49269-0bfe-44cb-aff4-d9e4257b1621-image.png" alt="47b49269-0bfe-44cb-aff4-d9e4257b1621-image.png" class=" img-fluid img-markdown" /></p>
<h4>Copy (make selection, then press Ctrl+c) some lines, say these, to the clipboard:</h4>
<p dir="auto"><img src="/assets/uploads/files/1614217180932-c5ac0801-ef68-4379-ba89-f0863a18c15c-image.png" alt="c5ac0801-ef68-4379-ba89-f0863a18c15c-image.png" class=" img-fluid img-markdown" /></p>
<h4>Move caret to start of file and Ctrl+v paste them:</h4>
<p dir="auto"><img src="/assets/uploads/files/1614217238020-d1fc8c05-efe3-4854-9a23-1712306fac98-image.png" alt="d1fc8c05-efe3-4854-9a23-1712306fac98-image.png" class=" img-fluid img-markdown" /></p>
<h4>Note that although in the <em>copy</em> the 3 lines had a CRLF, a LF and a CR line-ending, respectively (see the blue section in the screenshot), as the new first 3 lines of the file (created by the Ctrl+v paste) they all have been given CRLF line-endings.</h4>
<h4>Now, move back to start of file and paste again, this time using the <em>Edit</em> menu’s <em>Paste</em> entry, to obtain:</h4>
<p dir="auto"><img src="/assets/uploads/files/1614217391890-270fd7a6-02e5-4586-929b-e52fbd95d709-image.png" alt="270fd7a6-02e5-4586-929b-e52fbd95d709-image.png" class=" img-fluid img-markdown" /></p>
<h4>Note that all lines of the file have now been converted to CRLF type line endings, which matches my line-ending type indicated in the status bar:</h4>
<p dir="auto"><img src="/assets/uploads/files/1614217452215-f075f510-bc62-4f57-87cc-c9574f7d70dd-image.png" alt="f075f510-bc62-4f57-87cc-c9574f7d70dd-image.png" class=" img-fluid img-markdown" /></p>
<h4>Is it only me that this happens for??</h4>
<h4>I’m using 7.9.3, Win10</h4>
]]></description><link>https://community.notepad-plus-plus.org/post/63221</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63221</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 25 Feb 2021 01:51:09 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Thu, 25 Feb 2021 01:08:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>,</p>
<p dir="auto">I still don’t <strong>fully</strong> understand your <strong>last</strong> post !</p>
<p dir="auto">Do you mean that using the <strong><code>Edit &gt; Paste</code></strong> menu option OR the <strong><code>Ctrl + V</code></strong> shortcut do <strong>not</strong> produce the <strong>same</strong> results ?</p>
<p dir="auto">With my <strong>old</strong> <strong><code>XP SP3</code></strong> laptop, ( for <strong>still</strong> few days ! ) it seems <strong>identical</strong> !?</p>
<p dir="auto">To my mind :</p>
<ul>
<li>
<p dir="auto">After the <strong><code>Ctrl + C</code></strong> operation, lines, placed in the clipboard, <strong>still</strong> contain their <strong>initial different</strong> line-endings</p>
</li>
<li>
<p dir="auto">After the <strong><code>Ctrl + V</code></strong> operation, the clipboard <strong>replaces</strong> the <strong>current</strong> selection with its <strong>contents</strong>, using the <strong>current</strong> line-ending, defined in the <strong>status</strong> bar</p>
</li>
</ul>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63220</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63220</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 25 Feb 2021 01:08:48 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Thu, 25 Feb 2021 00:04:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said in <a href="/post/63213">Sort Lines Lexicographically did not work</a>:</p>
<blockquote>
<p dir="auto">Folllowing the Alan’s idea of a Ctrl + V operation,</p>
</blockquote>
<p dir="auto">I think you read what I said wrongly.</p>
<p dir="auto">Ctrl+v does NOT do anything to line-endings in the remainder of the file.<br />
It will, however, convert line-endings on the lines that are being pasted.</p>
<p dir="auto">It is the <em>Edit</em> menu’s <em>Paste</em> command that does it to the <em>ENTIRE</em> file.<br />
There doesn’t even have to be a line-ending in what you are pasting; it can be a simple as a single character in the clipboard, e.g. an <code>a</code>, and the entire-file line-ending conversion takes place upon (menu-invoked) <em>Paste</em>.</p>
<p dir="auto">This is amazing, because from this you’d think they are one and the same:</p>
<p dir="auto"><img src="/assets/uploads/files/1614211209656-3c9aa7ce-d15b-4dda-bbac-fc23886cd738-image.png" alt="3c9aa7ce-d15b-4dda-bbac-fc23886cd738-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">But they are not equivalent.  Give it a try!!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63219</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63219</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 25 Feb 2021 00:04:55 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Wed, 24 Feb 2021 22:50:22 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: terry-r">@<bdi>terry-r</bdi></a>,</p>
<p dir="auto"><strong>Terry</strong>, your image is… <strong>comforting</strong> !</p>
<p dir="auto">What a <strong>concentrate</strong> of technology for the time and what apparent <strong>robustness</strong> !</p>
<p dir="auto">A simple look at the machine’s <strong>feet</strong> shows that it was made to <strong>last</strong>  and seemed to be built with <strong>common sense</strong> !</p>
<p dir="auto">Not like this modern concept of <strong>programmed obsolescence</strong> :-(</p>
<p dir="auto">Also, good <strong>restoration</strong>, deserved for this <strong>wonderful</strong> object ;-))</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> : It was my quarter of an hour of <strong>nostalgia</strong> ;-))</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63216</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63216</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 24 Feb 2021 22:50:22 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Wed, 24 Feb 2021 22:42:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mathlete2" aria-label="Profile: mathlete2">@<bdi>mathlete2</bdi></a> said in <a href="/post/63214">Sort Lines Lexicographically did not work</a>:</p>
<blockquote>
<p dir="auto">but I don’t think ours had the lever - I only remember using Enter</p>
</blockquote>
<p dir="auto">So your typewriter likely would have been electric. The manuals ones all relied on mechanical levers of one sort or another. The term “carriage return” (\r) arises from this lever on the typewriter I believe. When pushed across to the right it moved the platen (roller holding the paper) to the right and advanced (turned) the roller 1 line or more (the \n).</p>
<p dir="auto">Oh the memories of high school and learning the “asdf” and “;lkj”. Unfortunately I’m still a 2 finger typist, but oh what speed I can inflict, the fastest 2 fingers in the west!  ;-))</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63215</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63215</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Wed, 24 Feb 2021 22:42:09 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Wed, 24 Feb 2021 22:26:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a> well, if you’re a NP++ user, you’re a Windows user ;)</p>
<p dir="auto">pretty much all of my EOL character knowledge prior to this thread came from string extraction; I knew <strong>of</strong> <code>\r</code>, but hadn’t really seen it come up much</p>
<p dir="auto">and yes, I’m old enough to remember using typewriters, but I don’t think ours had the lever - I only remember using Enter</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63214</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63214</guid><dc:creator><![CDATA[mathlete2]]></dc:creator><pubDate>Wed, 24 Feb 2021 22:26:53 GMT</pubDate></item><item><title><![CDATA[Reply to Sort Lines Lexicographically did not work on Wed, 24 Feb 2021 22:29:53 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/mathlete2" aria-label="Profile: mathlete2">@<bdi>mathlete2</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">Folllowing the <strong>Alan</strong>’s idea of a <strong><code>Ctrl + V</code></strong> operation, I would say that, if you suppose your <strong>current</strong> file to contain a <strong>mix</strong> of <strong>different</strong> line-endings, simply use these <strong>three</strong> shortcuts, <strong>successively</strong> :</p>
<ul>
<li>
<p dir="auto"><strong><code>Ctrl + A</code></strong></p>
</li>
<li>
<p dir="auto"><strong><code>Ctrl + C</code></strong></p>
</li>
<li>
<p dir="auto"><strong><code>Ctrl + V</code></strong></p>
</li>
</ul>
<p dir="auto">And <strong>all</strong> the lines of your <strong>current</strong> file should adopt the <strong>line-ending</strong>, indicated in <strong>right</strong> part of the <strong>status</strong> bar ! Et voilà !</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63213</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63213</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 24 Feb 2021 22:29:53 GMT</pubDate></item></channel></rss>