Re: Footnote tooltips (an attempt)

2022-02-24 Thread Juan Manuel Macías
John Kitchin writes: > that is a nice solution. I probably should have read the docstring on > org-footnote-get-definition a little more closely, it has the > definition you need in it! Well, it's a minor detail. The really brilliant thing here is your idea of passing the function as a help-echo

Re: Footnote tooltips (an attempt)

2022-02-24 Thread John Kitchin
that is a nice solution. I probably should have read the docstring on org-footnote-get-definition a little more closely, it has the definition you need in it! John --- John Kitchin (he/his) Professor Doherty Hall A207F Department of Chemical Engineering Carnegie M

Re: Footnote tooltips (an attempt)

2022-02-23 Thread Juan Manuel Macías
Hi John, John Kitchin writes: > I think this might be a simpler approach. what you want (I think) is > to leverage font-lock on tooltips to set a help-echo function instead > of a string. You can override org-activate-footnote-links with an > advice (which makes it easy to undo of you need). The

Re: Footnote tooltips (an attempt)

2022-02-23 Thread John Kitchin
I think this might be a simpler approach. what you want (I think) is to leverage font-lock on tooltips to set a help-echo function instead of a string. You can override org-activate-footnote-links with an advice (which makes it easy to undo of you need). The tooltip function then looks up the toolt

Re: Footnote tooltips (an attempt)

2022-02-23 Thread Juan Manuel Macías
Hi Samuel, Samuel Wales writes: > what a great idea. i am interested in your comments. emacs has lots > of tooltip-related features. eldoc, help-at-pt, mouse-avoidance, etc. > you don't want tooltips when your mouse happens to end up over. or > for your mouse to go haywire just because you en

Re: Footnote tooltips (an attempt)

2022-02-22 Thread Juan Manuel Macías
Ypo writes: > I love it! > I am going to read your code, Juan Manuel, I won't understand anything > but that function is very interesting for me, since it could be used > too with internal links, I suppose. Org links already have tooltips out of the box. You can also display the tooltip in the ec

Footnote tooltips (an attempt)

2022-02-22 Thread Ypo
I love it! I am going to read your code, Juan Manuel, I won't understand anything but that function is very interesting for me, since it could be used too with internal links, I suppose. Thanks

Re: Footnote tooltips (an attempt)

2022-02-22 Thread Juan Manuel Macías
I answer myself to comment a couple more things on this question of footnotes and tooltips. I think my approach is quite poor, and also when it comes to files with many notes, it takes a long time to create or update the list of tooltips. So I think I'll give up on' footnote tooltips. If what it is

Footnote tooltips (an attempt)

2022-02-21 Thread Juan Manuel Macías
Hi all, I think sometimes it would be nice to have tooltips in the footnote references, so I can see the contents of each footnote definition, especially when I'm in a narrowed subtree; so I've tried to write some code. I have achieved a "semi-automatic" solution. It doesn't work bad at all, but I