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

Ability to remove dead files from the Session.sublime_session file #52

Closed
stephen147 opened this issue Jan 21, 2020 · 4 comments
Closed
Labels

Comments

@stephen147
Copy link

If I use the cleanup_file_history command it doesn't remove the dead files found in:

...\Sublime Text\Data\Local\Session.sublime_session

Would it be possible to remove the dead files from this file or would there be problems seeing as sublime text may need to be closed?

@FichteFoll
Copy link
Owner

FichteFoll commented Jan 22, 2020

Yes, indeed this isn't a good idea to solve from within a plugin and also part of the reason for FileHistory to maintain its own history.

If you really need to clean up old dead files from the session, I suggest the following tool instead:

https://github.com/STealthy-and-haSTy/SublimeScraps/tree/master/session_cleaner

@stephen147
Copy link
Author

Thanks, I did see that but it removes dead projects and not the files from the session file.

@FichteFoll
Copy link
Owner

The wording kind of implied it would clean up files as well, but I admit I hadn't re-reviewed the source code to verify. I suggest creating an issue there and asking for support of that because it seems like something that would fall within the scope of that script. It should of course be disableable (or not even the default) because of temporarily unavailable mounts.

@stephen147
Copy link
Author

Ok, I'll add an issue over there. Thanks.

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

No branches or pull requests

2 participants