Re: New html import code on the trunk

2011-11-11 Thread Seth Johnson
On Fri, Nov 11, 2011 at 10:41 PM, Terry Brown wrote: > On Fri, 11 Nov 2011 18:05:43 -0500 > Seth Johnson wrote: > >> Has anybody done a FreeMind import?  Or is there a good place for me >> to look if I want to at least contemplate hacking such a thing? >> FreeMind files are XML. > > I made some s

Re: UPDATE: bookmarks.py, open containing directory

2011-11-11 Thread Brian Theado
On Fri, Nov 11, 2011 at 2:04 PM, Terry Brown wrote: > The bookmarks_show command adds a pane of bookmarks as shown in the > attached. [...] When I run this command from trunk I got a traceback: Traceback (most recent call last): File "C:\Users\btheado\apps\leo-editor-trunk\leo\plugins\qtGui.py

Re: New html import code on the trunk

2011-11-11 Thread Terry Brown
On Fri, 11 Nov 2011 18:05:43 -0500 Seth Johnson wrote: > Has anybody done a FreeMind import? Or is there a good place for me > to look if I want to at least contemplate hacking such a thing? > FreeMind files are XML. I made some standalone one time import tools years ago when I switched to Leo.

Re: New html import code on the trunk

2011-11-11 Thread Seth Johnson
Okay, thanks! Now I know where to look. No promises I will actually get into it though. I'll comment if/when I look at it. Seth On Fri, Nov 11, 2011 at 6:30 PM, Edward K. Ream wrote: > On Fri, Nov 11, 2011 at 5:05 PM, Seth Johnson > wrote: >> Has anybody done a FreeMind import? > > Not to m

Re: BZR memory

2011-11-11 Thread Edward K. Ream
On Fri, Nov 11, 2011 at 11:03 AM, Ville M. Vainio wrote: > Most importantly, you need to be familiar with the tools before thinking of > shifting. it would make sense to play with some dummy projects first. I agree. I am in no rush. Edward -- You received this message because you are subscrib

Re: New html import code on the trunk

2011-11-11 Thread Edward K. Ream
On Fri, Nov 11, 2011 at 5:05 PM, Seth Johnson wrote: > Has anybody done a FreeMind import? Not to my knowledge. > Or is there a good place for me to look if I want to at least contemplate > hacking such a thing? Look in leoPy.leo:: @file leoImport.py--><< how to write a new importer >> S

Re: New html import code on the trunk

2011-11-11 Thread Seth Johnson
Has anybody done a FreeMind import? Or is there a good place for me to look if I want to at least contemplate hacking such a thing? FreeMind files are XML. Seth On Fri, Nov 11, 2011 at 4:49 PM, Edward K. Ream wrote: > The code at rev 4776 imports the infamous data.html file correctly. > All un

Re: How to switch file tab base key bindings in Leo 4.9?

2011-11-11 Thread Edward K. Ream
On Fri, Nov 11, 2011 at 9:59 AM, Zoom.Quiet wrote: > so there is tab-cycle-pre ? It's time you learned about Leo's tab completion for commands. That's the easy way to discover answers for yourself. Do cycle- You will see: cycle-all-focus  all:  cycle-editor-focus 
cycle-focus

New html import code on the trunk

2011-11-11 Thread Edward K. Ream
The code at rev 4776 imports the infamous data.html file correctly. All unit tests pass, but there is the potential for unintended consequences. As always, please report any problems immediately. I have been using a private unit test as the test harness: It is in leoPy.leo:: leoPy.leo#Unit

Re: Any leo plugin that can import HTML code into a tree?

2011-11-11 Thread Edward K. Ream
On Fri, Nov 11, 2011 at 9:37 AM, Edward K. Ream wrote: > After a pleasant hour or so of "distilling", here is the essence of > the problems contained in data.html, imo:: Lots of progress this morning. skipToMatchingTag is now much simpler. However, the following (bizarre) code causes a real im

Re: BZR memory

2011-11-11 Thread Ville M. Vainio
Most importantly, you need to be familiar with the tools before thinking of shifting. it would make sense to play with some dummy projects first. On Nov 11, 2011 3:15 PM, "Edward K. Ream" wrote: > On Thu, Nov 10, 2011 at 1:53 PM, Ville M. Vainio > wrote: > > > The thing to do now would probably

Re: how to setup find pane font?

2011-11-11 Thread Zoom.Quiet
2011/11/11 Zoom.Quiet : > as atta. snaps: > - as default pane size,font in find pane can not display well > - unless drag up find pane make all words display... fixed auto in leo-editor-snapshot-20110253 ;-) >- but font in pane is not same as others, it look like bigger >- and the new

Re: How to switch file tab base key bindings in Leo 4.9?

