Skip to content

Update diskutil-mac extension - #22307

Merged
raycastbot merged 5 commits into
raycast:mainfrom
Globolo001:ext/diskutil-mac
Oct 28, 2025
Merged

raycastbot merged 5 commits into
raycast:mainfrom
Globolo001:ext/diskutil-mac

Conversation

@Globolo001

@Globolo001 Globolo001 commented Oct 21, 2025 •

Copy link
Copy Markdown
Contributor

Description

Screencast

Checklist

- Merge branch \'contributions/merge-1749741487473\'
- Pull contributions
- added plist support, filtering and sizes
- Initial commit
- some improvements
- a bit of modularization
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: diskutil-mac Issues related to the diskutil-mac extension platform: macOS OP is author The OP of the PR is the author of the extension labels Oct 21, 2025
@raycastbot

Copy link
Copy Markdown
Collaborator

Thank you for the update! 🎉

You can expect an initial review within five business days.

@Globolo001

Copy link
Copy Markdown
Contributor Author

new pictures already taken, just forgot to commit

@Globolo001

Copy link
Copy Markdown
Contributor Author

https://developers.raycast.com/utilities/react-hooks/useexec

Currently using import { exec } from "child_process";
however useexec sounds a bit better. if you could implement a native way for sudo commands (as needed by the extension) that would be great!

@Globolo001
Globolo001 marked this pull request as ready for review October 26, 2025 02:29

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greptile Overview

Greptile Summary

This PR adds significant enhancements to the diskutil-mac extension, introducing disk filtering by type (internal/external), multiple size display formats with persistent preferences, and improved data parsing using plist. The changes also include better error handling with timeout mechanisms and prevention of internal disk ejection.

Key improvements:

  • Added plist-based disk information parsing for more structured data access
  • Implemented internal/external disk filtering via dropdown
  • Added toggleable size display formats (Full/Used/Free/UsedFree) with LocalStorage persistence
  • Improved error handling with 5-second timeout and graceful fallbacks
  • Enhanced sudo workflow with better user prompts for manual terminal execution
  • Refactored command execution into separate utility module
  • Updated dependencies to latest versions (React 19, TypeScript 5.8.3, @raycast/api 1.100.1)

Minor issues found:

  • Two grammatical errors in CHANGELOG.md that should be corrected

Confidence Score: 4/5

  • This PR is safe to merge after fixing minor grammatical errors in the changelog
  • Score of 4 reflects well-structured code with good error handling and sensible architectural improvements. The implementation adds valuable features without breaking existing functionality. Only minor issues found are grammatical errors in documentation (CHANGELOG), which don't affect runtime behavior but should be corrected for professionalism.
  • extensions/diskutil-mac/CHANGELOG.md requires minor grammatical corrections before merge

Important Files Changed

File Analysis

Filename Score Overview
extensions/diskutil-mac/CHANGELOG.md 4/5 Added new version entry with feature list, contains minor grammatical errors in descriptions
extensions/diskutil-mac/package.json 5/5 Updated dependencies (@raycast/api to v1.100.1, React to v19.1.0, TypeScript to v5.8.3) and added plist library
extensions/diskutil-mac/src/Disk.tsx 5/5 Major refactor: added plist parsing, size tracking with display formats, improved error handling with timeouts, internal/external disk detection
extensions/diskutil-mac/src/index.tsx 5/5 Added disk filtering (internal/external) via dropdown and size view toggling with persistent storage

10 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/diskutil-mac/CHANGELOG.md Resolved
Comment thread extensions/diskutil-mac/CHANGELOG.md Resolved
@Globolo001

Copy link
Copy Markdown
Contributor Author

This pull request introduces significant enhancements and improvements to the Diskutil Raycast extension, focusing on new features, user experience, code structure, and dependency updates. The most important changes include support for filtering disks by type, improved size display options, a new backend for structured disk information, UI/UX upgrades, and code refactoring for maintainability.

New Features and UI/UX Improvements

  • Added disk type filtering (internal/external) via a dropdown in the UI for easier navigation and management of disks.
  • Implemented multiple disk size display formats, toggleable with the shortcut CMD+., and persisted user preference with local storage. [1] [2]
  • Introduced a summary display of disk information at the top of the details list and improved disk details view, including alternative detail from diskutil info -plist via CMD+Shift+Enter. [1] [2]

Backend and Code Structure

  • Refactored disk command execution to use a dedicated execDiskCommand function, supporting both normal and sudo execution for secure operations.
  • Added new helper utilities for parsing disk sections and managing size view state, improving code modularity and maintainability. [1] [2]

Dependency and Configuration Updates

  • Updated dependencies to latest versions for improved compatibility and performance, including Raycast API, React, and TypeScript.
  • Bumped extension version to 1.1.0 and updated descriptions for clarity and accuracy.

Documentation and Miscellaneous

  • Enhanced README with clearer feature highlights, usage instructions, and known issues section for better onboarding and transparency.
  • Updated .gitignore to exclude old and local development files for cleaner repository management.

@pernielsentikaer pernielsentikaer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved 🔥

@Globolo001

Copy link
Copy Markdown
Contributor Author

Nice 🔥 is there a merge button somewhere? Can’t find it

@raycastbot
raycastbot merged commit 834bbd3 into raycast:main Oct 28, 2025
@github-actions

Copy link
Copy Markdown
Contributor

@raycastbot

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

csymons pushed a commit to csymons/raycast-extensions that referenced this pull request Oct 29, 2025
- update dependencies
- fix(scheduler): add missing code changes
- package-lock.json update
- fix: add missing BACKGROUND_REFRESH_STATUS to STORAGE_KEYS
- Pull contributions
- update changelog
- docs: update CHANGELOG for background refresh alert feature
- feat: add background refresh status alert to scheduled command form
- [Linear] Use API-provided notification presentation (raycast#22285)
- Update CODEOWNERs (1a7209e)
- Update harvest extension (raycast#22256)
- Update CODEOWNERs (13787cd)
- Fix finding button in Tahoe. (raycast#22330)
- Update GitHub Actions workflow for PR approvals (raycast#22487)
- Docs: update for the new API release
- Update CODEOWNERs (77f6477)
- Added support for Asana sections (raycast#21912)
- Update auto-label workflow for PR approvals (raycast#22484)
- Update GitHub Actions workflow to set effective token (raycast#22482)
- Update workflow to use pull_request_review event (raycast#22479)
- Update CODEOWNERs (d5727aa)
- Add action to generate and copy private links (raycast#22273)
- Enhance PR approval labeling workflow (raycast#22477)
- Chatgpt atlas bookmarks improvement (raycast#22371)
- Add windows support  (raycast#22367)
- Update diskutil-mac extension (raycast#22307)
- [Secret Browser Commands] add ChatGPT Atlas, etc (raycast#22348)
- Update deployhq extension (raycast#22319)
- [Serie A] Update extensions (raycast#22427)
- package-lock.json update
- fix: add missing BACKGROUND_REFRESH_STATUS to STORAGE_KEYS
- Merge branch \'contributions/merge-1761638558070\'
- Pull contributions
- update changelog
- docs: update CHANGELOG for background refresh alert feature
- feat: add background refresh status alert to scheduled command form
@Globolo001
Globolo001 deleted the ext/diskutil-mac branch January 2, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension: diskutil-mac Issues related to the diskutil-mac extension extension fix / improvement Label for PRs with extension's fix improvements OP is author The OP of the PR is the author of the extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants