-
-
Notifications
You must be signed in to change notification settings - Fork 8
Orphan Lua file GC #55
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
Conversation
8646b5b to
ffe322f
Compare
|
The check on write and config seems to be working for me now. Just need to have it handle the old style of header comment too, right now it thinks ALL of Conjure's lua files are orphans which isn't right. |
Now works with old and new header styles.
|
Cool, fixed that issue! It supports the old header style now. It is however trying to delete the embedded nfnl files because I just copied the .lua files over into Conjure, not the .fnl source. So now we need an ignore list of some kind. |
#48
This finds files that match your Lua file glob patterns in
.nfnl.fnland checks a few things:[nfnl]header that indicates that this file was compiled by nfnl?I've tried to make this as efficient as I can, there's a risk that all this fs access on each write will be slow for some users. So we should run it in another thread / off of the main UI thread somehow and make it controllable so the user can turn it off per project.
It only reads the first line from each file and only the files that match the patterns in the configuration. Hopefully this should keep slowdowns to a minimum.
Try it!
Use
:NfnlFindOrphansand then if you're happy,:NfnlDeleteOrphans. I'll automate it next with config options to turn it off.To Do