2011-11-11 Thread Zoom.Quiet
2011/11/11 Edward K. Ream : > On Fri, Nov 11, 2011 at 8:38 AM, HaveF wrote: > >>> > By default, Ctrl-tab is bound to tab-cycle-next. > >>> sorry that not working, >>> check default leoSettings.leo there is: >>> >>> cycle-focus = Ctrl-tab > > Oops. When I looked at the outp

Re: BZR memory

2011-11-11 Thread ne1uno
a no cost alternative would be to update sourceforge with all the history, then convert to hg. though, like bzr, once something gets into the repo it tends to stick. by starting a google code project, an import from another repo could be used to start hg with full history. bitbucket can be excruci

Re: Any leo plugin that can import HTML code into a tree?

2011-11-11 Thread Edward K. Ream
On Nov 11, 9:37 am, "Edward K. Ream" wrote: > This improperly nested and terminated tags are going to be quite a > trick for skipToMatchingTag to handle so as not to disrupt the proper > nesting of the imported Leo nodes. There is an additional complication. The nodes that Leo generates depends

Re: Any leo plugin that can import HTML code into a tree?

2011-11-11 Thread Edward K. Ream
On Nov 11, 7:12 am, "Edward K. Ream" wrote: > data.html is contains many "challenging" features.  In this regard, it is a > good test.  But it is a bad *unit* test, because the challenges are hidden in > a lot of cruft. After a pleasant hour or so of "distilling", here is the essence of the pr

Re: How to switch file tab base key bindings in Leo 4.9?

2011-11-11 Thread Edward K. Ream
On Fri, Nov 11, 2011 at 8:38 AM, HaveF wrote: >> > By default, Ctrl-tab is bound to tab-cycle-next. >> sorry that not working, >> check default leoSettings.leo there is: >> >> cycle-focus                         = Ctrl-tab Oops. When I looked at the output of the print-bindings command, I didn

Re: How to switch file tab base key bindings in Leo 4.9?

2011-11-11 Thread HaveF
2011/11/11 Zoom.Quiet > 2011/11/11 Edward K. Ream : > > On Fri, Nov 11, 2011 at 3:06 AM, Zoom.Quiet > wrote: > >> My env: > >>Leo 4.9 rc1, build 4399, June 17, 2011 > >>Python 2.6.5, qt version 4.6.2 > >>Ubuntu 10.04.2 > >> so as atta. > >> - when i open some files > >> - what shortc

Re: How to switch file tab base key bindings in Leo 4.9?

2011-11-11 Thread Zoom.Quiet
2011/11/11 Edward K. Ream : > On Fri, Nov 11, 2011 at 3:06 AM, Zoom.Quiet wrote: >> My env: >>Leo 4.9 rc1, build 4399, June 17, 2011 >>Python 2.6.5, qt version 4.6.2 >>Ubuntu 10.04.2 >> so as atta. >> - when i open some files >> - what shortcuts to jump difference files? >>- like i

Re: BZR memory

2011-11-11 Thread Edward K. Ream
On Thu, Nov 10, 2011 at 1:53 PM, Ville M. Vainio wrote: > The thing to do now would probably be for Edward to play around with > hg/git/both, and make the call. I could obviously help with the > repository migration, if a change is deemed necessary / useful. Thanks for all your comments. I'll d

Re: Any leo plugin that can import HTML code into a tree?

2011-11-11 Thread Edward K. Ream
On Thu, Nov 10, 2011 at 9:07 PM, Edward K. Ream wrote: > skipToMatchingTag should do a better job of error recovery. Further testing revealed some glaring problems with html parsing. A few simple unit tests will fix them. skipToMatchingTag will require some "design" unit tests, that will speci

Re: delete-editor crashes Python

2011-11-11 Thread Edward K. Ream
On Fri, Nov 11, 2011 at 6:38 AM, Morgul wrote: > Hi all. > > I've found a problem with delete-editor command. It seems to crash > Python (and so Leo closes, without saving the modifications or > anything) when I try to close an editor for the third time during an > execution of the editor. Thanks

Re: How to switch file tab base key bindings in Leo 4.9?

2011-11-11 Thread Edward K. Ream
On Fri, Nov 11, 2011 at 3:06 AM, Zoom.Quiet wrote: > My env: >    Leo 4.9 rc1, build 4399, June 17, 2011 >    Python 2.6.5, qt version 4.6.2 >    Ubuntu 10.04.2 > so as atta. > - when i open some files > - what shortcuts to jump difference files? >    - like in gedit usage Alt+3 goto the 3rd opend

delete-editor crashes Python

2011-11-11 Thread Morgul
Hi all. I've found a problem with delete-editor command. It seems to crash Python (and so Leo closes, without saving the modifications or anything) when I try to close an editor for the third time during an execution of the editor. Steps to reproduce: 1. Open a .leo file with some content in it.