<?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[Moveable multi-line carets]]></title><description><![CDATA[<p dir="auto">A new thing in v8.6, that a multi-line caret created with alt shift up, alt shift down keys, is moveable with the up, down, left, right keys.</p>
<p dir="auto">If I move it out of limit of any line (For example, beyond the right edge), the multi-line caret breaks to separate carets, and the entered characters appear in each line at the caret position.</p>
<p dir="auto">Is this by design? How can I avoid this?</p>
<p dir="auto">The multi-line caret can be deleted with the Esc key.</p>
<p dir="auto">In previous versions the up, down, left, right keys deleted the carets.</p>
<p dir="auto"><img src="https://camo.nodebb.org/c3918c7e83a4e2fd7d5af6c36f474febd5025e85?url=https%3A%2F%2Fi.imgur.com%2FcNxWT7o.jpg" alt="alt text" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25221/moveable-multi-line-carets</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 13:29:18 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25221.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 Dec 2023 15:39:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Moveable multi-line carets on Tue, 19 Nov 2024 12:12:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a> said :</p>
<blockquote>
<p dir="auto">Since you apparently use that plugin,</p>
</blockquote>
<p dir="auto">Actually… I only use it because I forgot I had it hanging around!  :-)<br />
I’ve now disabled it and I will see if my workflow is impacted at all…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97993</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97993</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 19 Nov 2024 12:12:53 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Mon, 18 Nov 2024 17:25:00 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/97972">Moveable multi-line carets</a>:</p>
<blockquote>
<p dir="auto">BetterMultiSelection</p>
</blockquote>
<p dir="auto">Since you apparently use that plugin, I have a question. In release notes for <a href="https://github.com/Coises/ColumnsPlusPlus/releases/tag/v1.1.2" rel="nofollow ugc">Columns++ v 1.1.2</a> I wrote:</p>
<blockquote>
<p dir="auto">Some new features and fixes are probably incompatible with the <a href="https://github.com/dail8859/BetterMultiSelection" rel="nofollow ugc">BetterMultiSelection</a> plugin. I believe that most if not all of that plugin’s features are now incorporated natively in current versions of Notepad++; if there are specific problems you cannot solve without that plugin and you observe conflicts with Columns++, please open an issue in the GitHub repository for Columns++ and I will see if there is anything I can do about it.</p>
</blockquote>
<p dir="auto">Are there features you use from BetterMultiSelection that haven’t been made native to Notepad++? (If so, I’d like to identify them, test whether there is a conflict and see if I can resolve any conflicts that do occur. BetterMultiSelection hasn’t been updated in two and a half years, but then again there are only two open issues and one open pull request, none later than June 2022.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97980</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97980</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Mon, 18 Nov 2024 17:25:00 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Mon, 18 Nov 2024 12:24:37 GMT]]></title><description><![CDATA[<p dir="auto">Just a couple of notes about the script above:</p>
<ul>
<li>it won’t do its intended functionality if you are also using the <em>BetterMultiSelection</em> plugin and you have  it Enable’d (at least on my system that plugin seems to steal keystrokes before the script can get ahold of them)</li>
<li>the script is not needed if you have <em>Enable Column Selection to Multi-Editing</em> uncheckmarked, <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15806" rel="nofollow ugc">ref.</a> (this is I guess obvious, but it tripped me up at one point so I’m noting it here).</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/97972</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97972</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 18 Nov 2024 12:24:37 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Tue, 12 Nov 2024 19:49:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bas-de-reuver" aria-label="Profile: Bas-de-Reuver">@<bdi>Bas-de-Reuver</bdi></a>  said:</p>
<blockquote>
<p dir="auto">but wouldn’t it be better to cancel multiline selection on cursor up and cursor down? 🤔</p>
</blockquote>
<p dir="auto">A script can allow an up/down arrow press with an active column selection to cancel the selection.</p>
<p dir="auto">Here’s a Python3 script for it, I call the script <code>ArrowUpOrDownCancelsColumnSelection.py</code>:</p>
<pre><code class="language-py"># -*- coding: utf-8 -*-

#########################################
#
#  ArrowUpOrDownCancelsColumnSelection (AUODCCS)
#
#########################################

# note:
#  This script was developed and tested under Python3 64-bit on unicode (non-ANSI) encoded data.
#  It may work as-is using Python2 and/or ANSI-encoded data and/or 32-bits, but that would be incidental.

# references:
#  https://community.notepad-plus-plus.org/topic/25221/moveable-multi-line-carets
#  for newbie info on PythonScripts, see https://community.notepad-plus-plus.org/topic/23039/faq-desk-how-to-install-and-run-a-script-in-pythonscript

from Npp import *
from ctypes import ( WinDLL, WINFUNCTYPE )
from ctypes.wintypes import ( HWND, UINT, INT, WPARAM, LPARAM )

user32 = WinDLL('user32')

LRESULT = LPARAM

WndProcType = WINFUNCTYPE(
    LRESULT,  # return type
    HWND, UINT, WPARAM, LPARAM  # arguments
    )

SetWindowLong = user32.SetWindowLongPtrW
SetWindowLong.restype = WndProcType
SetWindowLong.argtypes = [ HWND, INT, WndProcType ]
GWL_WNDPROC = -4

WM_KEYDOWN = 0x0100
VK_SHIFT = 0x10
VK_CONTROL = 0x11
VK_MENU = 0x12
VK_UP = 38
VK_DOWN = 40

class AUODCCS(object):

    def __init__(self):
        self.new_editor1_wnd_proc_hook_for_SetWindowLong = WndProcType(self.new_editor1_wnd_proc_hook)
        self.orig_editor1_wnd_proc = SetWindowLong(editor1.hwnd, GWL_WNDPROC, self.new_editor1_wnd_proc_hook_for_SetWindowLong)
        self.new_editor2_wnd_proc_hook_for_SetWindowLong = WndProcType(self.new_editor2_wnd_proc_hook)
        self.orig_editor2_wnd_proc = SetWindowLong(editor2.hwnd, GWL_WNDPROC, self.new_editor2_wnd_proc_hook_for_SetWindowLong)

    def new_editor1_wnd_proc_hook(self, hwnd, msg, wParam, lParam):
        retval = self.common_editor_wnd_proc_hook(hwnd, msg, wParam, lParam)
        if retval: retval = self.orig_editor1_wnd_proc(hwnd, msg, wParam, lParam)
        return retval

    def new_editor2_wnd_proc_hook(self, hwnd, msg, wParam, lParam):
        retval = self.common_editor_wnd_proc_hook(hwnd, msg, wParam, lParam)
        if retval: retval = self.orig_editor2_wnd_proc(hwnd, msg, wParam, lParam)
        return retval

    def common_editor_wnd_proc_hook(self, hwnd, msg, wParam, lParam):
        retval = True  # default to letting N++ handle the message
        if msg == WM_KEYDOWN:
            if (wParam == VK_UP or wParam == VK_DOWN) and \
                    (user32.GetAsyncKeyState(VK_SHIFT) &amp; 0x8000) == 0 and \
                    (user32.GetAsyncKeyState(VK_CONTROL) &amp; 0x8000) == 0 and \
                    (user32.GetAsyncKeyState(VK_MENU) &amp; 0x8000) == 0:
                sel_mode = editor.getSelectionMode()
                rect_sel_mode = True if (sel_mode == SELECTIONMODE.RECTANGLE or sel_mode == SELECTIONMODE.THIN) else False
                if rect_sel_mode:
                    cp = editor.getCurrentPos()
                    editor.setSelectionMode(SELECTIONMODE.STREAM)
                    editor.setSel(cp, cp)
                else:
                    editor.lineUp() if wParam == VK_UP else editor.lineDown()
                retval = False  # don't let N++ do any more processing on the key that was pressed
        return retval

ARROW_UP_OR_DOWN_CANCELS_COLUMN_SELECTION = AUODCCS()
</code></pre>
<p dir="auto">To try out the script, all you have to do is run it ONCE.  It will then sit there and listen for up or down arrow presses.</p>
<p dir="auto">If you like the script and you want to have it always active, you can set this script to run from user <code>startup.py</code> by adding the following line to that file:</p>
<p dir="auto"><code>from ArrowUpOrDownCancelsColumnSelection import ARROW_UP_OR_DOWN_CANCELS_COLUMN_SELECTION</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/97837</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97837</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 12 Nov 2024 19:49:42 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Tue, 12 Nov 2024 01:11:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a> said in <a href="/post/97820">Moveable multi-line carets</a>:</p>
<blockquote>
<p dir="auto">If I, recall, we already went down the road of asking for automatic cancellation of a multi-selection when the Up/Down arrow keys were used. The best we got was the <code>Enable Column Selection to Multi-Editing</code> switch which disables multi-selection when any of the arrow keys, <code>Home</code>, or <code>End</code> are used.</p>
</blockquote>
<p dir="auto">I think you are failing to distinguish between rectangular (aka column) selections and multiple selections. They are not interchangeable.</p>
<p dir="auto">Cursor arrows and the Home and End keys have never, to the best of my knowledge, canceled <em>multiple</em> selections. What those of us who use column selections more often than multiple selections requested, and received, was the ability to restore the previously familiar behavior of having cursor movement keys cancel <em>column</em> selections.</p>
<p dir="auto">The new behavior, when <strong>Enable Column Selection to Multi-Editing</strong> is checked, is that a column selection is changed to a multiple selection when a cursor movement key is pressed, then moved accordingly. (It has never been possible to move a column selection and keep it as a column selection. There would, for example, be glaring inconsistencies when using proportional fonts.)</p>
<p dir="auto">You can (almost) tell the difference by looking at the status bar; a zero-width column selection looks like <strong>Sel: 4 x 0 = 0</strong> while a multiple selection looks like <strong>Sel 4: 0 | 4</strong>.</p>
<p dir="auto">I say “almost” because Scintilla creates something called a <em>thin selection</em> after you type into a rectangular selection. A thin selection behaves like a zero-width column selection, but the status bar indicator shown in Notepad++ looks like the one for a multiple selection. (I don’t know why this choice was made; it might be an oversight.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97822</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97822</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Tue, 12 Nov 2024 01:11:15 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Tue, 12 Nov 2024 00:45:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a> said in <a href="/post/97819">Moveable multi-line carets</a>:</p>
<blockquote>
<p dir="auto">Strange… that is not the behavior I see. When that box is unchecked, any cursor key (horizontal, vertical, home or end) cancels a column selection; any cursor key moves each cursor in a multiple selection.</p>
</blockquote>
<p dir="auto">You are right. I normally use zero-width multi-selections and so that’s how I tested the behavior. I see that the OP had a one character wide selection. I tried that with both Enable Multi-Editing and Enable Column Selection to Multi-Editing turned on and match your results.</p>
<p dir="auto">If I, recall, we already went down the road of asking for automatic cancellation of a multi-selection when the Up/Down arrow keys were used. The best we got was the <code>Enable Column Selection to Multi-Editing</code> switch which disables multi-selection when any of the arrow keys, <code>Home</code>, or <code>End</code> are used. Maybe it’s time to try again?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97820</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97820</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Tue, 12 Nov 2024 00:45:09 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Mon, 11 Nov 2024 23:26:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a> said in <a href="/post/97818">Moveable multi-line carets</a>:</p>
<blockquote>
<p dir="auto">A slightly “better way” is available via the settings under <code>Preferences / Editing 2 / Multi-Editing</code>. Turn off the option <code>Enable Column Selection to Multi-Editing</code>.</p>
<p dir="auto">When you do that then:</p>
<ul>
<li>Left/right arrow keys keep the multi-cursor mode intact. It gets a strange when one or more of the cursors goes of the end of the line as the cursor(s) wrap to the next line.</li>
<li>Up/down arrow keys cancel the multi-cursor mode and you have one cursor either on the line above or below where the multi-selection was.</li>
</ul>
</blockquote>
<p dir="auto">Strange… that is not the behavior I see. When that box is unchecked, any cursor key (horizontal, vertical, home or end) cancels a <em>column</em> selection; any cursor key moves each cursor in a multiple selection.</p>
<p dir="auto">When that box is checked, any cursor key moves each cursor in a multiple selection in the same way as if the box were unchecked; any cursor key converts a column selection to a multiple selection and then moves it the same as if the box were unchecked.</p>
<p dir="auto">Tested with:<br />
Notepad++ v8.7.1   (64-bit)<br />
Build time : Oct 31 2024 - 00:48:56<br />
Path : C:\Program Files\Notepad++\Notepad++.exe<br />
Command Line :<br />
Admin mode : OFF<br />
Local Conf mode : OFF<br />
Cloud Config : OFF<br />
Periodic Backup : OFF<br />
OS Name : Windows 10 Pro (64-bit)<br />
OS Version : 22H2<br />
OS Build : 19045.5011<br />
Current ANSI codepage : 1252<br />
Plugins :<br />
DSpellCheck (1.5)<br />
mimeTools (3.1)<br />
NppConverter (4.6)<br />
NppExport (0.4)<br />
NppMarkdownPanel (0.7.3)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97819</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97819</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Mon, 11 Nov 2024 23:26:15 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Mon, 11 Nov 2024 22:01:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bas-de-reuver" aria-label="Profile: Bas-de-Reuver">@<bdi>Bas-de-Reuver</bdi></a> said in <a href="/post/97792">Moveable multi-line carets</a>:</p>
<blockquote>
<p dir="auto">but wouldn’t it be better to cancel multiline selection on cursor up and cursor down?</p>
</blockquote>
<p dir="auto">A slightly “better way” is available via the settings under <code>Preferences / Editing 2 / Multi-Editing</code>. Turn off the option <code>Enable Column Selection to Multi-Editing</code>.</p>
<p dir="auto">When you do that then:</p>
<ul>
<li>Left/right arrow keys keep the multi-cursor mode intact. It gets a strange when one or more of the cursors goes of the end of the line as the cursor(s) wrap to the next line.</li>
<li>Up/down arrow keys cancel the multi-cursor mode and you have one cursor either on the line above or below where the multi-selection was.</li>
<li>The <code>End</code> key unfortunately cancels the multi-cursor mode. Snapping all the cursors to the end of the lines seems useful.  One issue with this is that you can have more than one cursor on a line. Should <code>End</code> put all of them at the end of the line or should it delete the surplus cursors?</li>
<li>At present <code>Home</code> is like <code>End</code> in that it ends multi-cursor mode. With a standard single cursor <code>Home</code> looks to see if the line had leading spaces or tabs and <code>Home</code> jumps to the first visible character. You tap <code>Home</code> again and it goes to the start of the line. If we remain in multi-cursor mode to we want the various cursors to do this leading space thing?</li>
</ul>
<p dir="auto">Something else to consider is <code>Ctrl+Left arrow</code> and <code>Ctrl+Right arrow</code>. Those do word jumps in single cursor mode.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97818</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97818</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Mon, 11 Nov 2024 22:01:47 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Mon, 11 Nov 2024 15:30:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bas-de-reuver" aria-label="Profile: Bas-de-Reuver">@<bdi>Bas-de-Reuver</bdi></a> said in <a href="/post/97792">Moveable multi-line carets</a>:</p>
<blockquote>
<p dir="auto">but wouldn’t it be better to cancel multiline selection on cursor up and cursor down?</p>
</blockquote>
<p dir="auto">I tend to agree.</p>
<blockquote>
<p dir="auto">in what situation is moving the multiline-select up and down useful?</p>
</blockquote>
<p dir="auto">I can’t think of any.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97810</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97810</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 11 Nov 2024 15:30:42 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Sun, 10 Nov 2024 13:58:15 GMT]]></title><description><![CDATA[<p dir="auto">I know I’m late to the discussion, but wouldn’t it be better to cancel multiline selection on <code>cursor up</code> and <code>cursor down</code>? 🤔</p>
<p dir="auto">So keep the “cursor left” and “cursor right” as-is, but remove cursor up down from the “Column Selection to Multiline editing” behaviour. I mean I can see how moving the multiline-select in certain ways is useful, but I don’t quite understand the practical use-case for keeping the multiline selection when moving up or down:</p>
<ul>
<li>Cursor left/right = adjust multiline column position, skip existing column characters when editing etc.</li>
<li>Cursor up/down = …?</li>
<li>End key = Use multi-select to quickly add quotes or comma’s at end of lines with irregular lengths (JSON editing for example)</li>
<li>Home key = Same as left but faster, jump to the start of long lines, re-align column multi select etc.</li>
</ul>
<p dir="auto">For example I can change all patient IDs from <code>001KUL</code> to <code>05-001</code> using the multi-select and cursor left/right, see screenshot below. But when I start using <code>cursor up</code> and <code>cursor down</code> the multi-select becomes this weird situation. For example, when I move the multi-line selection up to beyond the start of the file and then press left/right then the first line has 2 cursors blinking(?).</p>
<p dir="auto"><img src="https://camo.nodebb.org/4261f05ac2e44b66de83203b8453fdf51f6d61ad?url=https%3A%2F%2Fgithub.com%2Fuser-attachments%2Fassets%2F47975646-68d3-4ec6-9208-00c61a50f160" alt="notepad_multi_selct" class=" img-fluid img-markdown" /></p>
<p dir="auto">I know the I can cancel the current multilines selection with the <code>Esc</code> key, or disable moving the multiline entirely in Preferences -&gt; Editing 2 -&gt; Enable Column Selection to Multi-editing -&gt; uncheck.</p>
<p dir="auto">But in what situation is moving the multiline-select up and down useful? Wouldn’t you have to make a new multiline-select in most of those cases anyway?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97792</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97792</guid><dc:creator><![CDATA[Bas de Reuver]]></dc:creator><pubDate>Sun, 10 Nov 2024 13:58:15 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Sat, 09 Dec 2023 19:07:08 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/91079">Moveable multi-line carets</a>:</p>
<blockquote>
<p dir="auto">Sure the basics of making multiple selections was already there, but it was rather like musicians warming up individually for the symphonic performance to come. The attempt was made to get it all working in-concert…and that’s where we’re at now.</p>
</blockquote>
<p dir="auto">I guess the discussion (especially the spin-off to <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14266" rel="nofollow ugc">Issue #14266</a>) attracted people who use multi-edit more than they use rectangular selections, and escaped the notice of folks who use rectangular selections all the time and almost never intentionally make a multiple stream selection.</p>
<p dir="auto">I left <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14464#issuecomment-1848611444" rel="nofollow ugc">a comment on Issue#14464</a>, but I suspect that ship has already sailed.  :-(</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91080</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91080</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Sat, 09 Dec 2023 19:07:08 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Sat, 09 Dec 2023 18:30:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a> said in <a href="/post/91076">Moveable multi-line carets</a>:</p>
<blockquote>
<p dir="auto">I feel a bit stupid asking this question, but… is there a list of the intended changes in multi-caret editing?</p>
</blockquote>
<p dir="auto">No reason to feel that way about it.</p>
<p dir="auto">What kicked off the recent development of the feature was <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8203#issuecomment-1784339919" rel="nofollow ugc">THIS</a>.  And yes, I say sheepishly, it was all MY fault.  :-)</p>
<p dir="auto">The user “bitagoras” was a major protagonist on how it should work, i.e, the fancier parts of it.</p>
<p dir="auto">Sure the basics of making multiple selections was already there, but it was rather like musicians warming up individually for the symphonic performance to come.  The attempt was made to get it all working in-concert…and that’s where we’re at now.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91079</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91079</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 09 Dec 2023 18:30:14 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Sat, 09 Dec 2023 18:14:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/l%C3%A1szl%C3%B3-botka" aria-label="Profile: László-Botka">@<bdi>László-Botka</bdi></a> said in <a href="/post/91041">Moveable multi-line carets</a>:</p>
<blockquote>
<p dir="auto">Is this by design? How can I avoid this?</p>
</blockquote>
<p dir="auto">I see here:</p>
<p dir="auto"><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14266" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14266</a></p>
<p dir="auto">that it is by design, and there is (apparently by the developer’s choice) no option to disable it.</p>
<p dir="auto">This is annoying for people who use rectangular selections often while rarely if ever using multiple cursors. The solution seems to be to get in the habit of pressing an arrow key (which converts the rectangular selection to an empty multiple selection) and then pressing the Escape key. I believe that will always work.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91078</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91078</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Sat, 09 Dec 2023 18:14:55 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Sat, 09 Dec 2023 17:32:28 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/91073">Moveable multi-line carets</a>:</p>
<blockquote>
<p dir="auto">official issues</p>
</blockquote>
<p dir="auto">I see one already open:</p>
<p dir="auto"><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14464" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14464</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/91077</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91077</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Sat, 09 Dec 2023 17:32:28 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Sat, 09 Dec 2023 17:26:32 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> I feel a bit stupid asking this question, but… is there a list of the <em>intended</em> changes in multi-caret editing? The release notes only say, “Multi-edit is the main feature of this version”; but making and editing multiple selections (with the now-removed checkbox checked) was already possible. What actually, intentionally, changed (besides removing the option to disable Ctrl+mouse multi-selection)?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91076</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91076</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Sat, 09 Dec 2023 17:26:32 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Sat, 09 Dec 2023 17:21:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a> said in <a href="/post/91074">Moveable multi-line carets</a>:</p>
<blockquote>
<p dir="auto">I almost never use multiple selections (other than rectangular selections)</p>
</blockquote>
<p dir="auto">This is very likely the way it is for most users; certainly true for me as well.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91075</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91075</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 09 Dec 2023 17:21:01 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Sat, 09 Dec 2023 17:13:40 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/91073">Moveable multi-line carets</a>:</p>
<blockquote>
<p dir="auto">put in some official issues on the problems with these behaviors</p>
</blockquote>
<p dir="auto">I still need to find time to install a previous version and compare it with the current version, and to look at the actual code changes. I almost never use multiple selections (other than rectangular selections), so I’m not able, by memory, to recognize the difference between what used to be and what is now. Assuming I can get it clear in my own mind, if there isn’t already an issue at that time, I’ll enter one.</p>
<blockquote>
<ul>
<li>You say above “If you <strong>type</strong> in either situation…because if you <strong>typed</strong> into…but if you <strong>typed</strong> into…” – What did the user type here?  More arrow keys/combos or actual text?</li>
</ul>
</blockquote>
<p dir="auto">I meant typing a character.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91074</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91074</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Sat, 09 Dec 2023 17:13:40 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Sat, 09 Dec 2023 14:22:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a></p>
<p dir="auto">Some observations:</p>
<ul>
<li>
<p dir="auto">You seem to have a good grasp on all of this</p>
</li>
<li>
<p dir="auto">Due to that good grasp, perhaps you are the <em>best</em> person to put in some official issues on the problems with these behaviors</p>
</li>
<li>
<p dir="auto">You say above “If you <strong>type</strong> in either situation…because if you <strong>typed</strong> into…but if you <strong>typed</strong> into…” – What did the user type here?  More arrow keys/combos or actual text?</p>
</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/91073</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91073</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 09 Dec 2023 14:22:58 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Sat, 09 Dec 2023 00:15:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a> Based on some quick testing, I think:</p>
<p dir="auto">One piece of the puzzle is that the status bar shows <strong>Sel: <em>n</em>x0 = 0</strong> for a zero-width rectangular selection (which is not, per Scintilla’s definition, the same as a thin selection, though it looks and behaves identically to the user), but shows <strong>Sel <em>n</em> : 0 | <em>n</em></strong> both for thin selections and for multiple selections in which every selection is empty.</p>
<p dir="auto">Pressing <strong>Esc</strong> clears all but the primary selection of a multiple selection, but has no effect on a rectangular selection or a thin selection.</p>
<p dir="auto">If you make a rectangular selection and use Shift+arrow-keys to modify it, it immediately changes to a multiple selection. If you use Alt+Shift+arrow-keys, it remains a rectangular selection. (This part is visible in the status bar.) If you type in either situation, the result <em>looks</em> the same — all the cursors in line, and the status bar shows <strong>Sel <em>n</em> : 0 | <em>n</em></strong> — but the result of pressing <strong>Esc</strong> is different, because if you typed into a multiple selection, you now have a empty multiple selection (which <strong>Esc</strong> will reduce to the primary selection); but if you typed into a rectangular selection, you get a thin selection (which <strong>Esc</strong> does not affect).</p>
<p dir="auto">So I’d say one of the errors here, which based on your description is not new to 8.6, is that the status bar fails to differentiate between a thin selection and a multiple selection. (In my opinion a thin selection should appear the same as a zero-width rectangular selection, because there is no difference in user-facing behavior.)</p>
<p dir="auto">Edit to add: Another difference which may be observed between rectangular selections (including zero-width rectangular selections and thin selections) and multiple selections (including empty multiple selections) which only <em>look like</em> rectangular selections is that when you switch to another tab and then switch back, rectangular selections are restored, but multiple selections are not.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91066</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91066</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Sat, 09 Dec 2023 00:15:40 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Fri, 08 Dec 2023 22:57:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a> said in <a href="/post/91053">Moveable multi-line carets</a>:</p>
<blockquote>
<p dir="auto">That seems like a bug. Typing in column mode should leave you with a Scintilla thin selection , which behaves like a zero-width column selection, not like a multi-caret selection. I’ll have to install an older version to check, but I’m pretty sure that is new, and potentially very disconcerting, behavior.</p>
</blockquote>
<p dir="auto">I have started several times to try to accurately describe the issue so I can post a bug report but have discovered it’s not easy to pin down just where v8.5.8 and v8.6 diverge. v8.5.8 and earlier already seems to have a multi-caret mode.  My notes so far have:</p>
<p dir="auto">I tend to use the keyboard when using Notepad++.</p>
<p dir="auto">I have the following:</p>
<pre><code class="language-txt">p01
p02
p03
p04
p05
p06
p07
p08
p09
</code></pre>
<p dir="auto">and want to change the leading <code>p</code> to <code>0</code> (zero). I deal with this by positioning the cursor at the front of <code>p01</code> and then with the Shift+Alt keys held down I down-arrow to the line with <code>p09</code> and then while still holding Shift+Alt down I right-arrow once to create a 9x1 column selection of the letter <code>p</code>. I then type <code>0</code> to replace the <code>p</code> with <code>0</code>.</p>
<p dir="auto">I think Scintilla is now in SC_SEL_THIN for both v8.5.8 and v8.6. Both versions have a 9 line high cursor blinking after the <code>0</code> I just typed. For both the status line changed from <code>Sel : 9x 1 = 9</code> to <code>Sel 9 : 0 | 9</code> when I typed the <code>0</code>.</p>
<hr />
<p dir="auto">My notes end there for now as I saw that <code>Esc</code> behaves the same and typing characters behave the same in both versions. Both versions have a 9 line high cursor. I am used to this and have regularly taken advantage of it in v858 and earlier.</p>
<p dir="auto">I know there is a point of divergence here where any of the arrow keys causes v858 to go back to single cursor mode. When I use any of the arrow keys in v86 it remains in multi-cursor mode. That seems simple enough but the Esc key before and after arrow keys needs to get explored a bit more before I’m not yet comfortable with asking via github that the behavior get changed or at least made configurable.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91065</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91065</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Fri, 08 Dec 2023 22:57:29 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Fri, 08 Dec 2023 18:37:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a> said in <a href="/post/91047">Moveable multi-line carets</a>:</p>
<blockquote>
<p dir="auto">Now type x. You will see the four ‘x’ in a column as you expect but are also now in multi-caret mode.</p>
</blockquote>
<p dir="auto">That seems like a bug. Typing in column mode should leave you with a Scintilla <a href="https://www.scintilla.org/ScintillaDoc.html#SCI_SETSELECTIONMODE" rel="nofollow ugc">thin selection</a>, which behaves like a zero-width column selection, not like a multi-caret selection. I’ll have to install an older version to check, but I’m pretty sure that is new, and potentially very disconcerting, behavior.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91053</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91053</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Fri, 08 Dec 2023 18:37:01 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Fri, 08 Dec 2023 18:22:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/l%C3%A1szl%C3%B3-botka" aria-label="Profile: László-Botka">@<bdi>László-Botka</bdi></a> said in <a href="/post/91044">Moveable multi-line carets</a>:</p>
<blockquote>
<p dir="auto">OK, great pleasure, I will always use the Esc key - just don’t forget.</p>
</blockquote>
<p dir="auto">Unfortunately, the Esc key does not work consistently to get out of multi-caret mode. For example, if you have:</p>
<pre><code class="language-txt">abc
abc
abc
abc
abc
abc
</code></pre>
<p dir="auto">Use Shift+Alt+up or down arrow to create a 4x0 column. The example with <code>abc</code> has six lines but you can position that 4x0 column anywhere. The extra lines make it easier to experiment with up and down arrow.</p>
<p dir="auto">Now type <code>x</code>. You will see the four ‘x’ in a column as you expect but are also now in multi-caret mode. Pressing <code>Esc</code> at this point will <strong>not</strong> get you out of multi-caret mode. You need to use any arrow key, which moves the four cursors, and then <code>Esc</code> works.</p>
<p dir="auto">So far, the workaround I’m using is to use any arrow key and then the reverse, and then <code>Esc</code>.  It’s three keystrokes to get out of multi-caret mode. I typically use a <code>Right, Left, Esc</code> finger dance but your fingers may be happier with left/right/Esc, up/down/Esc, or down/up/Esc finger dance.</p>
<p dir="auto">You can tell which mode are in from the status line but it’s subtle.  When you see <code>Sel : 4x0 = 0</code> then you are in column mode.  The <code>4x0</code> is the height and width of the column and the <code>0</code> is the total number of characters (height multiplied by width) in the column.  When you see <code>Sel 4 : 0 | 4</code> then you are in multi-caret mode. The first ‘4’ is the number of carets. The ‘0’ is the total number of characters selected. The final ‘4’ is the total number of lines that have carets. It’s easier to experiment with that using the mouse. Hold the Ctrl key down and click the mouse in various spots to create carets and/or click-drag the mouse to create selections while watching the status line.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91047</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91047</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Fri, 08 Dec 2023 18:22:26 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Fri, 08 Dec 2023 16:36:20 GMT]]></title><description><![CDATA[<p dir="auto">OK, great pleasure, I will always use the Esc key - just don’t forget.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91044</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91044</guid><dc:creator><![CDATA[László Botka]]></dc:creator><pubDate>Fri, 08 Dec 2023 16:36:20 GMT</pubDate></item><item><title><![CDATA[Reply to Moveable multi-line carets on Fri, 08 Dec 2023 15:55:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/l%C3%A1szl%C3%B3-botka" aria-label="Profile: László-Botka">@<bdi>László-Botka</bdi></a> said in <a href="/post/91041">Moveable multi-line carets</a>:</p>
<blockquote>
<p dir="auto">Is this by design? How can I avoid this?</p>
</blockquote>
<p dir="auto">Some people want column selections (the alt+select) to be handled as multi-select as well – and in a multi-select situation, you want to be able to be able to arrow around, and have the multiple carets not aligned, so it was “by design” (though I’m not sure the developer really understood the implications of the implementation chosen).</p>
<p dir="auto">Unfortunately, this may annoy people who liked column selections staying as column selections, and the developer got rid of the ability to turn that option off from Notepad++'s interface.</p>
<p dir="auto">I don’t use it, but some people like the BetterMultiSelect plugin, which may-or-may-not handle your use-case better than Notepad++'s v8.6 implementation alone (and I don’t know how the plugin interacts with v8.6 feature set, as compared to the pre-8.6 feature set).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91043</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91043</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 08 Dec 2023 15:55:17 GMT</pubDate></item></channel></rss>