diff --git a/README.md b/README.md index 55e4a92..694883d 100644 --- a/README.md +++ b/README.md @@ -65,16 +65,6 @@ mo --version # Show installed version - Protect caches with `mo clean --whitelist`; defaults cover Playwright, HuggingFace, Maven, and Surge Mac paths. - Use `mo touchid` to approve sudo with Touch ID instead of typing your password. -## Quick Launchers - -One command sets up Raycast + Alfred shortcuts for `mo clean` and `mo uninstall`: - -```bash -curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/integrations/setup-quick-launchers.sh | bash -``` - -Done! Use `mo` search to quickly find them. See [integrations/README.md](integrations/README.md) for details. - ## Features in Detail ### Deep System Cleanup @@ -155,6 +145,28 @@ Analyze Disk ~/Documents | Total: 156.8GB ↑↓←→ Navigate | O Open | F Reveal | ⌫ Delete | L Large(24) | Q Quit ``` +## Quick Launchers + +Launch Mole commands instantly from Raycast or Alfred: + +```bash +curl -fsSL https://raw.githubusercontent.com/tw93/Mole/main/scripts/setup-quick-launchers.sh | bash +``` + +This adds 4 commands to Raycast and Alfred: +- `clean` - Deep system cleanup +- `uninstall` - Remove applications +- `optimize` - System health check +- `analyze` - Disk space explorer + +Raycast scripts auto-detect your preferred terminal (Warp, Ghostty, Alacritty, Kitty, etc). Set `MO_LAUNCHER_APP=` to override. + +**Uninstall:** +```bash +rm -rf ~/Documents/Raycast/Scripts/mole-*.sh +rm -rf ~/Library/Application\ Support/Raycast/script-commands/mole-*.sh +``` + ## Support - If Mole reclaimed storage for you, consider starring the repo or sharing it with friends needing a cleaner Mac. diff --git a/integrations/README.md b/integrations/README.md deleted file mode 100644 index 8823c16..0000000 --- a/integrations/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# Mole Integrations - -Quick launcher integrations for Mole. - -## Raycast + Alfred (clean & uninstall) - -```bash -curl -fsSL https://raw.githubusercontent.com/tw93/Mole/main/integrations/setup-quick-launchers.sh | bash -``` - -This command: - -- Adds two Raycast Script Commands (`clean`, `uninstall`) to the usual Raycast directories and opens the Script Commands panel so you can reload immediately. -- Creates two Alfred workflows with keywords `clean` and `uninstall` so you can type and run Mole in Alfred. -Both launchers call your locally installed `mo`/`mole` binary directly—no extra prompts or AppleScript permissions needed. -Raycast scripts automatically pick the first terminal they find (Warp → Ghostty → Alacritty → Kitty → WezTerm → WindTerm → Hyper → iTerm2 → Terminal). Export `MO_LAUNCHER_APP=` to override. - -## Alfred - -Add a workflow with keyword `clean` and script: - -```bash -mo clean -``` - -For dry-run: `mo clean --dry-run` - -For uninstall: `mo uninstall` - -## Uninstall - -```bash -rm -rf ~/Documents/Raycast/Scripts/mole-*.sh -rm -rf ~/Library/Application\ Support/Raycast/script-commands/mole-*.sh -# Alfred workflows live in: -# ~/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.* -``` diff --git a/integrations/setup-quick-launchers.sh b/scripts/setup-quick-launchers.sh old mode 100644 new mode 100755 similarity index 94% rename from integrations/setup-quick-launchers.sh rename to scripts/setup-quick-launchers.sh index 86365ff..f437c2b --- a/integrations/setup-quick-launchers.sh +++ b/scripts/setup-quick-launchers.sh @@ -241,6 +241,8 @@ create_raycast_commands() { mkdir -p "$dir" write_raycast_script "$dir/mole-clean.sh" "clean" "$mo_bin" "clean" write_raycast_script "$dir/mole-uninstall.sh" "uninstall" "$mo_bin" "uninstall" + write_raycast_script "$dir/mole-optimize.sh" "optimize" "$mo_bin" "optimize" + write_raycast_script "$dir/mole-analyze.sh" "analyze" "$mo_bin" "analyze" log_success "Scripts ready in: $dir" done @@ -274,6 +276,8 @@ create_alfred_workflow() { local workflows=( "fun.tw93.mole.clean|Mole clean|clean|Run Mole clean|\"${mo_bin}\" clean" "fun.tw93.mole.uninstall|Mole uninstall|uninstall|Uninstall apps via Mole|\"${mo_bin}\" uninstall" + "fun.tw93.mole.optimize|Mole optimize|optimize|System health & optimization|\"${mo_bin}\" optimize" + "fun.tw93.mole.analyze|Mole analyze|analyze|Disk space analysis|\"${mo_bin}\" analyze" ) for entry in "${workflows[@]}"; do @@ -388,7 +392,11 @@ main() { create_alfred_workflow "$mo_bin" echo "" - log_success "Done! Raycast (search “clean” / “uninstall”) and Alfred (keywords: clean / uninstall) are ready." + log_success "Done! Raycast and Alfred are ready with 4 commands:" + echo " • clean - Deep system cleanup" + echo " • uninstall - Remove applications" + echo " • optimize - System health & tuning" + echo " • analyze - Disk space explorer" echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" echo "" }