-
Notifications
You must be signed in to change notification settings - Fork 12
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
Comments
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). |
AfterModifyItem. |
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. |
Put it under wishes, we dream off. |
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.
The text was updated successfully, but these errors were encountered: