Re: [Lazarus] CodeTools commands question

2018-06-19 Thread Ondrej Pokorny via Lazarus

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
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] CodeTools commands question

2018-06-19 Thread Martin Frb via Lazarus

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
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] CodeTools commands question

2018-06-19 Thread Ondrej Pokorny via Lazarus

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
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] CodeTools commands question

2018-06-19 Thread Vojtěch Čihák via Lazarus

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 
Komu: lazarus@lists.lazarus-ide.org
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  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
 
<http://wiki.lazarus.freepascal.org/IDE_Window:_Codetools_Options#Jumping_.28e.g._Method_Jumping.29>



Mattias
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] CodeTools commands question

2018-06-19 Thread Mattias Gaertner via Lazarus
On Tue, 19 Jun 2018 16:57:11 +0200
Vojtěch Čihák via Lazarus  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
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] CodeTools commands question

2018-06-19 Thread Vojtěch Čihák via Lazarus

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
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus