On Sat, Jun 19, 2010 at 3:19 AM, Ivanov Dmitriy <[email protected]> wrote:
> How can I use the abbreviations? What is the file format and the
> sequence of commands? Sorry, I didn't find any info on site.

There is no abbreviations plugin.  Instead, there is an abbreviation
class in leoPy.leo, the node:

Code-->Core classes-->@thin leoEditCommands.py-->abbrevCommandsClass (test)

I'm not sure whether even a single person is using this class.

Looking at the code, that is, readAbbreviations, I see that the
read-abbrev-file command prompts for a fileName.  Obviously, this is
going to be quite annoying to do every time you load Leo.

Again, looking at readAbbreviations, I see this:

        f = open(fileName)
        for x in f:
            a, b = x.split('=')
            b = b [:-1]
            self.abbrevs [a] = b

So presumably each line of the form has the form:

    name = expansion

For *years* I've wanted a better way to do
abbreviations/substitutions.  The present code is a start, but is far
from good.  Any improvements would be appreciated.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to