<?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[Mark text from cursor&#x27;s position to the start of line (Shift+Home) while Word Wrap is enabled]]></title><description><![CDATA[<p dir="auto">With View &gt; Word Wrap enabled, pressing “Shift + Home” while in the second, third, … line of a word-wrapped paragraph always marks all text from the cursors position to the <em>beginning of the paragraph</em>. However, I only want to mark the text from the cursor’s position to the <em>start of the line the cursor is in</em> (pretty much the way pressing “Home” without Shift works). Any ideas?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/10645/mark-text-from-cursor-s-position-to-the-start-of-line-shift-home-while-word-wrap-is-enabled</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 01:56:27 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/10645.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Oct 2015 10:00:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mark text from cursor&#x27;s position to the start of line (Shift+Home) while Word Wrap is enabled on Sun, 11 Oct 2015 17:38:38 GMT]]></title><description><![CDATA[<p dir="auto">Yes, it works! Thank you very much for this solution, guy038! :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/11684</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/11684</guid><dc:creator><![CDATA[Oliver Dambroth]]></dc:creator><pubDate>Sun, 11 Oct 2015 17:38:38 GMT</pubDate></item><item><title><![CDATA[Reply to Mark text from cursor&#x27;s position to the start of line (Shift+Home) while Word Wrap is enabled on Sun, 11 Oct 2015 17:14:15 GMT]]></title><description><![CDATA[<p dir="auto">Hi <strong>Oliver</strong>, <strong>dail</strong>, <strong>Eduardo</strong>,<strong>Scott</strong>  and <strong>All</strong></p>
<p dir="auto">I think I’ve got a <strong>nice</strong> solution, which will satisfy <strong>all</strong> of you. Indeed ! No need to change N++ <strong>source</strong> code at all :-) I already replied, for that topic, on <strong>SourceForge</strong> forums, on <strong>June 2013</strong> :</p>
<p dir="auto"><a href="http://sourceforge.net/p/notepad-plus/discussion/331753/thread/d3e0ab6d/#ddf6" rel="nofollow ugc">http://sourceforge.net/p/notepad-plus/discussion/331753/thread/d3e0ab6d/#ddf6</a></p>
<p dir="auto">Actually, when text is <strong>wrapped</strong>, because of <strong>long</strong> lines and/or if the the N++ window is <strong>smaller</strong> that the entire screen, by <strong>default</strong> :</p>
<ul>
<li>
<p dir="auto">The <strong>Scintilla</strong> shortcut <strong>SHIFT + End</strong> selects from the <strong>cursor</strong> position to the <strong>end</strong> of the entire line.</p>
</li>
<li>
<p dir="auto">The <strong>Scintilla</strong> shortcut <strong>SHIFT + Home</strong> selects from the <strong>cursor</strong> position to the first <strong>non space</strong> character, at <strong>beginning</strong> of line. If you type, again, <strong>SHIFT + Home</strong>, then selection goes to the <strong>very</strong> beginning of the line.</p>
</li>
</ul>
<p dir="auto">If you prefer to extend selection <em>to the <strong>beginning</strong> or the <strong>end</strong> of the <strong>physical</strong> line, where the <strong>cursor</strong> is</em>, you just have to modify these <strong>TWO</strong> shortcuts, in the <strong>Shortcut Mapper</strong> ( Menu <strong>Settings - Shortcut Mapper… - Scintilla commands</strong> ).</p>
<p dir="auto">So :</p>
<ul>
<li>
<p dir="auto"><strong>Delete</strong> the <strong>default</strong> shorcuts, at lines <strong><code>59</code></strong> ( <strong>SCI_VCHOMEXTEND</strong> ) and <strong><code>64</code></strong> ( <strong>SCI_LINEENDEXTEND</strong> ), in the <strong>Scintilla commands</strong> tab of the <strong>Shortcut Mapper</strong>, <em>by setting the key <strong>None</strong></em>.</p>
</li>
<li>
<p dir="auto"><strong>Set</strong> the shortcut <strong>SHIFT + Home</strong> to the entry, at line <strong><code>62</code></strong> ( <strong>SCI_VCHOMEWRAPEXTEND</strong> ) and the shortcut <strong>SHIFT + End</strong> to the entry, at line <strong><code>69</code></strong> ( <strong>SCI_LINEENDWRAPEXTEND</strong> )</p>
</li>
</ul>
<hr />
<p dir="auto">The <strong>VERY NICE</strong> thing, with these <strong>new</strong> shortcuts, is that a <strong>SECOND</strong> hit, on these shortcuts, allows you to reach the <strong>very beginning/end</strong> of the <strong>wrapped</strong> paragraph, as the <strong>default</strong> N++ behaviour does. However, a <strong>THIRD</strong> hit ( <strong>SHIFT + HOME</strong> ) is, sometimes, necessary to get the <strong>very beginning</strong> of a line, when this line <strong>begins</strong> with some <strong>blank</strong> characters :-)</p>
<p dir="auto">Tested with N++,  <strong><code>v6.8.1</code></strong>.  You <strong>don’t</strong> even need to <strong>restart</strong> N++, to appreciate this <strong>new</strong> N++ <strong>extension of selection</strong> !</p>
<p dir="auto">Enjoy that change !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/11681</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/11681</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 11 Oct 2015 17:14:15 GMT</pubDate></item><item><title><![CDATA[Reply to Mark text from cursor&#x27;s position to the start of line (Shift+Home) while Word Wrap is enabled on Sat, 10 Oct 2015 00:26:38 GMT]]></title><description><![CDATA[<p dir="auto">I have to disagree, Eduardo. The behavior is not fine, it is inconsistent and counterintuitive: Pressing “Home” <em>without</em> holding “Shift” actually moves the cursor to the beginning of “what is being displayed”. Pressing it a second time then moves it to the beginning of the whole line (or paragraph).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/11669</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/11669</guid><dc:creator><![CDATA[Oliver Dambroth]]></dc:creator><pubDate>Sat, 10 Oct 2015 00:26:38 GMT</pubDate></item><item><title><![CDATA[Reply to Mark text from cursor&#x27;s position to the start of line (Shift+Home) while Word Wrap is enabled on Fri, 09 Oct 2015 19:57:40 GMT]]></title><description><![CDATA[<p dir="auto">I think Eduardo was 100% right until I read his last 2 sentences.  There are sooo many real concerns to address with NPP, and people bring up stuff like this.  I’m not picking on NPP (happen to like, almost love, it), and I’m not trying to offend anyone, including the  OP.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/11662</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/11662</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Fri, 09 Oct 2015 19:57:40 GMT</pubDate></item><item><title><![CDATA[Reply to Mark text from cursor&#x27;s position to the start of line (Shift+Home) while Word Wrap is enabled on Fri, 09 Oct 2015 18:30:38 GMT]]></title><description><![CDATA[<p dir="auto">IMHO, Notepad++ is behaving fine and should not be improved in that respect. Lines in code writing are taken care of as logical units. When you position within  a line and Shift+Home/End, it marks to the beginning/end of the Logical Line (CR/LF), not the begining of what is being displayed, something which can vary depending on window adjustments, wrap/no  wrap. For Notepad++, that is rather a single line wraped for editing convenience. Well, maybe it would be also convenient to Mark to the end/beginning of the line “as viewed”, sigh… Maybe a configurable feature would make everyone happier?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/11657</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/11657</guid><dc:creator><![CDATA[Eduardo Borges]]></dc:creator><pubDate>Fri, 09 Oct 2015 18:30:38 GMT</pubDate></item><item><title><![CDATA[Reply to Mark text from cursor&#x27;s position to the start of line (Shift+Home) while Word Wrap is enabled on Fri, 09 Oct 2015 14:19:16 GMT]]></title><description><![CDATA[<p dir="auto">Hm, reported almost 4 months ago… so there’s little hope it gets fixed anytime soon :/ I recently installed Notepad++ as an alternative to TextPad, but found it still lacks some polishing here and there. Anyway, thank you :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/11653</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/11653</guid><dc:creator><![CDATA[Oliver Dambroth]]></dc:creator><pubDate>Fri, 09 Oct 2015 14:19:16 GMT</pubDate></item><item><title><![CDATA[Reply to Mark text from cursor&#x27;s position to the start of line (Shift+Home) while Word Wrap is enabled on Fri, 09 Oct 2015 14:05:11 GMT]]></title><description><![CDATA[<p dir="auto">This issue has been reported <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/255" rel="nofollow ugc">here</a>. I even created a pull request to fix it <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/pull/273" rel="nofollow ugc">here</a>. No idea if it will ever be merged though :-/</p>
]]></description><link>https://community.notepad-plus-plus.org/post/11652</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/11652</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Fri, 09 Oct 2015 14:05:11 GMT</pubDate></item></channel></rss>