Skip to content

Commit

Permalink
Allow also lines on cut/copy via Shift+Delete and Ctrl+Insert. Doc Ho…
Browse files Browse the repository at this point in the history
…me Home/End End.
  • Loading branch information
martijnlaan committed Jun 19, 2024
1 parent ba92d52 commit 36332fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ISHelp/isetup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3139,13 +3139,13 @@ Filename: "{win}\MYPROG.INI"; Section: "InstallSettings"; Key: "InstallPath"; St
<td>Go to start of document. Shift extends selection.</td><td>Ctrl+Home</td>
</tr>
<tr>
<td>Go to start of line.</td><td>Alt+Home</td>
<td>Go to start of line.</td><td>Alt+Home or Home Home</td>
</tr>
<tr>
<td>Go to end of document. Shift extends selection.</td><td>Ctrl+End</td>
</tr>
<tr>
<td>Go to end of line.</td><td>Alt+End</td>
<td>Go to end of line.</td><td>Alt+End or End End</td>
</tr>
<tr>
<td>Scroll up.</td><td>Ctrl+Up</td>
Expand All @@ -3157,10 +3157,10 @@ Filename: "{win}\MYPROG.INI"; Section: "InstallSettings"; Key: "InstallPath"; St
<td>Scroll horizontally.</td><td>Shift+MouseWheel</td>
</tr>
<tr>
<td>Cut selection or line.</td><td>Ctrl+X</td>
<td>Cut selection or line.</td><td>Ctrl+X or Shift+Delete</td>
</tr>
<tr>
<td>Copy selection or line.</td><td>Ctrl+C</td>
<td>Copy selection or line.</td><td>Ctrl+C or Ctrl+Insert</td>
</tr>
<tr>
<td>Cut line.</td><td>Ctrl+L</td>
Expand Down
2 changes: 2 additions & 0 deletions Projects/Src/CompScintEdit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ procedure TCompScintEdit.CreateWnd;
Call(SCI_SETMULTIPASTE, SC_MULTIPASTE_EACH, 0);

Call(SCI_ASSIGNCMDKEY, Ord('C') or (SCMOD_CTRL shl 16), SCI_COPYALLOWLINE);
Call(SCI_ASSIGNCMDKEY, SCK_INSERT or (SCMOD_CTRL shl 16), SCI_COPYALLOWLINE);
Call(SCI_ASSIGNCMDKEY, Ord('X') or (SCMOD_CTRL shl 16), SCI_CUTALLOWLINE);
Call(SCI_ASSIGNCMDKEY, SCK_DELETE or (SCMOD_SHIFT 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);
Expand Down
2 changes: 1 addition & 1 deletion whatsnew.htm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<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>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>Cut (Ctrl+X or Shift+Delete) and Copy (Ctrl+C or Ctrl+Insert) 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>
Expand Down

0 comments on commit 36332fc

Please sign in to comment.