From 315ab3ee0134a0e735800718f3b3ca6d6bd72fb7 Mon Sep 17 00:00:00 2001
From: Martijn Laan <1092369+martijnlaan@users.noreply.github.com>
Date: Sun, 23 Jun 2024 06:29:04 +0200
Subject: [PATCH] Tweaks.
---
ISHelp/isetup.xml | 10 ++++++++--
Projects/Src/CompScintEdit.pas | 11 +++++++++--
2 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/ISHelp/isetup.xml b/ISHelp/isetup.xml
index 5b897abed..132bf0b80 100644
--- a/ISHelp/isetup.xml
+++ b/ISHelp/isetup.xml
@@ -3228,7 +3228,10 @@ Filename: "{win}\MYPROG.INI"; Section: "InstallSettings"; Key: "InstallPath"; St
Move selected lines down. | Alt+Down |
- Duplicate selection or copy lines down. | Ctrl+D | Shift+Alt+Down |
+ Duplicate selection or copy lines down. | Ctrl+D | - |
+
+
+ Copy line down. | - | Shift+Alt+Down |
Lowercase lines. | Ctrl+U |
@@ -3282,7 +3285,7 @@ Filename: "{win}\MYPROG.INI"; Section: "InstallSettings"; Key: "InstallPath"; St
|
- Perform rectangular block selection (mouse). | Alt+Drag |
+ Perform rectangular block selection (mouse). Shift extends selection. | Alt+Drag |
Perform rectangular block selection (keyboard). | Shift+Alt+Arrow | Ctrl+Shift+Alt+Arrow |
@@ -3305,6 +3308,9 @@ Filename: "{win}\MYPROG.INI"; Section: "InstallSettings"; Key: "InstallPath"; St
Unfold line. | Ctrl+Shift+] |
+
+ Fold or unfold all. | Ctrl+Shift+Click in folding margin |
+
|
diff --git a/Projects/Src/CompScintEdit.pas b/Projects/Src/CompScintEdit.pas
index b3a36ba22..8d66042af 100644
--- a/Projects/Src/CompScintEdit.pas
+++ b/Projects/Src/CompScintEdit.pas
@@ -370,9 +370,16 @@ procedure TCompScintEdit.SetKeyMappingType(
end;
{ Now that Shift+Alt+Down has been freed we can use it for line duplication
which frees Ctrl+D . There's no clear for this one in the else
- because it's a member of RectExtendKeyCodeCommands already. }
- AssignCmdKey(SCK_DOWN, [ssShift, ssAlt], SCI_SELECTIONDUPLICATE);
+ because there it's a member of RectExtendKeyCodeCommands already. }
+ AssignCmdKey(SCK_DOWN, [ssShift, ssAlt], SCI_LINEDUPLICATE);
ClearCmdKey('D', [ssCtrl]);
+ { Shift+Alt+Up should copy line up but there's no SCI command for that
+ atm. Shift+Alt+Left/Right should shrink/expand selecting for which
+ there's also no SCI command atm but CHARLEFT/RIGHTEXTEND is close enough
+ so assign those. There's no clear for these in the else because there
+ they're a member of RectExtendKeyCodeCommands already. }
+ AssignCmdKey(SCK_LEFT, [ssShift, ssAlt], SCI_CHARLEFTEXTEND);
+ AssignCmdKey(SCK_RIGHT, [ssShift, ssAlt], SCI_CHARRIGHTEXTEND);
{ Use Ctrl+Shift+K for line deletion which frees Ctrl+Shift+L }
AssignCmdKey('K', [ssShift, ssCtrl], SCI_LINEDELETE);
ClearCmdKey('L', [ssShift, ssCtrl]);