On Monday, May 28, 2018 at 2:52:57 PM UTC-5, Edward K. Ream wrote:
>
> The startup branch
> <https://github.com/leo-editor/leo-editor/tree/startup>contains
> implements #740
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fleo-editor%2Fleo-editor%2Fissues%2F740&sa=D&sntz=1&usg=AFQjCNHAxPN4U5rfZHFB0fUAMJw_d2HZbg>:
>
> "execute leo_startup.py on startup".
>
> However, I have serious doubts that this enhancement is actually worth
> doing.
>
The following (tested) plugin, placed in ~/.leo/plugins, would be almost
equivalent to a leo_startup.py script:
import leo.core.leoGlobals as g
print('===== local_plugin.py in ~/.leo/plugins/')
def hook(tag, keys):
g.trace(tag)
def init():
g.registerHandler('start1', hook)
return True
The hook function executes at 'start1' time, that is, while other plugins
are loading. The only difference between this plugin and the leo_startup.py
would be that leo_startup.py would execute earlier in Leo's startup
process. Imo, that's not reason enough to do #740
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fleo-editor%2Fleo-editor%2Fissues%2F740&sa=D&sntz=1&usg=AFQjCNHAxPN4U5rfZHFB0fUAMJw_d2HZbg>
.
The startup branch also adds the --no-leo-startup command line option to
suppress running of leo_startup.py. This spreads almost-never-used features
like a rash.
*Summary*
I would like to mothball the startup branch.
Edward
--
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.