<?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[Need a setting to treat visible lines as "physical" ones.]]></title><description><![CDATA[<p dir="auto">Good day,<br />
I use Notepad++ for text editing, and the default view is “wrap text”.<br />
Very often the sentence is wrapped into several lines.<br />
Navigating such a sentence using Home and End keys is not similar to MS Word, where a chunk of wrapped long sentence is regarded as a separate line, in Notepad++ pressing End key takes me to the very end of the sentence or even paragraph while I needed to get to the right edge of the workspace.</p>
<p dir="auto">Have I overlooked a setting which switches on the behavior I need?</p>
<p dir="auto">Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20074/need-a-setting-to-treat-visible-lines-as-physical-ones</link><generator>RSS for Node</generator><lastBuildDate>Tue, 06 Oct 2026 21:31:52 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20074.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 29 Sep 2020 13:42:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Need a setting to treat visible lines as "physical" ones. on Fri, 02 Oct 2020 07:52:06 GMT]]></title><description><![CDATA[<p dir="auto">I upgraded from version 5.x to the latest version (I wish the best of luck to HK people, and doom to evil commies), and the text selection is indeed exactly what I need and exactly as it is in MS Word.<br />
Thanks a lot, everyone, stay safe and have a great weekend.<br />
:^)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58131</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58131</guid><dc:creator><![CDATA[Aleksandr Okunev]]></dc:creator><pubDate>Fri, 02 Oct 2020 07:52:06 GMT</pubDate></item><item><title><![CDATA[Reply to Need a setting to treat visible lines as "physical" ones. on Thu, 01 Oct 2020 21:27:12 GMT]]></title><description><![CDATA[<p dir="auto">Thanks everyone.<br />
I use a very old version.<br />
I will upgrade and come back with the results.<br />
Stay safe and have fun! :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58117</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58117</guid><dc:creator><![CDATA[Aleksandr Okunev]]></dc:creator><pubDate>Thu, 01 Oct 2020 21:27:12 GMT</pubDate></item><item><title><![CDATA[Reply to Need a setting to treat visible lines as "physical" ones. on Wed, 30 Sep 2020 16:40:39 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/aleksandr-okunev" aria-label="Profile: aleksandr-okunev">@<bdi>aleksandr-okunev</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: Peterjones">@<bdi>Peterjones</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"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aleksandr-okunev" aria-label="Profile: aleksandr-okunev">@<bdi>aleksandr-okunev</bdi></a>, as you’re mainly using the <strong><code>Word wrap</code></strong> mode, I suppose that you would like <strong>commands</strong> which move to the <strong>very beginning</strong> and to the <strong>very end</strong> of <strong>current</strong> line</p>
<p dir="auto">Here is a table which <strong>recapitulates</strong> all <strong><code>Scintilla</code></strong> actions relating to <strong>beginning</strong> and <strong>end</strong> of <strong>current</strong> line :</p>
<pre><code class="language-z">•---------------------------------------------------------------------------------------------------------------------------------------------------------•
|                         Different SCINTILLA messages about NAVIGATION, NORMAL and RECTANGULAR selection within CURRENT line                             |
•------•----------------------------•--------•----------------------•-------------------------------------------------------------------------------------•
| Num. |     SCINTILLA message      |   Id.  |   DEFAULT shortcut   |                           ACTION of the SCINTILLA message                           |
•------•----------------------------•--------•----------------------•-------------------------------------------------------------------------------------•
|  51  |  SCI_HOME                  |  2312  |                      |  Start of DOCUMENT line                                                             |
|  52  |  SCI_HOMEEXTEND            |  2313  |                      |  STREAM selection      to start of DOCUMENT line                                    |
|  53  |  SCI_HOMERECTEXTEND        |  2430  |                      |  RECTANGULAR selection to start of DOCUMENT line                                    |
|      |                            |        |                      |                                                                                     |
|  58  |  SCI_VCHOME                |  2331  |                      |  Start of first NON-BLANK char &lt;-&gt; Start of DOCUMENT line                           |
|  xx  |  SCI_VCHOMEEXTEND          |  2332  |     NOT LISTED       |  STREAM selection to ...                                                            |
|      |                            |        |                      |                                                                                     |
|  56  |  SCI_HOMEWRAP              |  2349  |                      |  Start of DISPLAY line -&gt; Start of DOCUMENT line                                    |
|  57  |  SCI_HOMEWRAPEXTEND        |  2450  |                      |  STREAM selection to ...                                                            |
|      |                            |        |                      |                                                                                     |
|  61  |  SCI_VCHOMEWRAP            |  2453  |  Home                |  Start of DISPLAY line -&gt; First NON-BLANK char &lt;-&gt; Start of DOCUMENT line           |
|  59  |  SCI_VCHOMEWRAPEXTEND      |  2454  |  Shift + Home        |  STREAM selection to ...                                                            |
|  60  |  SCI_VCHOMERECTEXTEND      |  2431  |  Alt + Shift + Home  |  RECTANGULAR selection to ...                                                       |
|      |                            |        |                      |                                                                                     |
|  54  |  SCI_HOMEDISPLAY           |  2345  |  Alt + Home          |  Start of DISPLAY line                                                              |
|  55  |  SCI_HOMEDISPLAYEXTEND     |  2346  |                      |  STREAM selection to start of DISPLAY line                                          |
|      |                            |        |                      |                                                                                     |
|  xx  |  SCI_VCHOMEDISPLAY         |  2652  |     NOT LISTED       |  Start of DISPLAY line OR start of first NON-BLANK char &lt;-&gt; Start of DOCUMENT line  |
|  xx  |  SCI_VCHOMEDISPLAYEXTEND   |  2653  |     NOT LISTED       |  STREAM selection to ...                                                            |
•------•----------------------------•--------•----------------------•-------------------------------------------------------------------------------------•
|  62  |  SCI_LINEEND               |  2314  |                      |  End of DOCUMENT line                                                               |
|  68  |  SCI_LINEENDEXTEND         |  2315  |                      |  STREAM selection      to end of DOCUMENT line                                      |
|  64  |  SCI_LINEENDRECTEXTEND     |  2432  |  Alt + Shift + End   |  RECTANGULAR selection to end of DOCUMENT line                                      |
|      |                            |        |                      |                                                                                     |
|  67  |  SCI_LINEENDWRAP           |  2451  |  End                 |  End of DISPLAY line -&gt; End of DOCUMENT line                                        |
|  63  |  SCI_LINEENDWRAPEXTEND     |  2452  |  Shift + End         |  STREAM selection to ...                                                            |
|      |                            |        |                      |                                                                                     |
|  65  |  SCI_LINEENDDISPLAY        |  2347  |  Alt + End           |  End of DISPLAY line                                                                |
|  66  |  SCI_LINEENDDISPLAYEXTEND  |  2348  |                      |  STREAM selection to end of DISPLAY line                                            |
•------•----------------------------•--------•----------------------•-------------------------------------------------------------------------------------•
</code></pre>
<p dir="auto">For <strong>additional</strong> information, refer to :</p>
<p dir="auto"><a href="https://www.scintilla.org/ScintillaDoc.html#KeyboardCommands" rel="nofollow ugc">https://www.scintilla.org/ScintillaDoc.html#KeyboardCommands</a></p>
<hr />
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">In case a <strong>wrapped</strong> line, the <strong><code>Scintilla documentation</code></strong> speak of :</p>
<ul>
<li>
<p dir="auto"><strong><code>Display</code></strong> line, to name <strong>each</strong> line of this <strong>wrapped</strong> line</p>
</li>
<li>
<p dir="auto"><strong><code>Document</code></strong> line, to name the <strong>wrapped</strong> line, itself</p>
</li>
</ul>
</li>
<li>
<p dir="auto">Personally, I prefer to speak of <strong><code>physical</code></strong> lines for <strong>each</strong> line and of <strong><code>logical</code></strong> line to refer to the <strong>wrapped</strong> line, itself. Just my preference ;-)</p>
</li>
<li>
<p dir="auto">In the table, above, <strong><code>3</code></strong> <strong>Scintilla</strong> commands are <strong>not</strong> listed in the <strong><code>Scintilla Commands</code></strong> tab of the N++ <strong><code>Shortcut Mapper</code></strong>. So they <strong>cannot</strong> be stored as <strong>Scintilla commands</strong> in your active <strong><code>Shortcut.xml</code></strong> file. <strong>Luckily</strong>, you can define these messages in a new <strong>Macro</strong>, located in the <strong><code>&lt;Macros&gt;</code></strong> node, then assign the <strong>appropriate</strong> shortcuts to each macro !</p>
</li>
</ul>
<pre><code class="language-xml">        &lt;Macro name="SCI_VCHOMEEXTEND" Ctrl="yes/no" Alt="yes/no" Shift="yes/no" Key="0"&gt;
            &lt;Action type="0" message="2332" wParam="0"  lParam="0"  sParam="" /&gt;
        &lt;/Macro&gt;

        &lt;Macro name="SCI_VCHOMEDISPLAY" Ctrl="yes/no" Alt="yes/no" Shift="yes/no" Key="0"&gt;
            &lt;Action type="0" message="2652" wParam="0"  lParam="0"  sParam="" /&gt;
        &lt;/Macro&gt;

        &lt;Macro name="SCI_VCHOMEDISPLAYEXTEND" Ctrl="yes/no" Alt="yes/no" Shift="yes/no" Key="0"&gt;
            &lt;Action type="0" message="2653" wParam="0"  lParam="0"  sParam="" /&gt;
        &lt;/Macro&gt;
</code></pre>
<hr />
<p dir="auto">So, from this table, <a class="plugin-mentions-user plugin-mentions-a" href="/user/aleksandr-okunev" aria-label="Profile: aleksandr-okunev">@<bdi>aleksandr-okunev</bdi></a>, here is the <strong>road map</strong> of the actions to do in the <strong><code>Scintilla commands</code></strong> tab of the <strong><code>Shortcut Mapper</code></strong></p>
<ul>
<li>
<p dir="auto"><strong>Delete</strong> the shortcut of line <strong><code>61</code></strong> and assign the <strong><code>Home</code></strong> shortcut to line <strong><code>51</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Delete</strong> the shortcut of line <strong><code>59</code></strong> and assign the <strong><code>Shift + Home</code></strong> shortcut to line <strong><code>52</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Delete</strong> the shortcut of line <strong><code>60</code></strong> and assign the <strong><code>Alt + Shift + Home</code></strong> shortcut to line <strong><code>53</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Delete</strong> the shortcut of line <strong><code>67</code></strong> and assign the <strong><code>End</code></strong> shortcut to line <strong><code>62</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Delete</strong> the shortcut of line <strong><code>63</code></strong> and assign the <strong><code>Shift + End</code></strong> shortcut to line <strong><code>68</code></strong></p>
</li>
</ul>
<p dir="auto">Hope this helps !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58072</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58072</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 30 Sep 2020 16:40:39 GMT</pubDate></item><item><title><![CDATA[Reply to Need a setting to treat visible lines as "physical" ones. on Tue, 29 Sep 2020 17:15:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aleksandr-okunev" aria-label="Profile: Aleksandr-Okunev">@<bdi>Aleksandr-Okunev</bdi></a></p>
<p dir="auto">Well, my current setup works exactly as you describe you want yours to.<br />
And trying a “fresh” Notepad++, that’s exactly how it works as well.</p>
<p dir="auto">So if you need further help on this, I’d suggest you show a screenshot of the area of the <em>Shortcut Mapper</em> I showed previously, but include the area to the <em>right</em> – the actual keybindings – for your setup, which mine does not show.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58041</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58041</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 29 Sep 2020 17:15:08 GMT</pubDate></item><item><title><![CDATA[Reply to Need a setting to treat visible lines as "physical" ones. on Tue, 29 Sep 2020 17:00:59 GMT]]></title><description><![CDATA[<p dir="auto">Thanks everyone for your responses.</p>
<p dir="auto">Yes I posted misleading data.</p>
<p dir="auto">My problem is with Shift+Home and Shift+End, which I use to select the text.</p>
<p dir="auto">If I place the cursor in the middle of the “visible” line which is a part of a sentence which makes several “visible” lines, and my intended selection ends at the end of the current visible line, when I hold Shift and press End, the entire “physical” line is selected, up to the hard return, and not my intended selection.</p>
<p dir="auto">Same with Shift+Home, instead of selecting text up to the left edge of the work space, the editor selects several “visible” lines up to the previous hard return.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58040</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58040</guid><dc:creator><![CDATA[Aleksandr Okunev]]></dc:creator><pubDate>Tue, 29 Sep 2020 17:00:59 GMT</pubDate></item><item><title><![CDATA[Reply to Need a setting to treat visible lines as "physical" ones. on Tue, 29 Sep 2020 13:54:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aleksandr-okunev" aria-label="Profile: Aleksandr-Okunev">@<bdi>Aleksandr-Okunev</bdi></a> ,</p>
<p dir="auto">I am a bit confused.  The default behavior of the END key (using SCI_LINEENDWRAP in Shortcut Mapper &gt; Scintilla Commands) will take you to the end of the visible line the first time you hit END; the second time you hit END, it goes to the end of the wrapped line.</p>
<p dir="auto">Based on my understanding, you want the END key to take you to the end of the visible line, which it will.</p>
<p dir="auto">Unless I’ve misunderstood you.</p>
<p dir="auto">But as <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said, there are lots of variants of the Scintilla commands, and you can change the keyboard mapping, so you can make the keys do what you want.  The <a href="https://www.scintilla.org/ScintillaDoc.html" rel="nofollow ugc">Scintilla Docs</a> will explain the technicalities of each of those <code>SCI_...</code> names.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58036</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58036</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 29 Sep 2020 13:54:03 GMT</pubDate></item><item><title><![CDATA[Reply to Need a setting to treat visible lines as "physical" ones. on Tue, 29 Sep 2020 13:49:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aleksandr-okunev" aria-label="Profile: Aleksandr-Okunev">@<bdi>Aleksandr-Okunev</bdi></a></p>
<p dir="auto">I haven’t had a need recently, but I think mapping some of these in the <em>Shortcut Mapper</em> can provide the needed functionality:</p>
<p dir="auto"><img src="/assets/uploads/files/1601387246051-399a44be-579f-48dd-8094-22bbbe23930d-image.png" alt="399a44be-579f-48dd-8094-22bbbe23930d-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/58034</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58034</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 29 Sep 2020 13:49:23 GMT</pubDate></item></channel></rss>