Discussion:
[Lazarus] Selection block/brace
Vojtěch Čihák via Lazarus
2018-04-25 01:01:58 UTC
Permalink
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.
--
Martin Frb via Lazarus
2018-04-26 16:35:29 UTC
Permalink
On 25/04/2018 03:01, Vojtěch Čihák via Lazarus 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....
--
Vojtěch Čihák via Lazarus
2018-04-26 19:56:45 UTC
Permalink
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.
______________________________________________________________
> Od: Martin Frb via Lazarus <***@lists.lazarus-ide.org>
> Komu: ***@lists.lazarus-ide.org
> Datum: 26.04.2018 18:35
> Předmět: Re: [Lazarus] Selection block/brace
>
On 25/04/2018 03:01, Vojtěch Čihák via Lazarus 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....
--
_______________________________________________
Lazarus mailing list
***@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus <https://lists.lazarus-ide.org/listinfo/lazarus>
Martin Frb via Lazarus
2018-04-26 20:12:00 UTC
Permalink
On 26/04/2018 21:56, Vojtěch Čihák via Lazarus wrote:
>
> 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)
Loading...