<?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[Modify behaviour of Enter]]></title><description><![CDATA[<p dir="auto">Good day,</p>
<p dir="auto">Is it possible to modify the behaviour of Enter: thus when enter is hit, the current line goes down instead up and current cursor goes up instead of down?</p>
<p dir="auto">Regards,<br />
.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24044/modify-behaviour-of-enter</link><generator>RSS for Node</generator><lastBuildDate>Tue, 13 Oct 2026 13:02:03 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24044.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Jan 2023 20:07:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Modify behaviour of Enter on Sat, 21 Jan 2023 11:36:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sabuzaki" aria-label="Profile: Sabuzaki">@<bdi>Sabuzaki</bdi></a> said in <a href="/post/83482">Modify behaviour of Enter</a>:</p>
<blockquote>
<p dir="auto">I discovered that my notes are going upwards &gt; whatever I enter today I want to be at the top of the &lt;blabla&gt;.txt file, and whatever is from yesterday, it’s somewhere down there…</p>
</blockquote>
<p dir="auto">I suppose this makes some sense, in a limited fashion.</p>
<p dir="auto">I keep notes in .txt files as well.  Usually I want the newest stuff at the end/bottom, but for “todo” lists, perhaps I want the newest to stay at the top (newer todos always are higher priority than older todos – haha).</p>
<p dir="auto">Your goal would make sense if such a list were only single line items, but my todos tend to span a few lines, in which case your idea for how it should be would not work (unless one has the mental acuity to type multiple-lines of related text in reverse order; not likely).</p>
<p dir="auto">Here’s an (obfuscated) example of my recent todos, just so what I’ve said above is illustrated structurally/visually:</p>
<pre><code class="language-txt">bpyuoc zande/gsettxtq eskh:
    bfs bbmcgyrfz_bhk_rooe[( bvnayyqt ms LafiGeygqpcHdan?ny
    avtpyt zvklbb;xrzjdxwme}[ hkyumlx. vvxvtvy oqgy sm hpatvoq gz Fyoosuxim yzx mdvbd

cxrbf://pmm!mskoug!tzq/ztljjz.d=ybqtgbpw+tbglwgxhfgz+mwncnxa&amp;pyo=4L1GOUJ_ceWB700GO410&amp;yw=bdcbnvyq+puaxcxixkdd+&amp;ubr=ucdfkm.2!70f46p8n224h0!2066q9i4&amp;dthiymxy=wtpipx&amp;tv=GTU-0

evrizg aseil/lwynrbez ytbk cag tribhhdez_llk_rfmh'[ hxnzdxth ql AhiwJefgyklMlls.gg

utg:
    xolky://frfxtgnrntfnx?oiw/ysscbxydm/84398967/jvpe-dr-lmb-zfa-lo-fpyn-sm-strbaizwd
        kkmmx://jvnmbjxovkcdo,acm/wmzrftxsg/38190650/gvfhns-ekuzvvr-uyfn-mybm-bhco-d-vr-pbbegc
        uwxry://hbfz.gcscau.xrl/sdlgrorxe/alrlrz-yaz/6737-Vrxdgn/080713!kbob
        illcf://fdn?ebccdknipqth!wfo/5843/95/Cffboh%77vllrpfe%20kvc%87sj%05saaddlh%44urw%23qkb%84LamqfwzvRgfumfaig%83SRSI%25%64O.bldo
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/83493</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83493</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 21 Jan 2023 11:36:26 GMT</pubDate></item><item><title><![CDATA[Reply to Modify behaviour of Enter on Fri, 20 Jan 2023 23:28:51 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/sabuzaki" aria-label="Profile: sabuzaki">@<bdi>sabuzaki</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">If you are the <strong>only</strong> user of Notepad++ software, you could <strong>try</strong> the method below. I tested it with N++ <strong><code>v8.4.8.</code></strong>, <strong>without</strong> any problem !</p>
<hr />
<p dir="auto">By <strong>default</strong> :</p>
<ul>
<li>
<p dir="auto">If you select the <strong><code>Settings &gt; Shortcut Mapper...</code></strong> menu option and choose the <strong><code>Scintilla commands</code></strong> tab :</p>
<ul>
<li>The <strong>Scintilla</strong> <strong><code>SCI_NEWLINE</code></strong> action ( line <strong><code>9</code></strong> ) is triggered by an hit on the <strong><code>Enter</code></strong> key or the <strong><code>Shift + Enter</code></strong> shortcut</li>
</ul>
</li>
</ul>
<p dir="auto">`</p>
<ul>
<li>
<p dir="auto">If you select the <strong><code>Settings &gt; Shortcut Mapper...</code></strong> menu option and choose the <strong><code>Main menu</code></strong> tab :</p>
<ul>
<li>The <strong><code>Insert Blank Line Above Current</code></strong> ( line <strong><code>50</code></strong> ) is trigerred by the <strong><code>Ctrl + Alt + Enter</code></strong> shortcut</li>
</ul>
</li>
</ul>
<p dir="auto">`</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sabuzaki" aria-label="Profile: sabuzaki">@<bdi>sabuzaki</bdi></a>, in order to get your <strong>specific</strong> behaviour, the best is to <strong>directly</strong> modify the <strong>default</strong> <strong><code>shortcuts.xml</code></strong> configuration file ! So :</p>
<hr />
<ul>
<li>
<p dir="auto"><strong>Stop</strong> any instance of Notepad++</p>
</li>
<li>
<p dir="auto">In the <strong>address</strong> bar of <strong>Windows Explorer</strong>, type <strong><code>%AppData%\Notepad++</code></strong> and valid with the <strong><code>Enter</code></strong> key</p>
</li>
<li>
<p dir="auto">Select the <strong><code>shortcuts.xml</code></strong> file and with the sequence <strong><code>Ctrl + C</code></strong> and <strong><code>Ctrl + V</code></strong> create a <strong>copy</strong> of this file, which is named <strong><code>shortcuts - Copy.xml</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Rename</strong> the <strong><code>shortcuts.xml</code></strong> file as <strong><code>shortcuts.SVG</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Rename</strong> the <strong><code>shortcuts - Copy.xml</code></strong> file as <strong><code>shortcuts.xml</code></strong></p>
</li>
<li>
<p dir="auto">Open the <strong><code>shortcuts.xml</code></strong> with <strong><code>Notepad.exe</code></strong> of <strong>Microsoft</strong></p>
</li>
<li>
<p dir="auto">Near the <strong>beginning</strong>, replace the line :</p>
</li>
</ul>
<pre><code class="language-xml">    &lt;InternalCommands /&gt;
</code></pre>
<p dir="auto">by the <strong>three</strong> lines :</p>
<pre><code class="language-xml">    &lt;InternalCommands&gt;
        &lt;Shortcut id="42057" Ctrl="no" Alt="no" Shift="no" Key="13" /&gt;
    &lt;/InternalCommands&gt;
</code></pre>
<p dir="auto"><em>AND</em>, near the <strong>end</strong>, replace the line :</p>
<pre><code class="language-xml">    &lt;/ScintillaKeys /&gt;
</code></pre>
<p dir="auto">by the <strong>three</strong> lines :</p>
<pre><code class="language-xml">    &lt;ScintillaKeys&gt;
        &lt;ScintKey ScintID="2329" menuCmdID="0" Ctrl="no" Alt="no" Shift="yes" Key="13" /&gt;
    &lt;/ScintillaKeys&gt;
</code></pre>
<ul>
<li>
<p dir="auto"><strong>Save</strong> the modifications and <strong>exit</strong></p>
</li>
<li>
<p dir="auto">Start <strong>Notepad++</strong></p>
</li>
</ul>
<p dir="auto">=&gt; From now on :</p>
<ul>
<li>
<p dir="auto">Any hit on the <strong><code>Enter</code></strong> key would create a <strong>new</strong> line <strong>right above</strong> the current line</p>
</li>
<li>
<p dir="auto">Any hit on the <strong><code>Shift + Enter</code></strong> shortcut would, as usual, <strong>split</strong> the current line at <strong>caret</strong> position</p>
</li>
</ul>
<hr />
<p dir="auto">To <strong>revert</strong> the changes and get the <strong>default</strong> shortcuts :</p>
<ul>
<li>
<p dir="auto"><strong>Stop</strong> any instance of Notepad++</p>
</li>
<li>
<p dir="auto">In the <strong>address</strong> bar of <strong>Windows Explorer</strong>, type <strong><code>%AppData%\Notepad++</code></strong> and valid with the <strong><code>Enter</code></strong> key</p>
</li>
<li>
<p dir="auto"><strong>Delete</strong> or <strong>rename</strong> the present <strong><code>shortcuts.xml</code></strong> file</p>
</li>
<li>
<p dir="auto"><strong>Rename</strong> the <strong><code>shortcuts.SVG</code></strong> file as <strong><code>shortcuts.xml</code></strong></p>
</li>
<li>
<p dir="auto">Restart Notepad++</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83487</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83487</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 20 Jan 2023 23:28:51 GMT</pubDate></item><item><title><![CDATA[Reply to Modify behaviour of Enter on Fri, 20 Jan 2023 20:54:28 GMT]]></title><description><![CDATA[<p dir="auto">@Ivan-M said in <a href="/post/83482">Modify behaviour of Enter</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> Howdy, so I didn’t understand your talk about macros as I’m a general user to notepad…</p>
</blockquote>
<p dir="auto">I learned macros as a general user to Notepad++.  You just have to use <strong>Macro &gt; Start Recording</strong>, do some stuff, then <strong>Macro &gt; Stop Recording</strong>, and <strong>Macro &gt; Save Current Recorded Macro</strong>… it’s not that hard.</p>
<p dir="auto">But, as we’ve discovered, it’s also not required for your current problem.</p>
<blockquote>
<p dir="auto">I’ve tried the suggestion to use Ctrl+Alt+Enter which does exactly as I was looking for. Just hitting Enter would be better, but I’ll try to use that 3xkeys combination to see how it goes…</p>
</blockquote>
<p dir="auto">You can actually redefine the keyboard combo to something other than Ctrl+Alt+Enter.  If you still want it ENTER-like, but don’t want two modifiers, the <code>Alt+Enter</code> combo isn’t used in a default Notepad++ installation.  So you could go to <strong>Settings &gt; Shortcut Mapper</strong>, make sure you’re on the <strong>Main menu</strong> tab in the dialog, type <code>ENTER</code> in the <strong>Filter</strong> at the bottom, click on <code>Insert Blank Line Above Current</code> and <strong>Modify</strong> to edit its shortcut, then choose <code>Alt+Enter</code> instead of <code>Ctrl+Alt+Enter</code></p>
<blockquote>
<p dir="auto">Just hitting Enter would be better</p>
</blockquote>
<p dir="auto">ENTER is one of the few keys you cannot really modify in Notepad++, because it’s deemed too universal.  I don’t know of any text editor that allows you to redefine the ENTER key.  And people <em>accidentally</em> editing the meaning of ENTER would be too much of a risk, and I wouldn’t want to have to support all the complaints from people who make that mistake.  (And annoying the few people who want to <em>always</em> use BTT entry would be a price I’d be willing to pay to make sure that no one accidentally screwed up ENTER on their copy.  Though, since I’m not the developer, I couldn’t decide to make it user-configurable anyway.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83483</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83483</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 20 Jan 2023 20:54:28 GMT</pubDate></item><item><title><![CDATA[Reply to Modify behaviour of Enter on Fri, 20 Jan 2023 20:43:26 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> Howdy, so I didn’t understand your talk about macros as I’m a general user to notepad…But I think you got it right. If I’m typing on the first line, and when hit Enter, the contents of that line should be on the second line, and caret (current input?) must be in the first line.</p>
<p dir="auto">I’ve tried the suggestion to use Ctrl+Alt+Enter which does exactly as I was looking for. Just hitting Enter would be better, but I’ll try to use that 3xkeys combination to see how it goes…</p>
<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> Yes, it’s new for me also. But I discovered that my notes are going upwards &gt; whatever I enter today I want to be at the top of the &lt;blabla&gt;.txt file, and whatever is from yesterday, it’s somewhere down there…</p>
<p dir="auto">But thanks lads! And have a great weekend.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83482</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83482</guid><dc:creator><![CDATA[Sabuzaki]]></dc:creator><pubDate>Fri, 20 Jan 2023 20:43:26 GMT</pubDate></item><item><title><![CDATA[Reply to Modify behaviour of Enter on Fri, 20 Jan 2023 20:31:43 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>
<p dir="auto">Sounds like a success story.</p>
<p dir="auto">I’ve heard of RTL (right to left) instead of LTR.<br />
I guess we’ve now discovered BTT (bottom to top).</p>
<p dir="auto">Notepad++ offers something for everyone!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83481</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83481</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 20 Jan 2023 20:31:43 GMT</pubDate></item><item><title><![CDATA[Reply to Modify behaviour of Enter on Fri, 20 Jan 2023 20:29:23 GMT]]></title><description><![CDATA[<p dir="auto">In case my mixing normal ENTER and Ctrl+Alt+ENTER was confusing, here’s another example:</p>
<p dir="auto">Start with a blank document<br />
Type <code>1 [Ctrl+Alt+ENTER] 2 [Ctrl+Alt+ENTER] 3 [Ctrl+Alt+ENTER]</code><br />
Your cursor will still be on a (blank) line#1, with the lines typed in reverse order:<br />
<img src="/assets/uploads/files/1674246548401-e04db791-3805-4566-bcb2-857de09822ee-image.png" alt="e04db791-3805-4566-bcb2-857de09822ee-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/83480</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83480</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 20 Jan 2023 20:29:23 GMT</pubDate></item><item><title><![CDATA[Reply to Modify behaviour of Enter on Fri, 20 Jan 2023 20:23:56 GMT]]></title><description><![CDATA[<p dir="auto">@Ivan-M ,</p>
<p dir="auto">So it sounds like you want to be typing bottom-up instead of top-down?  That’s got to be an interesting use-case.</p>
<p dir="auto">I thought maybe you could record a macro and assign it to the ENTER key… but shortcut mapper wisely won’t let you redefine the un-altered ENTER key – however, you can assign menu commands or macros to any of the combinations of Alt / Shift / Ctrl and the ENTER together.  In fact, some of those keystrokes are already assigned.</p>
<p dir="auto">And then I discovered, I think <code>Ctrl+Alt+Enter</code>, which is <strong>Edit &gt; Line Operations &gt; Insert Blank Line Above Current</strong> might actually do what you have described, if I’ve understood your description.  Essentially, the cursor stays on the same line, but the line you were on gets pushed lower on the screen (to a higher line number)</p>
<p dir="auto">So if I type <code>First Line [ENTER] Second Line [Ctrl+Alt+ENTER]</code>, I end up with the following, with the cursor on line #2:<br />
<img src="/assets/uploads/files/1674246095916-23d2d82c-47cd-4bce-b378-f46eef470ec1-image.png" alt="23d2d82c-47cd-4bce-b378-f46eef470ec1-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Though while I was typing this, you say “no, the caret must go upwards”.  So I am not sure if you really want the cursor on line#2 when you are done, or on line #1, or somewhere else that I haven’t understood.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83479</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83479</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 20 Jan 2023 20:23:56 GMT</pubDate></item><item><title><![CDATA[Reply to Modify behaviour of Enter on Fri, 20 Jan 2023 20:21:26 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> No, the caret must go upwards I presume.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83478</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83478</guid><dc:creator><![CDATA[Sabuzaki]]></dc:creator><pubDate>Fri, 20 Jan 2023 20:21:26 GMT</pubDate></item><item><title><![CDATA[Reply to Modify behaviour of Enter on Fri, 20 Jan 2023 20:13:55 GMT]]></title><description><![CDATA[<p dir="auto">@Ivan-M</p>
<p dir="auto">Wouldn’t the caret just stay in the same place in your hypothetical scenario?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83476</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83476</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 20 Jan 2023 20:13:55 GMT</pubDate></item></channel></rss>