Skip to content

Update type-snob extension - #22925

Merged
raycastbot merged 3 commits into
raycast:mainfrom
0xdhrv:ext/type-snob
Nov 17, 2025
Merged

raycastbot merged 3 commits into
raycast:mainfrom
0xdhrv:ext/type-snob

Conversation

@0xdhrv

@0xdhrv 0xdhrv commented Nov 17, 2025 •

Copy link
Copy Markdown
Member

Description

This pull request introduces a new keyboard shortcut for copying HTML entities and updates development dependencies, while also expanding platform support and project metadata. The most important changes are summarized below:

Feature Improvements:

  • Added a keyboard shortcut for copying HTML entities: Cmd+Opt+C on Mac and Ctrl+Alt+C on Windows (src/index.tsx, CHANGELOG.md).

Checklist

- feat: add Windows support for shortcut keys
- chore: update devDependencies and contributors list
- Initial commit
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: type-snob Issues related to the type-snob extension platform: macOS platform: Windows labels Nov 17, 2025
@raycastbot

ghost commented Nov 17, 2025 •

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

🔔 @sawyerh @chrismessina 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.

Due to our current reduced availability, the initial review may take up to 10 business days.

@0xdhrv
0xdhrv marked this pull request as ready for review November 17, 2025 08:38
@greptile-apps

ghost commented Nov 17, 2025

Copy link
Copy Markdown
Contributor

Greptile Summary

  • Added cross-platform keyboard shortcut (Cmd+Opt+C on Mac, Ctrl+Alt+C on Windows) for copying HTML entities
  • Extended platform support to include Windows alongside macOS
  • Updated development dependencies to latest versions (@types/node to 24.10.1, @types/react to 19.2.5)

Confidence Score: 3/5

  • This PR has a critical syntax error that will break Windows keyboard shortcuts
  • The shortcut implementation uses incorrect capitalization (Windows instead of windows) which will cause runtime errors for Windows users trying to use the keyboard shortcut
  • Pay close attention to src/index.tsx - the platform key capitalization must be fixed before merge

Important Files Changed

Filename Overview
extensions/type-snob/src/index.tsx Added platform-specific keyboard shortcut for copying HTML entity, but uses incorrect capitalization Windows instead of windows

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.

3 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile
React with 👍 or 👎 to share your feedback on this new summary format

Comment on lines +101 to +104
shortcut={{
macOS: { modifiers: ["cmd", "opt"], key: "c" },
Windows: { modifiers: ["ctrl", "alt"], key: "c" },
}}

ghost Nov 17, 2025

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.

syntax: Platform key should be lowercase windows not Windows

Suggested change
shortcut={{
macOS: { modifiers: ["cmd", "opt"], key: "c" },
Windows: { modifiers: ["ctrl", "alt"], key: "c" },
}}
shortcut={{
macOS: { modifiers: ["cmd", "opt"], key: "c" },
windows: { modifiers: ["ctrl", "alt"], key: "c" },
}}

ghost Nov 17, 2025

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.

@greptileai NOT correct, it should be "Windows" there

ghost Nov 17, 2025

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.

You're absolutely right! Looking at the Raycast API documentation and examples, platform keys in shortcuts should indeed be capitalized. The platform key should be Windows, not windows.

Suggested change
shortcut={{
macOS: { modifiers: ["cmd", "opt"], key: "c" },
Windows: { modifiers: ["ctrl", "alt"], key: "c" },
}}
shortcut={{
macOS: { modifiers: ["cmd", "opt"], key: "c" },
Windows: { modifiers: ["ctrl", "alt"], key: "c" },
}}

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 0273e95 into raycast:main Nov 17, 2025
@github-actions

ghost commented Nov 17, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Nov 17, 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.

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: type-snob Issues related to the type-snob extension platform: macOS platform: Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants