Figured it out myself, made it work with this code (trying to set the
'selected' property of 'w_ap' if p is the currently selected node):
if p == commander.p:
w_ap['selected'] = True
Latest version of leoInteg implements the 'getParent' method which is a
requirement in vscode to have the powerful 'reveal' functionality in the
tree. I try it out in the public test() method, with the 'getSelectedNode'
function.
I've yet to implement body/outline editing and manipulation having any
effect on leo's side of things, but I think its going to be trivial once
this basic 2 way communication and gui rendering is more fleshed out.
On Friday, September 13, 2019 at 1:26:18 PM UTC-4, Robert Cholette wrote:
>
> while developping the leo-Integration plugin for vsCode, the only one
> thing that did not work from leoBridge is "p.isSelected()" as I'm trying
> to set the right selected node upon opening a leo file in the plugin i'm
> developing in vscode. is this the right function for that? or should i just
> compare each node to c.p to check if it's the currently selected node?)
>
> Thanks!
> --
> Félix
>
>
--
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/a1f00d80-f7a5-4000-8751-8a335b925d2c%40googlegroups.com.