Sign in Join

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

Mailing lists / lazarus / 2018-04

Selection block/brace

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Vojtěch Čihák

Hi,
 
I tried two items from Lazarus Edit menu: Select to Brace and Select Code Block. Both seem do nothing. Are they broken? I didn't use them before so I expexted they would do what their name say. I have Lazarus 1.9.0 r57693M FPC 3.1.1 x86_64-linux-qt.  
Thanks
 
V.

Reply by email

Martin Frb
to Vojtěch Čihák
Vojtěch Čihák wrote
Hi, I tried two items from Lazarus Edit menu: Select to Brace and Select Code Block. Both seem do nothing. Are they broken? I didn't use them before so I expexted they would do what their name say. I have Lazarus 1.9.0 r57693M FPC 3.1.1 x86_64-linux-qt.

Select to brace works well, if the caret is at a brace ()[]{}

"Code block" may not yet be implemented (check console output), needs to be verified. If so should be hidden....

Reply by email

Vojtěch Čihák
to Vojtěch Čihák:   I tried two items from Lazarus Edit menu: Select to Brace and Select Code Block. Both…

Hi,
Select to Brace does nothing, no matter if caret is outside or inside (),[] or {}. What it shoulld do?
 
(abc|def) should select "def"?
 
Thanks,
 
V.
______________________________________________________________

Show quoted text 5 lines
Od: Martin Frb via Lazarus Komu: Datum: 26.04.2018 18:35 Předmět: Re: [Lazarus] Selection block/brace
Vojtěch Čihák wrote
Hi,   I tried two items from Lazarus Edit menu: Select to Brace and Select Code Block. Both seem do nothing. Are they broken? I didn't use them before so I expexted they would do what their name say. I have Lazarus 1.9.0 r57693M FPC 3.1.1 x86_64-linux-qt.

Select to brace works well, if the caret is at a brace ()[]{}

"Code block" may not yet be implemented (check console output), needs to be verified. If so should be hidden....

Reply by email

Martin Frb
to Vojtěch Čihák
Vojtěch Čihák wrote 11 lines
Hi, Select to Brace does nothing, no matter if caret is outside or inside (),[] or {}. What it shoulld do? (abc|def) should select "def"?

It seems to only work, if the caret is either before the opening ( or behind the )

It then selects the entire text (both brackets, and the content)

This is just from a quick test, using trunk (but a few weeks old)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180426/5ed3fa1b/attachment.html>

Reply by email