On Mon, 6 May 2013 00:58:25 -0700 (PDT)
Fidel Pérez <[email protected]> wrote:

> Thank you Terry, that is exactly what I would like meant.
> 
> Is there a website where abbreviation files are shared so newcomers can 
> quickly being to use advanced abbreviations?
> Id love to download a python version x)

The only abbreviations I know of are in
.../leo/config/leoSettings.leo#@settings-->Abbreviations-->@@data
abbreviations examples

(disabled by the double @).  Also scripting-at-script-nodes defaults to
off and needs to be on for these, its doc. string is:

  True: dynamically executes script in @script nodes when a window is
  created.  DANGEROUS!

Cheers -Terry

> On Monday, May 6, 2013 5:13:42 AM UTC+2, Terry wrote:
> >
> > On Sun, 5 May 2013 16:35:59 -0700 (PDT) 
> > Fidel Pérez <[email protected] <javascript:>> wrote: 
> >
> > > I know a programming IDE 
> > > <http://sourceforge.net/projects/doublesvsoop/>which 
> > bases its existence in that concept: 
> > > 
> > > You write "code Masks" and whenever you call a piece of code it will ask 
> > > only for the parameters, and write the rest of the code. There are 
> > already 
> > > some languages with most of the masks (all the primary functions and 
> > some 
> > > complex ones) and its growing. 
> >
> > I suspect different people have different things in mind when they talk 
> > about templates. 
> >
> > Leo's abbreviation system is already quite advanced when it comes to 
> > filling in skeletons of common code layouts.  I type 
> >
> >   def;; 
> >
> > and I get 
> >
> >   def foo(this, that=3): 
> >       """foo - Return 
> >   
> >       :Parameters: 
> >       - `this`: <|describe this|> 
> >       - `that`: <|describe that|> 
> >       """ 
> >   
> >       <|code|> 
> >
> > Two "parameters" are interactively requested, the function name, and 
> > the list of arguments.  The node name is presented as the default for 
> > the function name, and 'self' is included in the list of arguments, so, 
> > assuming the node was already called 'foo', all I type is this, that=3. 
> > The layout above is the rst form of the epydoc/sphinx docstring with 
> > formally identified parameters. 
> >
> > The cursor is positioned after Return, where the was an empty <||> 
> > placeholder.  Pressing ,, selects the next placeholder so that typing 
> > replaces it. 
> >
> > There's more, see 
> > https://groups.google.com/forum/?fromgroups=#!topic/leo-editor/5ni2PwfmBz8 
> > and the screencast linked from there 
> > http://www.greygreen.org/tmp/leoabbrev.ogv 
> >
> > Other people, Jacob etc. I think, have been talking about templates 
> > where the input parameters are stored in the outline, allowing for 
> > some of them to be altered and the template generation step re-run. 
> > More like generating a website from data etc. 
> >
> > Cheers -Terry 
> >
> 

-- 
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 http://groups.google.com/group/leo-editor?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to