Repository navigation
Update Pastefy extension - add win support + 2 new create preference (close 2 issues) - #22656
Conversation
|
Thank you for your contribution! 🎉 🔔 @JulianFun123 you might want to have a look. You can use this guide to learn how to check out the Pull Request locally in order to test it. You can expect an initial review within five business days. |
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This PR significantly enhances the Pastefy extension with Windows support and improved user experience features. The changes modernize the codebase by migrating from axios to native fetch API and replacing usePromise with the preferred useFetch hook from @raycast/utils. Key additions include two new user preferences: "Remember Visibility" allows users to persist their preferred privacy settings across paste creations, and "After Create" provides four configurable post-creation actions (copy & open in browser, open only, copy only, or do nothing). The list functionality now includes optimistic deletion with toast feedback and keyboard shortcuts with destructive styling for delete actions. The PR also centralizes API configuration through a new api.ts module and updates the ESLint configuration to the modern flat config format.
Important Files Changed
| Filename | Score | Overview |
|---|---|---|
| extensions/pastefy/src/pastefy.tsx | 4/5 | Modernized with useFetch, added form reset and configurable post-creation actions |
| extensions/pastefy/src/pastefy-list.tsx | 4/5 | Implemented optimistic deletion, toast feedback, and migrated to useFetch |
| extensions/pastefy/package.json | 4/5 | Added Windows support and two new command-specific preferences |
| extensions/pastefy/src/api.ts | 4/5 | New centralized API configuration module for better code organization |
| extensions/pastefy/CHANGELOG.md | 5/5 | Properly formatted changelog entry with required template string |
| extensions/pastefy/README.md | 5/5 | Updated documentation with header image and new preference descriptions |
| extensions/pastefy/eslint.config.js | 5/5 | Added modern ESLint configuration following Raycast template |
| extensions/pastefy/tsconfig.json | 5/5 | Updated TypeScript target to ES2023 for consistency |
| extensions/pastefy/.eslintrc.json | 5/5 | Removed legacy ESLint configuration file |
Confidence score: 4/5
- This PR is generally safe to merge with some considerations around API error handling
- Score reflects good modernization practices and user-requested features, but deducted one point due to potential API error handling edge cases in the new useFetch implementation and the need to verify Windows compatibility thoroughly
- Pay close attention to the API migration in pastefy.tsx and pastefy-list.tsx files for error handling consistency
9 files reviewed, 1 comment
commented
Nov 5, 2025
|
Published to the Raycast Store: |
commented
Nov 5, 2025
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Description
Actionnow has ashortcutand destructivestyleToast)Screencast
pastefy.mp4
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare located outside the metadata folder if they were not generated with our metadata tool