On Sat, 6 Feb 2016 11:00:38 -0800 (PST)
Richard Andersen <[email protected]> wrote:

[snip]

> ''' create a listing of all nodes which have icons '''
> 
> aList = [p.copy() for p in c.all_unique_positions() if 'lineYOffset'
> in p.u] #print('\n'.join([p.h for p in aList]))
> g.es_print('\n'.join([p.h for p in aList]))
> 
> ... because the nodes show up in the list produced by Script 3 and
> nothing I can do (including running the "delete Todo from all"
> function from within todo.py) is removing the data remnant.   I have
> checked to make sure that there are no Tags on the nodes either.

What you're doing makes sense, you're just tripping over a bit of cruft
in the code base.  Todo.py uses icons, but icons are separate, so
delete Todo isn't relevant.  The problem is that 

    c.editCommands.deleteNodeIcons(p=p)

doesn't clean up p.u as fully as it might:

insert an icon...

V {'icons': [{'file': 
u'/mnt/usr1/usr1/home/tbrown/t/Package/leo/git/leo-editor/leo/Icons/Tango/16x16/devices/battery.png',
            'on': 'VNode',
            'relPath': u'Tango/16x16/devices/battery.png',
            'type': 'file',
            'where': 'beforeHeadline',
            'xoffset': 2,
            'xpad': 1,
            'yoffset': 0}],
 'lineYOffset': 3}

delete all icons

V {'lineYOffset': 0}

c.editCommands.deleteNodeIcons(p=p) should delete both 'icons' *and*
'lineYOffset' from p.u, but it leaves that remnant.  If you'd tested
'icons' instead of 'lineYOffset', you'd have seen no problem.  I guess
it is setting it back to zero, but seeing that's the default / assumed,
deleting it would be cleaner, I'll make that change on trunk, but you
can just check 'icons' instead as a work around / avoidance.

Cheers -Terry [email protected]

> It's a puzzler for me -- probably a no-brainer for many others.   
> 
> -Richard
> 
> On Sunday, January 31, 2016 at 6:34:21 AM UTC-8, Terry Brown wrote:
> >
> > On Sat, 30 Jan 2016 18:18:17 -0600 
> > "Edward K. Ream" <[email protected] <javascript:>> wrote: 
> >
> > > On Sat, Jan 30, 2016 at 5:57 PM, Largo84 <[email protected]
> > > <javascript:>> 
> > wrote: 
> > > 
> > > I struggled w/ Git at first too, but found that Sourcetree 
> > > > <https://www.atlassian.com/software/sourcetree/overview/> made
> > > > it a lot easier for me. 
> >
> > GitHub has recently (< 6 months?) released a "GitHub desktop" 
> > https://desktop.github.com/ 
> > app. which seems ok, I usually use the command-line (or gitk for 
> > review). But the desktop app. might help some. 
> >
> > Cheers -Terry 
> >
> > > ​I too started with SourceTree.  Alas, it has severe performance 
> > > problems. Imo, its best feature is gui-oriented selective adding.
> > > You can do something similar on the command line with git add -p,
> > > but I never have. 
> > > 
> > > I finally got fed up with the performance problems (and small
> > > fonts, which they refused to fix) and switched to gitk.  Works
> > > fine for routine tasks. ​ 
> > > 
> > > > I still don't really 'get Git', but I'm using it nonetheless.
> > > > For pull requests only, it's pretty simple. 
> > > 
> > > ​Yes, me too. 
> > > 
> > > Edward 

-- 
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 https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to