Skip to content

rustClean v0.5.0

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Oct 14:29
· 7 commits to main since this release
4c3dc0f

Added

  • "Similar images" report, after the duplicates in the menu (the reports
    and tools below it move down by one).
    • It finds resized, re-compressed or re-saved copies of the same picture,
      whose bytes differ.
    • It reads JPEG, PNG, WebP, GIF, TIFF and BMP images of 100 KiB or more.
      HEIC and RAW files are not read.
    • Each image gets a 64-bit gradient hash. Images within 4 bits of each
      other are grouped ([reports] similar_distance, 0–16).
    • The search runs in the background with progress, and Esc cancels it.
    • A group shows how many images it holds and the largest in pixels.
      Space adds all but the largest image to the basket, and Enter
      lists each image with its size in pixels.
    • It skips the same folders as the clutter report: hidden folders,
      bundles such as a Photos library, Library and system folders.
    • It works with rustclean report similar-images and with o.
    • The image decoders sit behind the default similar-images cargo
      feature (about 1.2 MB). --no-default-features builds without them.
      (#13)
  • rustclean check warns when a disk is fuller than a threshold: 90 % by
    default, or --threshold, or [watch] threshold in config.toml.
    • It watches the disk with your home folder, plus the ones listed under
      [watch] disks. It prints one line per disk and exits with code 3 when
      one is over.
    • rustclean check --install runs it every hour in the background: a
      launchd agent on macOS, a systemd user timer on Linux. Before doing
      anything it shows what it will write and run, and asks you to type
      yes (evet). On Windows it shows the schtasks command instead.
      --uninstall removes it.
    • Background runs show a system notification (osascript / notify-send)
      at most once a day per disk while the disk stays over.
      (#23)

Changed

  • For contributors: o and w save files through one module,
    newfile.rs (#74).
    CI also checks the build without the similar-images feature.
  • The Playwright cleanup moves the browsers folder's contents to the trash
    instead of running npx --yes playwright uninstall --all, which could
    download Playwright first just to remove the browsers. It works offline,
    and the deletion log records it
    (#79).

Fixed

  • The duplicates report no longer looks inside packages or version control
    folders: apps, frameworks, a Photos library, Logic and iMovie libraries,
    and .git, .hg and .svn folders. A file in them could be listed as a
    copy and offered for deletion, which breaks the package or repository even
    when the same bytes exist elsewhere. Run from inside such a folder, the
    report says why it finds nothing
    (#83).
  • The menu fits small terminals. At 80×24 its lower items and the
    description of the selected one were cut off. Now the list scrolls with
    the selection and shows how many items are above or below. The
    description and the note always stay visible, and long ones wrap instead
    of being cut. A mouse click picks the item drawn where you click
    (#73).
  • Saving the language or theme can no longer drop the other one when two
    saves happen at once, and the settings file is replaced in one step, so it
    is never read half written
    (#72).