mini update and leoBridge Newbie question

27 views
Skip to first unread message

Félix

unread,
Jan 22, 2020, 7:07:15 PM1/22/20
to leo-editor
(mini update for those following this vscode extension : Still working on leo integration into vscode I'm currently re-doing the clone/insert/delete functions to my satisfaction for the 3rd time before making a release to the master branch hopefully in jannuary!)

I'm thinking ahead and I'm going to want to replicate the log pane at the bottom. (already created the pane I need to fill it up now :) 

 How would I go about interecepting entries to the log pane in leobridge? ( https://leoeditor.com/leoBridge.html ) 

Thanks in advance to any contributors of this forums for any insights into this matter! :)
--
Félix


Edward K. Ream

unread,
Jan 23, 2020, 10:55:23 AM1/23/20
to leo-editor
On Wed, Jan 22, 2020 at 7:07 PM Félix <felix...@gmail.com> wrote:
(mini update for those following this vscode extension : Still working on leo integration into vscode I'm currently re-doing the clone/insert/delete functions to my satisfaction for the 3rd time before making a release to the master branch hopefully in jannuary!)

That's good news.

> How would I go about intercepting entries to the log pane in leobridge?

The g.es function in leoGlobals.py writes to the log pane. In the end, it writes to app.log.

You will probably have to set up app.log so it writes to your log.

Aside: g.es has accumulated a lot of cruft. It might be best to start with the simpler version in leoAst.py. To do that, you would likely have to monkey-patch g.es.

HTH. Please feel free to ask more questions.

Edward
Reply all
Reply to author
Forward
0 new messages