[Lazarus] CodeTools commands question

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] CodeTools commands question

vojtech.cihak

Hi,

 

is there a CodeTool command that can take me directly to procedure/method implementation?

 

Example:

 

function TTreeNode.GetTop: integer;

begin

  if TreeView <> nil then

    TreeView.UpdateAllTops|;  //<-- caret is HERE

  Result := FTop;

end;  

 

by default, Ctrl+Shift+Up and Ctrl+Shift+Down jump between declaration and implementation of TTreeNode.GetTop;

Alt+Up takes me to declaration of TTreeNode.UpdateAllTops; and Ctrl+Shift+Up/Down takes me to its implementation.

 

I'm looking for a way to get to implementation of UpdateAllTops directly ( Alt+Down would be nice ).

 

Thank you,

 

V.


--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] CodeTools commands question

Free Pascal - Lazarus mailing list
On Tue, 19 Jun 2018 16:57:11 +0200
Vojtěch Čihák via Lazarus <[hidden email]> wrote:

>[...] Hi,
>  
> is there a CodeTool command that can take me directly to procedure/method implementation?
>  
> Example:
>  
> function TTreeNode.GetTop: integer;
> begin
>   if TreeView <> nil then
>     TreeView.UpdateAllTops|;  //<-- caret is HERE
>   Result := FTop;
> end;  
>  
> by default, Ctrl+Shift+Up and Ctrl+Shift+Down jump between declaration and implementation of TTreeNode.GetTop;
> Alt+Up takes me to declaration of TTreeNode.UpdateAllTops; and Ctrl+Shift+Up/Down takes me to its implementation.
>  
> I'm looking for a way to get to implementation of UpdateAllTops directly ( Alt+Down would be nice ).

Maybe this option helps: "Jump directly to method body"

http://wiki.lazarus.freepascal.org/IDE_Window:_Codetools_Options#Jumping_.28e.g._Method_Jumping.29



Mattias
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] CodeTools commands question

vojtech.cihak
In reply to this post by vojtech.cihak

Thanks, it works.

 

Still, it would be nice to have two separate actions for this, Alt+Up and At+Down.

 

V.

______________________________________________________________
> Od: Mattias Gaertner via Lazarus <[hidden email]>
> Komu: [hidden email]
> Datum: 19.06.2018 17:05
> Předmět: Re: [Lazarus] CodeTools commands question
>

On Tue, 19 Jun 2018 16:57:11 +0200
Vojtěch Čihák via Lazarus <[hidden email]> wrote:

Maybe this option helps: "Jump directly to method body"

http://wiki.lazarus.freepascal.org/IDE_Window:_Codetools_Options#Jumping_.28e.g._Method_Jumping.29



Mattias
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus

--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] CodeTools commands question

Free Pascal - Lazarus mailing list
On 19.06.2018 19:22, Vojtěch Čihák via Lazarus wrote:
> Still, it would be nice to have two separate actions for this, Alt+Up
> and At+Down.

I agree. But there is one problem: what to do with Ctrl+Click? AFAIK
Lazarus IDE cannot change mouse mappings, only key mappings. Or am I wrong?

Ondrej
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] CodeTools commands question

Free Pascal - Lazarus mailing list
On 19/06/2018 19:26, Ondrej Pokorny via Lazarus wrote:
> On 19.06.2018 19:22, Vojtěch Čihák via Lazarus wrote:
>> Still, it would be nice to have two separate actions for this, Alt+Up
>> and At+Down.
>
> I agree. But there is one problem: what to do with Ctrl+Click? AFAIK
> Lazarus IDE cannot change mouse mappings, only key mappings. Or am I
> wrong?
>
> Ondrej
There is a whole config for the mouse.

If we have the action, we can add it to the choice of things that can be
assigned to mouse buttons.
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] CodeTools commands question

Free Pascal - Lazarus mailing list
On 19.06.2018 19:42, Martin Frb via Lazarus wrote:

> On 19/06/2018 19:26, Ondrej Pokorny via Lazarus wrote:
>> On 19.06.2018 19:22, Vojtěch Čihák via Lazarus wrote:
>>> Still, it would be nice to have two separate actions for this,
>>> Alt+Up and At+Down.
>>
>> I agree. But there is one problem: what to do with Ctrl+Click? AFAIK
>> Lazarus IDE cannot change mouse mappings, only key mappings. Or am I
>> wrong?
> There is a whole config for the mouse.
>
> If we have the action, we can add it to the choice of things that can
> be assigned to mouse buttons.


Great, I forgot about it. Then - what myself concerns - the option can
be deleted and the command can be split into two:
1.) find declaration
2.) find declaration & jump to implementation

Btw. the mouse command is named "jump to implementation", which is wrong.

Ondrej

--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus