On Saturday, September 28, 2013 1:00:17 PM UTC-5, Edward K. Ream wrote:
> explicit file names given to functions and methods are the simplest thing
that could possibly work in a scripting environment such as leoBridge.
...
All this is a pretty low priority now...
A fundamental reason why there is little urgent need for scripting support
in leoBridge is that scripts can always "borrow" code from Leo's core. For
instance, when fileName is known, c.saveTo is equivalent (ignoring gui
issues that don't apply in leoBridge), to::
fileName = g.ensure_extension(fileName, ".leo")
c.fileCommands.saveTo(fileName)
g.app.recentFilesManager.updateRecentFiles(fileName)
g.chdir(fileName)
So, although official support for file-related operations in leoBridge
would be nice, scripts that use leoBridge can always supply their own
equivalent code.
EKR
--
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.
For more options, visit https://groups.google.com/groups/opt_out.