Re: Advices for a leo cub - Want to turn Leo into basic Sphinx editor

2014-11-12 Thread Kent Tenney
Sounds like you are describing a DSE, Domain Specific Editor, which would be customized for the requirements of a framework such as Sphinx or Django. A myLeoSettings.leo file would contain buttons, menus, commands, bindings etc. specific to the project. Not too simple, not feature overwhelming, ju

Re: Advices for a leo cub - Want to turn Leo into basic Sphinx editor

2014-11-12 Thread Matt Wilkie
> I think I had a look at every c submodules... So stupid I am ! heheh. But look how smart you are now, you've seen it, and a whole new world opened up. :) I'm striving to look for those "Doh!" moments as often as possible. Bring 'em on! It means I'm learning. (It wasn't always that way, I used

Re: Advices for a leo cub - Want to turn Leo into basic Sphinx editor

2014-11-11 Thread Davy Cottet
Really ? g.es(c) ! :D I think I had a look at every c submodules... So stupid I am ! Thanks for that ! -- 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 leo-editor+

Re: Advices for a leo cub - Want to turn Leo into basic Sphinx editor

2014-11-11 Thread Matt Wilkie
On Tue, Nov 11, 2014 at 7:56 PM, Davy Cottet wrote: > PS : a very practical question to finish : which Leo command return the > path of the currently opened .leo project ? It's very complicated: c :)From the scripting page : - c is the co

Re: Advices for a leo cub - Want to turn Leo into basic Sphinx editor

2014-11-11 Thread 'Terry Brown' via leo-editor
On Tue, 11 Nov 2014 19:56:24 -0800 (PST) Davy Cottet wrote: > - From Kent & Thierry exchanges, I deduce that converting a leo tree > structure to a folder/file structure is not as trivial as I > thought... If I understand well, active-path.py does only the other > way ? Are'nt @file & @auto able

Re: Advices for a leo cub - Want to turn Leo into basic Sphinx editor

2014-11-11 Thread Davy Cottet
Thanks every one for your contribution to this subject. I have to accept that I got a bit lost on the discussion about databases ;)... anyway, i got a lot of useful informations there. - @Edward : *"At present, Leo's core rst related code is, of course, based on reStructuredText, not sphinx.

Re: Advices for a leo cub - Want to turn Leo into basic Sphinx editor

2014-11-10 Thread Edward K. Ream
On Mon, Nov 10, 2014 at 3:12 PM, 'Terry Brown' via leo-editor < leo-editor@googlegroups.com> wrote: > > I am currently studying Database and XML standards history among other > > things, (which never did before) and I realized that Leo database > > structure is not the most modern one. > ​Now fo

Re: Advices for a leo cub - Want to turn Leo into basic Sphinx editor

2014-11-10 Thread Fidel N
Thank you Terry, those posts go to my "To-study" list for when I finish the exam :D On Mon, Nov 10, 2014 at 10:27 PM, 'Terry Brown' via leo-editor < leo-editor@googlegroups.com> wrote: > On Mon, 10 Nov 2014 15:12:15 -0600 > "'Terry Brown' via leo-editor" wrote: > > > It's pretty trivial to trans

Re: Advices for a leo cub - Want to turn Leo into basic Sphinx editor

2014-11-10 Thread 'Terry Brown' via leo-editor
On Mon, 10 Nov 2014 15:12:15 -0600 "'Terry Brown' via leo-editor" wrote: > It's pretty trivial to translate Leo's data structure to these tables, So just for amusement, here's some code that does that: import sqlite3 con = sqlite3.connect(":memory:") cur = con.cursor() cur.execute("create table

Re: Advices for a leo cub - Want to turn Leo into basic Sphinx editor

2014-11-10 Thread 'Terry Brown' via leo-editor
On Mon, 10 Nov 2014 21:34:27 +0100 Fidel N wrote: > > > > Leo scripts are attractive because they have such easy access to > > both outline data *and* its structure. This suggest "driving" the > > script from the outline data, which is really what the rst3 command > > does. Perhaps you can devi

Re: Advices for a leo cub - Want to turn Leo into basic Sphinx editor

2014-11-10 Thread Fidel N
> > Leo scripts are attractive because they have such easy access to both > outline data *and* its structure. This suggest "driving" the script from > the outline data, which is really what the rst3 command does. Perhaps you > can devise a simpler way to drive the script from outline data.. I a

Re: Advices for a leo cub - Want to turn Leo into basic Sphinx editor

2014-11-10 Thread Kent Tenney
I was wondering if there exists a syntax to describe a tree structure in a node, like: #headline @tree myproject #body @auto index.html @path style @auto main.css @auto simple.css @path js @auto model.js @auto view.js @auto controller.js ... such that an rclick on @tree,

Re: Advices for a leo cub - Want to turn Leo into basic Sphinx editor

2014-11-10 Thread Edward K. Ream
On Mon, Nov 10, 2014 at 12:34 PM, Fidel N wrote: I have been trying to define tree-structures-templates ever since I got > into Leo. Always trying to create useful-for-more-than-myself templates. > But the problem is what Terry just said, I often found it very difficult > to find the "sweet spot"

Re: Advices for a leo cub - Want to turn Leo into basic Sphinx editor

2014-11-10 Thread Fidel N
I have been trying to define tree-structures-templates ever since I got into Leo. Always trying to create useful-for-more-than-myself templates. But the problem is what Terry just said, I often found it very difficult to find the "sweet spot", in which they are easy to document and understand, and

Re: Advices for a leo cub - Want to turn Leo into basic Sphinx editor

2014-11-10 Thread 'Terry Brown' via leo-editor
On Mon, 10 Nov 2014 08:01:36 -0600 Kent Tenney wrote: > Does Leo currently offer the ability to define a tree > structure template? I seem to recall this. > > Such that the great idea above wouldn't require a .leo file > but could live in a @tree node (or some such) Rings a very vague bell for

Re: Advices for a leo cub - Want to turn Leo into basic Sphinx editor

2014-11-10 Thread Kent Tenney
Does Leo currently offer the ability to define a tree structure template? I seem to recall this. Such that the great idea above wouldn't require a .leo file but could live in a @tree node (or some such) On Mon, Nov 10, 2014 at 7:05 AM, Edward K. Ream wrote: > On Sun, Nov 9, 2014 at 11:56 AM, Dav

Re: Advices for a leo cub - Want to turn Leo into basic Sphinx editor

2014-11-10 Thread Edward K. Ream
On Sun, Nov 9, 2014 at 11:56 AM, Davy Cottet wrote: ​> ​ My idea ​ [is] to turn Leo complexity to the most simple but complete Sphinx editor. That's a great idea. Leo's rst commands do indeed have way too many hidden features. Maybe the set of features used by all of Leo's features is a largis

Advices for a leo cub - Want to turn Leo into basic Sphinx editor

2014-11-09 Thread Davy Cottet
Hi, I'm starting python programming for few months and just beginning to use Leo. I first got attracted by Leo for its way to handle ReST documents structure (just perfect!) and live preview. Then, I was quite disturb and very surprised by its level of complexity, (so many "hidden" implemented