The plugins branch contains preliminary code that completes #296 <https://github.com/leo-editor/leo-editor/issues/296>. Unlike startup scripts <https://github.com/leo-editor/leo-editor/issues/740>, this enhancement meets a clear need.
Local plugins must reside in ~/.leo/plugins. *You must add ~/.leo/plugins to sys.path*. Yes, Leo could temporarily add ~/.leo/plugins to sys.path, but imo it's reasonable to have people add ~/.leo/plugins to sys.path themselves. After updating sys.path, you enable plugins as usual using @enabled-plugins node. For example, to enable ~/.leo/plugins/x.py, just add x.py to your @enabled-plugins node. The new code takes care of the rest. It's early days for this code. Let me know what you think. Edward P.S. I refactored plugins.loadOnePlugin using lisp-like helper functions (not methods). A lot of cruft disappeared. However, the most important change was to plugins.regularizeName. It's the only code that knows about ~/.leo/plugins. 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 https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
