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

Raise autocommit (addin) for files changed #80

Closed
lscheffler opened this issue Nov 23, 2017 · 4 comments
Closed

Raise autocommit (addin) for files changed #80

lscheffler opened this issue Nov 23, 2017 · 4 comments

Comments

@lscheffler
Copy link
Collaborator

It looks like the projectexplorer is able to detect file changes, at least for source control on. (I have not tested but icons where changed on the conference)
If this is detected a addin could be called to fire automatic commits.

@DougHennig
Copy link
Owner

You can use the AfterModifyItem addin. It's passed a reference to the item (ProjectItem subclass) that was modified. I think you may also need a reference to the form so you can do something like loForm.oSolution.CommitItems(message, array of file names), so I added that as another parameter.

However, given that Project Explorer support auto-commits with #79 discussing what to do about the commit message, I think this issue can be closed).

@lscheffler
Copy link
Collaborator Author

AfterModifyItem.
Do you check some VFP Windows or do you eventbind to file system? I use config.fpw TEDIT ....
Also a simple save without closing should fire. :)

@DougHennig
Copy link
Owner

Project Explorer uses Windows event binding to bind to the destroy event of the editor window. So, it likely won't work with TEDIT because it won't know how to get the handle of that window. Save without closing doesn't fire the event because it's not looking at the file, only the window. I guess this could be changed to bind to the file changed event instead but that might be more complex.

@lscheffler
Copy link
Collaborator Author

Put it under wishes, we dream off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants