What to do when outline's text is not visible in tree pane?

84 views
Skip to first unread message

gar

unread,
Aug 28, 2019, 12:40:56 AM8/28/19
to leo-editor
Tree pane with outline has some finite width. And outline text may exceed this width so that only some part of the text is only visible at the moment.
Other tools/editors usually show popup/balloon with full text when mouse hovers over such a node. And this helps significantly.
But Leo user has to resize the whole pane to see the text - and even that may be not enough.
Selecting the node may help since status line tries to display the text - but it may be not enough too.
Then the only way to see what's in there is to copy the text and paste it to somewhere what can fit it all.

Is there any way to see the whole text of the outline in the case it is hidden cause of small pane's width 
- *not* selecting the node
- *not* resizing the pane
- *not* copying the text in the clipboard and pasting it to text editor (in the worst cases with really long lines like paths etc)
?

Chris George

unread,
Aug 28, 2019, 11:15:27 AM8/28/19
to leo-editor
At one point I spent a couple of hours trying to figure out how to add a tooltip to a headline.

My poor python skills were simply not up to the task.

Chris

--
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 leo-editor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/877a5a3d-00a4-48ed-a28f-15e37c4f021b%40googlegroups.com.

gar

unread,
Aug 29, 2019, 1:22:00 AM8/29/19
to leo-e...@googlegroups.com
same with me.
looks like there's no way to do it easy.
>> <https://groups.google.com/d/msgid/leo-editor/877a5a3d-00a4-48ed-a28f-15e37c4f021b%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
> --
> 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 leo-editor+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/leo-editor/CADWQas1McbHAYJCfFqbg2K3Sm-WzRf5BMHk8GZqXACiYgGxxwQ%40mail.gmail.com.
>

Chris George

unread,
Aug 29, 2019, 8:34:54 AM8/29/19
to leo-editor
Example tooltips can be found in nav_qt.py (plugin) and in LeoPy.leo somewhere around the LeoTabbedTopLevel code, if I recall correctly.

Bolting those examples onto headlines is another matter. I spent a lot of time trying things and then "git stash" to restore functioning code.

Chris
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/leo-editor/877a5a3d-00a4-48ed-a28f-15e37c4f021b%40googlegroups.com
>> <https://groups.google.com/d/msgid/leo-editor/877a5a3d-00a4-48ed-a28f-15e37c4f021b%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
> --
> 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

Edward K. Ream

unread,
Aug 30, 2019, 9:53:30 AM8/30/19
to leo-editor
On Tue, Aug 27, 2019 at 11:40 PM gar <gar...@gmail.com> wrote:
Tree pane with outline has some finite width. And outline text may exceed this width so that only some part of the text is only visible at the moment.

I've just created #1310 for this.

Anyone want to work on this?

Edward

Chris George

unread,
Aug 30, 2019, 9:57:54 AM8/30/19
to leo-editor
I will have another go. I will be asking questions this time. :-)

Chris

--
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 leo-editor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/CAMF8tS1cDjja7hY%2BQw3-9tbcfiDDQf-%2BfE_j%2BrNMMQOvPnVutg%40mail.gmail.com.

Edward K. Ream

unread,
Aug 30, 2019, 10:56:47 AM8/30/19
to leo-editor
On Friday, August 30, 2019 at 8:57:54 AM UTC-5, Chris George wrote:

I will have another go. I will be asking questions this time. :-)

Thanks!  The place to look is likely qtree.createTreeItem.

Edward
Reply all
Reply to author
Forward
0 new messages