Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init callback #19

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Init callback #19

wants to merge 3 commits into from

Conversation

matchii
Copy link

@matchii matchii commented Apr 15, 2020

Adds new command, Init, which causes defined callback function(s) to fire once when project is selected on the welcome screen.

Maciej Watras added 3 commits April 11, 2020 14:15
User can now define any number of init functions for a project, by
writing multiple Init commands, just like Callback works. They will be
called sequentially in the same order they are defined:

    Project 'path', 'ProjectName'
    Init    'ProjectName', 'FirstFunction'
    Init    'ProjectName', 'SecondFunction'

will result in

    (...) | call FirstFunction('ProjectName') | call SecondFunction('ProjectName') (...)

execution when project is opened.

This only works if g:project_enable_welcome is set to 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant