Recent

Author Topic: Configuration of the Lazarus IDE editor  (Read 1350 times)

MaxCuriosus

  • Jr. Member
  • **
  • Posts: 95
Configuration of the Lazarus IDE editor
« 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?

winni

  • Hero Member
  • *****
  • Posts: 1436
Re: Configuration of the Lazarus IDE editor
« Reply #1 on: February 04, 2020, 10:33:46 pm »
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

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6368
    • wiki
Re: Configuration of the Lazarus IDE editor
« Reply #2 on: February 04, 2020, 10:55:52 pm »
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.

MaxCuriosus

  • Jr. Member
  • **
  • Posts: 95
Re: Configuration of the Lazarus IDE editor
« Reply #3 on: February 05, 2020, 09:43:49 pm »
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?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6368
    • wiki
Re: Configuration of the Lazarus IDE editor
« Reply #4 on: February 06, 2020, 12:27:40 am »
"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.

MaxCuriosus

  • Jr. Member
  • **
  • Posts: 95
Re: Configuration of the Lazarus IDE editor
« Reply #5 on: February 06, 2020, 12:21:20 pm »
Got it, thanks.

 

TinyPortal © 2005-2018