(Created page with "Category:Edit tab '''Join lines''' will join two or more contiguous lines. It functions differently depending on whether or not text is selected. With one or less lines...") |
|||
Line 13: | Line 13: | ||
<code>» ·····line·1·line 2····</code> | <code>» ·····line·1·line 2····</code> | ||
− | The caret will be positioned at the end of the joined lines after lines are combined. You may want to define a key mapping for this command in | + | The caret will be positioned at the end of the joined lines after lines are combined. You may want to define a key mapping for this command in [[Settings:Key mapping|Settings » Settings]]. |
Join lines will join two or more contiguous lines. It functions differently depending on whether or not text is selected. With one or less lines selected (no line ends in selection) join lines will join the active line to the one immediately following it. With two or more lines selected (one or more line ends in selection) join lines will join all selected lines and the active line.
All trailing spaces from a line being joined with a line below it will be removed. All leading spaces from a line being joined with a line above it will be removed. A single space will be inserted between 2 joined lines.
Example (·
represents space, »
represents tab):
» ·····line·1
» ·······line·2····
After join lines:
» ·····line·1·line 2····
The caret will be positioned at the end of the joined lines after lines are combined. You may want to define a key mapping for this command in Settings » Settings.