Ctrl+X now also does line if there's selection.

This commit is contained in:
Martijn Laan 2024-06-18 21:01:05 +02:00
parent 0c1e829a19
commit 77e5d0567c
No known key found for this signature in database
GPG Key ID: E2DD568CF6098F6A
5 changed files with 9 additions and 1 deletions

Binary file not shown.

View File

@ -3156,6 +3156,12 @@ Filename: "{win}\MYPROG.INI"; Section: "InstallSettings"; Key: "InstallPath"; St
<tr>
<td>Scroll horizontally.</td><td>Shift+MouseWheel</td>
</tr>
<tr>
<td>Cut selection or line.</td><td>Ctrl+X</td>
</tr>
<tr>
<td>Copy selection or line.</td><td>Ctrl+C</td>
</tr>
<tr>
<td>Cut line.</td><td>Ctrl+L</td>
</tr>

View File

@ -188,6 +188,7 @@ begin
Call(SCI_SETMULTIPASTE, SC_MULTIPASTE_EACH, 0);
Call(SCI_ASSIGNCMDKEY, Ord('C') or (SCMOD_CTRL shl 16), SCI_COPYALLOWLINE);
Call(SCI_ASSIGNCMDKEY, Ord('X') or (SCMOD_CTRL shl 16), SCI_CUTALLOWLINE);
Call(SCI_ASSIGNCMDKEY, Ord('Z') or ((SCMOD_SHIFT or SCMOD_CTRL) shl 16), SCI_REDO);
Call(SCI_ASSIGNCMDKEY, SCK_UP or (SCMOD_ALT shl 16), SCI_MOVESELECTEDLINESUP);
Call(SCI_ASSIGNCMDKEY, SCK_DOWN or (SCMOD_ALT shl 16), SCI_MOVESELECTEDLINESDOWN);

View File

@ -15,6 +15,7 @@ const
SC_MARK_BACKFORE = 34;
STYLE_AUTOCOMPLETION = 40;
STYLE_LASTPREDEFINED = 40;
SCI_CUTALLOWLINE = 2805;
SC_MASK_HISTORY = $01E00000;
implementation

View File

@ -50,7 +50,7 @@ For conditions of distribution and use, see <a href="files/is/license.txt">LICEN
<li>The editor's gutter now shows change history to keep track of saved and unsaved modifications.</li>
<li>The editor's font now defaults to Consolas if available, consistent with most other modern editors.</li>
<li>The editor can now be scrolled horizontally instead of vertically by holding the Shift key while rotating the mouse wheel. Horizontal scroll wheels are now also supported.</li>
<li>Copy (Ctrl+C) now copies the entire line if there's no selection, consistent with most other modern editors.</li>
<li>Cut (Ctrl+X) and Copy (Ctrl+C) now cut or copy the entire line if there's no selection, consistent with most other modern editors.</li>
<li>Added shortcuts to move selected lines up or down (Alt+Up and Alt+Down).</li>
<li>Added a right-click popup menu to the editor's gutter column for breakpoints.</li>
</ul>