Lazarus
Using the Lazarus IDE => Editor => Topic started by: MaxCuriosus on February 04, 2020, 10:14:35 pm
-
I would like to have the editor commands mimic the ones of TurboPascal of yesteryear (for example Ctrl+N, Ctrl+Y, Ctrl+K B, Ctrl+K K), with the additional objective of reducing the use of the mouse.
Is it possible? If so, how?
-
Hi!
MainMenue --> Tools --> Options --> Editor --> Key Mapping
The most of the good old WordStar/Turbo keys you will find in the blocks
* Cursor Moving Commands
* Text selection Commands
* Text Editing Commands
Winni
-
For Ctrl KB and KK you may need to turn on "Persistent Block" in the general section of the Editor options.
If you prefer none persistent, there is a sticky selection mode (the editor acts as if the shift key is pressed while you navigate)
For any missing actions, you may be able to record them as editor-macro and assign a key to them.
-
winni,
thank you for indicating me the path to the adequate configuration option
Martin-fr,
thank you for your suggestion of the "Persistant block" option. It has not the identical behavior w/r/t the oldie Ctrl+K B, Ctrl+K K, but close enough for my objectives. In that context what is the purpose of the "Overwrite block" option?
-
"Overwrite selection" currently only affects none persistent selections.
ON (default): If you type new text (or delete), it replaces the selection
OFF: typing new text, will de-select the selection (keep text), and insert the new text
A persistent selection is always kept, and new text inserted without affecting it.
---
It has not the identical behavior w/r/t the oldie Ctrl+K B, Ctrl+K K, but close enough for my objectives.
What are the differences?
You are aware that there is Ctrl+K B, Ctrl+K K => allowing you to set the boundaries.
By default Shift-cursor-left/right/up/down will extend/shrink the selection. You can remove those shortcuts from the keymap, if you do not want them.
-
Got it, thanks.