On the subject of CTRL-clicking, Leo has a feature that is fantastic when 
you are cruising around in its source code trying to learn how something 
works.  If you CTRL-click on a method invocation, you will get transported 
to its definition.  It misses once in a while, but usually  works.

Here's an example you can walk through.  Open the LeoPyRef.leo outline 
(File/Open Specific Leo File).  This contains Leo's code base. In the tree 
view, select *Command Classes* and expand it, then select *@file 
../commands/checkerCommands.py * and expand that.  Expand class 
*MypyCommand* and select the *mypy.check_all* node.  In the body you will 
see self.check_file(fn).  Hmm, what does that do?  CNTL-click on it, and 
Leo will navigate to the *mypy.check_file* node.  In this case the node is 
right there in view anyway, but in other cases it could be somewhere else 
and you'd have trouble finding it.

You can navigate back to the starting point by clicking the back arrow 
button (twice in this case).

Leo is loaded with goodies like this but it can be hard to find out about 
them.
On Wednesday, March 23, 2022 at 10:45:27 AM UTC-4 [email protected] wrote:

> Oh, yes, and when you get a long listing in a tab like the commands 
> listing, you can select all the output with the usual CTRL-A and copy it 
> with the usual CTRL-C.  Then you can paste it somewhere that is more 
> readable, like a Leo node or a text editor.
>
> On Wednesday, March 23, 2022 at 10:41:05 AM UTC-4 [email protected] wrote:
>
>> On Wednesday, March 23, 2022 at 10:21:50 AM UTC-4 jkn wrote:
>>
>>> A couple of points from this interesting list:
>>>
>>> > - the minibuffer is inherited from emacs, and serves ... a yet to 
>>> discover number of functions
>>> Personally I think 'minibuffer' is an unhelpful name, it's just an 
>>> interface to allow you to enter commands to Leo. Type 'show-commands' in 
>>> the minibuffer and you should get a long list of available commands in the 
>>> log window.
>>>
>>
>> And in the latest changeset in the devel branch, there is 
>> *show-commands-with-docs,*  which shows the docstrings with the 
>> commands. Sometimes that can help understand what they do.
>>
>>>    
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/f3e72a96-ed68-4103-8797-71530b60bf4bn%40googlegroups.com.

Reply via email to