Hi:
Im checking for a function which will go to a node, as opposed to "select 
it".

*Reason:*


   - If I select a node with c.selectPosition(Node), the outline will go to 
   that node, and select it, but *my previous node will still be selected*
   
Checking:

*LeoPyRef.leo#Code-->Core classes-->@file leoCommands.py-->class 
commands-->Command handlers...-->Outline menu...-->Goto (Commands)*
*
*
There is no command that will go to a specific node, selecting it as an 
absolute node as oposed to just selecting it and leaving the rest selected.

My workaround is just to first deselect all selected positions then do the 
goto(Desired node):

for item in c.getSelectedPositions():

    c.selectPosition(item)

c.selectPosition(Node i want to go to)


But I would think that would be a good addition as a command and is as 
basic as any other current goto function. I also know its not so important 
but heck I wanted to post anyway just in case.


Cheers guys.

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to