Adding a new file extension?

2009-06-02 Thread ljth...@gmail.com
How do I tell Leo that, say, a .hpp file is C++? Leo is writing out the '#--unknown-language--' comment delimiters in my .hpp file and getting them right in the .cpp file. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Adding a new file extension?

2009-06-02 Thread James A. Donald
ljth...@gmail.com wrote: How do I tell Leo that, say, a .hpp file is C++? Leo is writing out the '#--unknown-language--' comment delimiters in my .hpp file and getting them right in the .cpp file. @thin somefile.hpp @language c++ @tabwidth -4 @others

Adding new files into a leo file.

2009-06-02 Thread James A. Donald
When I want to bring a new file into a leo project I use the following convoluted procedure: /Outline/Insert child Then I change the name of the child node to @auto existingfile Then I select the child, then I /File/readwrite/Read auto nodes Which for some reason only reads the node

Re: Any more urgent or annoying bugs?

2009-06-02 Thread jkn
A couple of things which probably don't fall into the 'urgent or annoying category', but nevertheless ... - I've just done a full 'bzr checkout' and got revno 1990. But 'Help | about Leo' still shows Leo 4.6 Beta 1, build 1.244, March 24, 2009'. It would help bug reports etc. if this was

Re: Any more urgent or annoying bugs?

2009-06-02 Thread Edward K. Ream
On Tue, Jun 2, 2009 at 4:57 AM, jkn jkn...@nicorp.f9.co.uk wrote: A couple of things which probably don't fall into the 'urgent or annoying category', but nevertheless ... - I've just done a full 'bzr checkout' and got revno 1990. But 'Help | about Leo' still shows Leo 4.6 Beta 1, build

Re: Adding new files into a leo file.

2009-06-02 Thread Edward K. Ream
On Tue, Jun 2, 2009 at 3:27 AM, James A. Donald jam...@echeque.com wrote: When I want to bring a new file into a leo project I use the following convoluted procedure: /Outline/Insert child Then I change the name of the child node to @auto existingfile Then I select the child, then I

Re: Adding new files into a leo file.

2009-06-02 Thread Ville M. Vainio
On Tue, Jun 2, 2009 at 4:31 PM, Edward K. Ream edream...@gmail.com wrote: Is there a better and safer way? Yes.  Just create an empty @auto node.  Save the .leo file, then reload it. It's arguable whether reopening the .leo file is a better way... One thing that might be of interest here is

Re: Any more urgent or annoying bugs?

2009-06-02 Thread jkn
On Jun 2, 2:25 pm, Edward K. Ream edream...@gmail.com wrote: [...] I use the following settings (in myLeoSettings.leo) to switch colors in the body pane depending on focus: @string selected-background-color = #fdf5f5 A kind of pink, for when the body has focus @string

Re: Adding a new file extension?

2009-06-02 Thread Lucas Thode
Hmmm...I have an '@language cplusplus' above my @shadow nodes (I am using the threading_colorizer btw). Is there some way to tell Leo that all files of a given extension are a given type or to tell it to use the inherited @language setting? On Tue, Jun 2, 2009 at 3:13 AM, James A. Donald

Re: Adding new files into a leo file.

2009-06-02 Thread Kent Tenney
On Tue, Jun 2, 2009 at 8:41 AM, Ville M. Vainio vivai...@gmail.com wrote: On Tue, Jun 2, 2009 at 4:31 PM, Edward K. Ream edream...@gmail.com wrote: Is there a better and safer way? Yes.  Just create an empty @auto node.  Save the .leo file, then reload it. It's arguable whether reopening

Re: A programming puzzle re decorators

2009-06-02 Thread Ville M. Vainio
On Mon, Jun 1, 2009 at 5:44 PM, Edward K. Ream edream...@gmail.com wrote: I notice that executing the example script doesn't make the command available to the present commander.  It would be nice to fix that. Done in trunk. I also added g.app.commanders() which returns a list of commanders

Re: Adding new files into a leo file.

2009-06-02 Thread Ville M. Vainio
On Tue, Jun 2, 2009 at 6:44 PM, Kent Tenney kten...@gmail.com wrote: I have been using Leo as 'command central' for my work, organizing files I work with by placing them in @auto or @edit nodes. I really like this system, however it doesn't scale well, as the number of @file nodes increases,

Massive(?) refactoring idea - tree segments as json objects?

2009-06-02 Thread Ville M. Vainio
Often, it' useful to decouple node creation from data processing. Case in point is the read code the hash based speedup scheme I described (and referred to again in previous thread!) (for every instance of 'json' below, you can substitute hierarchical python object. I'm thinking of json because

Re: Massive(?) refactoring idea - tree segments as json objects?

2009-06-02 Thread Ville M. Vainio
On Tue, Jun 2, 2009 at 8:09 PM, Ville M. Vainio vivai...@gmail.com wrote: python object. I'm thinking of json because of interoperability human-readablity of json vs. pickle). Fringe idea: using json for uAs in .leo files for the same readability reason. Please don't get stuck with this

Re: Adding a new file extension?

2009-06-02 Thread Edward K. Ream
On Tue, Jun 2, 2009 at 10:35 AM, Lucas Thode ljth...@gmail.com wrote: Is there some way to tell Leo that all files of a given extension are a given type or to tell it to use the inherited @language setting? Yes. Edit the tables in Code--Core classes--@thin leoApp.py--app.__init__-- define

Re: Any more urgent or annoying bugs?

2009-06-02 Thread Edward K. Ream
On Tue, Jun 2, 2009 at 10:33 AM, jkn jkn...@nicorp.f9.co.uk wrote: I use the following settings (in myLeoSettings.leo) to switch colors in the body pane depending on focus: @string selected-background-color = #fdf5f5 A kind of pink, for when the body has focus @string

Re: Massive(?) refactoring idea - tree segments as json objects?

2009-06-02 Thread Edward K. Ream
On Tue, Jun 2, 2009 at 12:09 PM, Ville M. Vainio vivai...@gmail.com wrote: Often, it' useful to decouple node creation from data processing. Case in point is the read code the hash based speedup scheme I described (and referred to again in previous thread!) Thanks for these thoughts,