Re: Filing nodes in other outlines

2012-06-22 Thread Edward K. Ream
On Fri, Jun 22, 2012 at 3:09 PM, Kent Tenney wrote: > Update: > > All is well, focus stays put. Thanks to you and Terry for your confirmation that the fix works. Let me know if any problems arise later. Edward -- You received this message because you are subscribed to the Google Groups "leo-

Re: Filing nodes in other outlines

2012-06-22 Thread Kent Tenney
Update: All is well, focus stays put. Thanks, Kent On Thu, Jun 21, 2012 at 3:31 PM, Kent Tenney wrote: > On Thu, Jun 21, 2012 at 3:01 PM, Terry Brown wrote: >> On Thu, 21 Jun 2012 14:35:52 -0500 >> Kent Tenney wrote: >> >>> I think I want something like >>> > c.quickMove.to_other(unl, cut=Fal

Re: Filing nodes in other outlines

2012-06-22 Thread Terry Brown
On Fri, 22 Jun 2012 08:00:20 -0500 "Edward K. Ream" wrote: > > The proper, and easy, place to fix this is in c.outerUpdate. > [snip] > c.bringToFront should have an optional c param, specifying the desired > commander that is to be brought to the front. > > Done in the trunk at rev 5404. **Im

Re: Filing nodes in other outlines

2012-06-22 Thread Edward K. Ream
On Fri, Jun 22, 2012 at 7:46 AM, Edward K. Ream wrote: > The proper, and easy, place to fix this is in c.outerUpdate. [snip] c.bringToFront should have an optional c param, specifying the desired commander that is to be brought to the front. Done in the trunk at rev 5404. **Important**: the new

Re: Filing nodes in other outlines

2012-06-22 Thread Edward K. Ream
On Wed, Jun 20, 2012 at 11:27 AM, Terry Brown wrote: > Edward - this is deja vu, but when copying / moving from c1 to c2, > ending the code with c1.bringToFront() doesn't prevent c2 from being > the top tab after control returns to Leo.  The previous case was c1 > trying to keep focus, instead of

Re: Filing nodes in other outlines

2012-06-21 Thread Kent Tenney
On Thu, Jun 21, 2012 at 3:01 PM, Terry Brown wrote: > On Thu, 21 Jun 2012 14:35:52 -0500 > Kent Tenney wrote: > >> I think I want something like >> > c.quickMove.to_other(unl, cut=False, follow=False)  # copy > > If you want it via a call to c.quickMove.to_other(), as opposed to via > the quickMo

Re: Filing nodes in other outlines

2012-06-21 Thread Terry Brown
On Thu, 21 Jun 2012 14:35:52 -0500 Kent Tenney wrote: > I think I want something like > > c.quickMove.to_other(unl, cut=False, follow=False) # copy If you want it via a call to c.quickMove.to_other(), as opposed to via the quickMove context menu / settings, I bet you could add that yourself ;

Re: Filing nodes in other outlines

2012-06-21 Thread Kent Tenney
> I guess the complete list of possible post action foci would be > >  - Node that you operated on (or next node if it was a move) >  - Node after the node you operated on (the current *intended* behavior) >  - Destination node, the newly created one, possibly in another outline. > > But perhaps wi

Re: Filing nodes in other outlines

2012-06-21 Thread Terry Brown
On Thu, 21 Jun 2012 12:44:11 -0500 Terry Brown wrote: > so > > name = "GGL ToDo" > for i in g.app.db['_quickmove']['global_targets']: > if i['name'] == name: > unl = i['unl'] > break > c.quickMove.bookmark_other(unl) # bookmark > c.quickMove.to_other(unl, cut=False) # copy

Re: Filing nodes in other outlines

2012-06-21 Thread Terry Brown
On Thu, 21 Jun 2012 12:07:11 -0500 Kent Tenney wrote: > When I'm about to make major changes to a method, I copy the > node and edit the copy. Python doesn't care, the new version > replaces the old one. This provides easy fall-back, but can get > confusing when I end up editing in the old versio

Re: Filing nodes in other outlines

2012-06-21 Thread Kent Tenney
This is seriously cool stuff. Now, how to use it ... My first take is: I've created a file warehouse.leo which has nodes for various projects. I've been using this idiom: When I'm about to make major changes to a method, I copy the node and edit the copy. Python doesn't care, the new version repl

Re: Filing nodes in other outlines

2012-06-21 Thread Terry Brown
On Wed, 20 Jun 2012 11:27:45 -0500 Terry Brown wrote: > The tree view context menu Move submenu has had Copy/Move/Bookmark to > top of a different outline command for some time, but only to the top > of the other outline. You can now specify any node anywhere as a > destination for these operatio

Re: Filing nodes in other outlines

2012-06-20 Thread Ville M. Vainio
Exposing the zero timer callbacas something like g.later(myfunc) could make sense as well. On Wed, Jun 20, 2012 at 8:41 PM, Terry Brown wrote: > On Wed, 20 Jun 2012 17:27:21 + > Ville Vainio wrote: > >> Did it work w/ zero time timer? That wouldn’t be a hack... > > Thanks, didn't think to

RE: Filing nodes in other outlines

2012-06-20 Thread Ville Vainio
Did it work w/ zero time timer? That wouldn’t be a hack... Sent from my Windows 8 PC *From:* Terry Brown *Sent:* Wednesday, June 20, 2012 7:27:49 PM *To:* leo-editor@googlegroups.com *Subject:* Filing nodes in other outlines I've just pushed some