Skip to content

Update Pastefy extension - add win support + 2 new create preference (close 2 issues) - #22656

Merged
raycastbot merged 2 commits into
raycast:mainfrom
xmok:ext/pastefy
Nov 5, 2025
Merged

raycastbot merged 2 commits into
raycast:mainfrom
xmok:ext/pastefy

Conversation

@xmok

@xmok xmok commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

Description

Screencast

pastefy.mp4

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: pastefy Issues related to the pastefy extension platform: macOS platform: Windows labels Nov 4, 2025
@raycastbot

Copy link
Copy Markdown
Collaborator

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.

@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 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

Edit Code Review Agent Settings | Greptile

Comment thread extensions/pastefy/src/pastefy-list.tsx Resolved
@pernielsentikaer pernielsentikaer self-assigned this Nov 5, 2025

ghost 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 🔥

@raycastbot
raycastbot merged commit 29553c0 into raycast:main Nov 5, 2025
@github-actions

ghost commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Nov 5, 2025

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.

@xmok
xmok deleted the ext/pastefy branch November 5, 2025 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension fix / improvement Label for PRs with extension's fix improvements extension: pastefy Issues related to the pastefy extension platform: macOS platform: Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Pastefy] Setting to set default Visibility [Pastefy] Do not open browser after creating a paste

3 participants