Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2018-05

IDE multi-carets issue

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

AlexeyT

I have 4 carets on lines

         c.SetValue('/dialog/fl_btm/posx', FFormFloatBottom.Left);
         c.SetValue('/dialog/fl_btm/posy',  FFormFloatBottom.Top);
         c.SetValue('/dialog/fl_btm/sizex', FFormFloatBottom.Width);
         c.SetValue('/dialog/fl_btm/sizey', FFormFloatBottom.Height);

at start of str. Now i press Right key to move carets to right==> they disappear.

Regards, Alexey

Reply by email

Martin Frb
to AlexeyT
AlexeyT wrote 10 lines
I have 4 carets on lines         c.SetValue('/dialog/fl_btm/posx', FFormFloatBottom.Left);         c.SetValue('/dialog/fl_btm/posy',  FFormFloatBottom.Top);         c.SetValue('/dialog/fl_btm/sizex', FFormFloatBottom.Width);         c.SetValue('/dialog/fl_btm/sizey', FFormFloatBottom.Height); at start of str. Now i press Right key to move carets to right==> they disappear.

There is an option (Tools > Option > Editor > General): "Multi Caret Move with cursor"

Actually 2 options:
- The "(column select)" is when you used alt-shift-(mouse or cursor keys) to get your carets.
- The other is for all other multi carets (set by mouse: Shift Ctrl Left, or keys: Shift Ctrl Insert)

Currently this option includes vertical AND horizontal moves. So you need to set a shortcut to clear all extra carets. (keymap options)

To have an option for only horizontal moves is on the Todo. Equally TODO, if you press del at the end of the line (especially if only some carets are at the end of line), currently the line breaks are deleted and lines are joined.

Reply by email