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

feat: prune scope save files based on last modified time #143

Merged
merged 9 commits into from
Mar 21, 2024

Conversation

cbochs
Copy link
Owner

@cbochs cbochs commented Mar 21, 2024

Context

Tag containers all live as their own JSON file. This can lead to an large number of orphaned files if a user does not clean them up every so often (through the Loaded Scopes window). This adds an automated way to clean up unused files so users don't have to worry about it.

Todo:

  • Update README
  • Update :Grapple completion
  • Handle { notify = true }
  • Add (prune = "30d)

Changes

  • Add Grapple.prune
  • Add settings prune

@cbochs cbochs changed the title feat: prune tag containers based on ttl feat: prune tag containers based on last modified time Mar 21, 2024
@cbochs cbochs changed the title feat: prune tag containers based on last modified time feat: prune scope save files based on last modified time Mar 21, 2024
cbochs added 4 commits March 21, 2024 09:42
rename "mtime" to "limit" in Grapple.prune
update prune notification based on number of ids pruned
use os.time to get current unix timestamp instead of jank way
delete files when Grapple.prune is called
@cbochs cbochs merged commit f440b0a into main Mar 21, 2024
3 of 4 checks passed
@cbochs cbochs deleted the feat/prune_tags branch March 27, 2024 16:58
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