Skip to content

Commit 225c85f

Browse files
committed
Clarify Column-to-Multi conversion
add a warning that it honors the direction of the column in determining which order the multi-edit pieces are parsed in, which can be confusing when pasting after a conversion
1 parent 59cb242 commit 225c85f

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

content/docs/editing.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Before v8.6, whether or not you can use Multi-Editing mode was determined by the
9898

9999
Starting in v8.6, Multi-Edit became the default, and was significantly enhanced. The [Multi-Editing HowTo](#multi-editing-howto) (below) gives a tutorial in how to use this improved feature, including the new [**Edit** menu](#edit-menu) **...Multi-Select...** commands.
100100

101-
With the improved Multi-Edit, Column Mode selections are treated more like Multi-Edit selections; in order to disable this treatment, create the [zero-byte config file](../config-files/#other-configuration-files) `noColumnToMultiSelect.xml` (in v8.6.1-v8.6.2); going forward, instead of a zero-byte file, there is a second option in the [**Editing 2**](../preferences/#editing-2) preferences to **☐ Enable Column Selection to Multi-Editing**.
101+
With the improved Multi-Edit, Column Mode selections are treated more like Multi-Edit selections; in order to disable this treatment in v8.6.1-v8.6.2, create the [zero-byte config file](../config-files/#other-configuration-files) `noColumnToMultiSelect.xml`; starting in v8.6.3, instead of a zero-byte file, there is a second option in the [**Editing 2**](../preferences/#editing-2) preferences to **☐ Enable Column Selection to Multi-Editing**. (See the [warning (below)](#column-mode-to-multi-edit-warning).)
102102

103103
### Multi-Editing HowTo
104104

@@ -183,6 +183,29 @@ Move all [caret](#caret-and-cursor "typing/insertion cursor")s to right by using
183183
#### Step 11
184184
Use what you learned from Steps 1 through 10 to continue trying to mimic the behavior of the demo animation.
185185

186+
### Column-Mode to Multi-Edit Warning
187+
188+
When Notepad++ 8.6.3-and-newer converts a Column-Mode selection to a Multi-Edit selection, it honors the order of the selection: if your column selection was made from the bottom to the top, then, when it gets converted to Multi-Edit selection, the order of the Multi-Edit selection will be from the bottom to the top.
189+
190+
For example:
191+
1. Create the file:
192+
```
193+
abc
194+
def
195+
ghi
196+
```
197+
2. Put the cursor after the `g` and use <kbd>Alt+Shift+arrows</kbd> to select the column including `g`, `d`, and `a` from bottom to top. This gives a normal column selection.
198+
3. Cut that text, to put the column into the clipboard.
199+
4. <kbd>ArrowRight</kbd> then <kbd>ArrowLeft</kbd> to convert from Column-mode to Multi-Edit.
200+
5. Paste the text (<kbd>Ctrl+V</kbd>).
201+
6. Your file now looks like:
202+
```
203+
gbc
204+
def
205+
ahi
206+
```
207+
208+
This might be non-intuitive behavior from your perspective, but it makes internal sense, because Multi-Edit honors the order you do things in for the list of selections, and you started your column at the bottom, so the `g` came before the `a`. It is something to understand, if you are using the Column-Mode to Multi-Edit conversion feature of Notepad++. If you want to have access to the Column-Mode-to-Multi-Edit conversion, but this behavior confuses you too much, then it is recommended that you always start Column-Mode selections from the top, rather than from the bottom.
186209

187210
## Dual View
188211
To create Dual View, drag and drop any tab that you want it to be in another view (or right click on the tab) then choose "Move to Other View" command from the popup context menu.

0 commit comments

Comments
 (0)