Repository navigation
Add Copy Notion Markdown Link extension - #22523
Conversation
|
Congratulations on your new Raycast extension! 🚀 You can expect an initial review within five business days. Once the PR is approved and merged, the extension will be available on our Store. |
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This PR adds a new Raycast extension called "Copy Markdown Link for Notion" that enables users to quickly copy the current Notion page as a Markdown link in the format [title](url). The extension integrates with the Notion desktop app using AppleScript automation to extract page titles and URLs, then formats them into proper Markdown links with bracket escaping. The implementation includes clipboard state management to preserve the user's existing clipboard content and provides visual feedback through toast notifications. The extension is macOS-only due to its reliance on AppleScript for interacting with the Notion desktop application, requiring Accessibility permissions to function properly. This extension fills a specific workflow gap for users who frequently reference Notion pages in documentation or note-taking contexts where Markdown formatting is preferred.
Important Files Changed
| Filename | Score | Overview |
|---|---|---|
| extensions/copy-markdown-link-for-notion/src/get-notion-page-as-markdown-link.ts | 3/5 | Main extension logic with AppleScript automation, clipboard management, and timing-dependent operations |
| extensions/copy-markdown-link-for-notion/package.json | 4/5 | Extension configuration with proper dependencies and bilingual descriptions |
| extensions/copy-markdown-link-for-notion/README.md | 4/5 | Comprehensive documentation with installation instructions and troubleshooting guide |
| extensions/copy-markdown-link-for-notion/CHANGELOG.md | 5/5 | Standard changelog with proper template string format |
| extensions/copy-markdown-link-for-notion/.prettierrc | 5/5 | Standard Raycast prettier configuration |
| extensions/copy-markdown-link-for-notion/tsconfig.json | 5/5 | Standard TypeScript configuration for Raycast extensions |
| extensions/copy-markdown-link-for-notion/.gitignore | 5/5 | Standard gitignore file with appropriate exclusions |
| extensions/copy-markdown-link-for-notion/eslint.config.js | 5/5 | Standard ESLint configuration using Raycast template |
Confidence score: 3/5
- This PR introduces timing-dependent operations that could cause reliability issues in production
- Score reflects concerns with hardcoded delays, clipboard clearing operations, and string parsing without proper validation that could lead to race conditions or failures
- Pay close attention to the main TypeScript file which contains AppleScript automation with potential timing and error handling issues
8 files reviewed, 5 comments
|
@greptile-apps can you review again? |
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This review covers only the changes made since the last review, not the entire PR. The most recent changes address all previously identified issues in the copy-markdown-link-for-notion extension. The developer made significant improvements to error handling, timing, and validation logic.
Key changes include:
- Removed the problematic initial clipboard clearing operation that could interfere with other applications
- Added proper separator validation to ensure the AppleScript output can be parsed correctly
- Fixed the title processing logic to check for empty/null values before string operations
- Increased AppleScript timing delays from 0.1s to 0.2-0.3s for better reliability on slower systems
- Added proper formatting by including a newline at the end of CHANGELOG.md
These improvements make the extension more robust and reliable for users while maintaining the core functionality of copying Notion pages as Markdown links.
Important Files Changed
| Filename | Score | Overview |
|---|---|---|
| extensions/copy-markdown-link-for-notion/CHANGELOG.md | 5/5 | Added missing newline at end of file for proper formatting |
| extensions/copy-markdown-link-for-notion/src/get-notion-page-as-markdown-link.ts | 4/5 | Improved error handling, validation, and timing with better reliability |
Confidence score: 4/5
- This PR addresses all previously identified issues and significantly improves the extension's reliability
- Score reflects substantial improvements in error handling and validation, with only minor concerns about AppleScript timing dependency
- Pay close attention to the AppleScript timing logic as it relies on system-specific delays that may need further adjustment in production
2 files reviewed, no comments
Recent Updates
|
|
@greptile-apps can you review again? |
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This review covers only the changes made since the last review, not the entire PR. The main updates involve a directory reorganization from copy-markdown-link-for-notion to copy-notion-markdown-link, along with corresponding updates to all configuration and documentation files. The extension's core functionality remains unchanged - it extracts Notion page information using AppleScript to create Markdown links. Key changes include updating the package name, extension title, command configuration, and cleaning up the description text. The reorganization improves naming consistency by placing "Notion" more prominently in the extension name while maintaining the same technical implementation.
Important Files Changed
| Filename | Score | Overview |
|---|---|---|
| extensions/copy-notion-markdown-link/CHANGELOG.md | 5/5 | Created new changelog file with proper {PR_MERGE_DATE} template |
| extensions/copy-markdown-link-for-notion/CHANGELOG.md | 5/5 | Deleted old changelog file as part of directory reorganization |
| extensions/copy-notion-markdown-link/.prettierrc | 5/5 | Added standard Raycast Prettier configuration |
| extensions/copy-notion-markdown-link/eslint.config.js | 5/5 | Added standard Raycast ESLint configuration |
| extensions/copy-notion-markdown-link/README.md | 5/5 | Updated documentation to reflect new extension name |
| extensions/copy-notion-markdown-link/src/get-notion-page-as-markdown-link.ts | 3/5 | Complex AppleScript implementation with potential timing and validation issues |
| extensions/copy-notion-markdown-link/package.json | 4/5 | Updated metadata with new naming and added packageManager field |
| extensions/copy-notion-markdown-link/.gitignore | 5/5 | Standard Raycast extension gitignore file |
| extensions/copy-notion-markdown-link/tsconfig.json | 4/5 | Standard TypeScript configuration missing final newline |
Confidence score: 4/5
- This PR is safe to merge with minimal risk as it primarily involves directory reorganization and metadata updates
- Score reflects mostly safe changes but maintains previous concerns about the AppleScript timing logic and validation in the core implementation file
- Pay close attention to the main implementation file which still contains the complex AppleScript logic with potential timing and validation issues noted in previous reviews
9 files reviewed, 2 comments
Add a new Raycast extension that copies the current Notion page as a Markdown link. Features: - Works with Notion desktop app (both normal and fullscreen windows) - Automatically extracts page title and URL using AppleScript - Generates Markdown link with proper escaping - Copies to clipboard with visual feedback - Preserves previous clipboard content on failure - Requires macOS Accessibility permissions Technical implementation: - Uses @raycast/api and @raycast/utils - AppleScript integration for Notion desktop app - Command: 'Copy as Markdown Link' with 'Notion' subtitle - Extension name: copy-notion-markdown-link
2304ea5 to
adc5666
Compare
pernielsentikaer
left a comment
There was a problem hiding this comment.
Looks good to me, approved 🔥
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
- set RefreshStatus on all command calls - 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 - Update CODEOWNERs (b30fad6) - Add httpperf extension (raycast#22809) - Update CODEOWNERs (a1b96be) - Add git extension (raycast#22550) - Update CODEOWNERs (9c35408) - Add logos-launcher extension (raycast#22366) - Update CODEOWNERs (792ccbd) - Add crypto-portfolio-tracker extension (raycast#22516) - Update CODEOWNERs (7c738cc) - chore: update github username (raycast#22634) - Update CODEOWNERs (2009369) - feat(screenocr): add option to disable sound and toast message (raycast#22559) - feat: Vision Support with Pixtral Models and Clipboard Integration (raycast#22724) - Update CODEOWNERs (76861a7) - Update deepcast extension (raycast#22830) - Update CODEOWNERs (4e55cf4) - [Sink] windows support + shortcuts + modernize (raycast#22850) - chore(sdk-scw): migrate to new sdk (raycast#22777) - Improve regex pattern used for Jira issue key detection (raycast#22833) - Update freeagent extension (raycast#22818) - Update CODEOWNERs (0fe6eb9) - [JWT Decoder] Update dependencies (raycast#22411) - Update CODEOWNERs (05e1779) - Add grokipedia extension (raycast#22519) - Update CHANGELOG.md (raycast#22832) - [VLC] Add commands for speed and history (raycast#22800) - Update CODEOWNERs (630baf9) - Update search-router extension (raycast#22823) - Update CODEOWNERs (660ff27) - Add excel-formula-beautifier extension (raycast#22578) - Update CODEOWNERs (f46e7f5) - Add json-resume extension (raycast#22499) - Update vps-explorer extension (raycast#22819) - Update CODEOWNERs (fae2c29) - Update prism-launcher (raycast#22801) - Update CODEOWNERs (6c53c0e) - Update video-downloader extension (raycast#22810) - Update CODEOWNERs (b4006be) - Add vps-explorer extension (raycast#22507) - [Ligue-1] Update extensions (raycast#22806) - Update `Coolify` extension - delete project (new action) (raycast#22794) - Update CODEOWNERs (f6d7e48) - Add `Firefly III` extension (raycast#22795) - Update CODEOWNERs (cfb46f5) - Add AI by vercel extension (raycast#22804) - Update review expectations message in pr-bot (raycast#22734) - Change fetch URL and parse frontend version (raycast#22751) - Update CODEOWNERs (61c928e) - fix(extension): fix zen-browser opening new tab in private window in windows (raycast#22767) - Update raycast-zoxide extension (raycast#22775) - Update browser bookmarks extension (raycast#22778) - Update CODEOWNERs (5898b65) - Add rule-of-three extension (raycast#22773) - Update twitch (raycast#22770) - Update fathom extension (raycast#22760) - [Postiz] v2 month till EoM + posts in markdown (raycast#22774) - Update CODEOWNERs (ad1c866) - Update twitch (raycast#22746) - Update CODEOWNERs (584953d) - Add Shelve extension (raycast#22287) - Update CODEOWNERs (342955a) - Add ray-code extension (raycast#22755) - Update qbittorrent (raycast#22756) - Update CODEOWNERs (c282ff1) - Update uploadthing (raycast#22763) - Update cloudflare-warp extension (raycast#22765) - Update CODEOWNERs (38c5ec8) - Add `Papra` extension (raycast#22761) - Update CODEOWNERs (ba06e8c) - add: Orshot extension (raycast#21715) - [ivpn] minor fix: error handling in logout command (raycast#22757) - Update CODEOWNERs (977815a) - Update steam (raycast#22730) - Update CODEOWNERs (52b198d) - feat(imessage-2fa): add support for the 2FA from Epos Card Japan (raycast#22593) - Update browser history extension (raycast#22749) - Update `Appwrite` extension - Show Sites, Deployments, Variables (raycast#22754) - [Multilinks] Add Perplexity Comet browser support (raycast#21476) - Update anna-s-archive extension (raycast#22739) - Update CODEOWNERs (fceb40c) - [ccusage] feat: enhance Node.js path resolution and CLI execution flexibility (raycast#22740) - Update silent-mode extension (raycast#22738) - Update CODEOWNERs (8101bc2) - AppGrid - Smart app launcher with grid view and category grouping (raycast#22709) - Update CODEOWNERs (c6c796f) - Add silent-mode extension (raycast#22732) - feat(ray-so): add nuxt theme preferences (raycast#22733) - Update CODEOWNERs (6de71ca) - Add pi-drill extension (raycast#22714) - Update CODEOWNERs (043ad9b) - Update bitbucket extension (raycast#22708) - Update CODEOWNERs (57cbf4b) - Add ping-menu extension (raycast#22299) - Docs: Update the utils docs - Update CODEOWNERs (d3ea74a) - Add udemy-coupons extension (raycast#22713) - Update CODEOWNERs (2dfb48e) - Update qbittorrent (raycast#22728) - Update CODEOWNERs (7c6269c) - Add dice-tiles extension (raycast#22021) - FuelX: Remove vulnerable, but unused, dependencies. (raycast#22727) - LingoRep: Fix security vulnerabilities. (raycast#22726) - Update CODEOWNERs (9a3fcb4) - Add zshrc-manager extension (raycast#22314) - Update CODEOWNERs (6f5ff61) - Update parallels-virtual-machines extension (raycast#22676) - Update CODEOWNERs (a92f1b8) - Add tex2typst extension (raycast#22667) - Update CODEOWNERs (dbdf418) - feat(sound-search): new extension for searching sounds 🎵 (raycast#22590) - Update skyscanner-flights extension (raycast#22723) - Update CODEOWNERs (1931677) - Add rhttp extension (raycast#22359) - Update `Capacities` extension - Maintenance + Windows Support (raycast#22694) - Update CODEOWNERs (6f7ed84) - Add `NetNewsWire` extension (raycast#22717) - [Chatwoot] search contacts + show unread convo count (raycast#22719) - Add Ghostty terminal support to Claude Code Launcher (raycast#22706) - Update knowyourmeme extension (raycast#22705) - Feature mistral medium (raycast#22633) - Update CODEOWNERs (10b7497) - Handle the search favourite space error (raycast#22689) - Update CODEOWNERs (85f8818) - Update timezone-buddy extension (raycast#22652) - Update CODEOWNERs (10af08b) - Extension: cloudflare (raycast#22660) - feat(chatgpt-search): Make query parameters configurable, simplify extension (raycast#22677) - Update CODEOWNERs (33834b7) - Add prompt-builder extension (raycast#22648) - Update CODEOWNERs (aa91051) - Add display-reinitializer extension (raycast#22678) - Update CODEOWNERs (2780fca) - Update messages extension (raycast#22687) - Update CODEOWNERs (cde25cb) - [gitignore] Windows Support and Favourites (raycast#22623) - Update CODEOWNERs (6e16a93) - [Google Search] Release for Windows (raycast#22410) - Update skyscanner-flights extension (raycast#22686) - Update jsr extension (raycast#22682) - Update CODEOWNERs (9b38b34) - Update spell extension (raycast#22657) - Update CODEOWNERs (24aabfd) - [Adhan Time] Add Windows support (raycast#22622) - Update CODEOWNERs (2a66830) - Update parcel extension (raycast#22239) - Update CODEOWNERs (5b5c73f) - Update idonthavespotify extension (raycast#22695) - Update CODEOWNERs (f7ae792) - [Search NPM Packages] Add Bun Support (raycast#22697) - Update CODEOWNERs (62749d7) - Add skyscanner-flights extension (raycast#22646) - [Premier League] API Migration (raycast#22631) - Update svelte-docs extension (raycast#22666) - Update CODEOWNERs (d9f76b0) - Update keyboard-shortcut-sequences extension (raycast#22181) - Docs: update for the new API release - Ertembiyik/update punto (raycast#22624) - Update svelte-docs extension (raycast#22650) - Update CODEOWNERs (9894359) - Add `Grist` extension (raycast#22655) - Update CODEOWNERs (29553c0) - Update `Pastefy` extension - add win support + 2 new create preference (close 2 issues) (raycast#22656) - feat(google-chrome): add exclude search functionality (raycast#22614) - Update CODEOWNERs (cc8a88c) - Update url parse extension (raycast#22662) - Update CODEOWNERs (92771db) - Add Tempo extension (raycast#22643) - Update svelte-docs extension (raycast#22533) - Update CODEOWNERs (977eb5e) - Add Copy Notion Markdown Link extension (raycast#22523) - Update prism-launcher extension (raycast#22645) - Update prism-launcher extension (raycast#22526) - Update CODEOWNERs (c8bea53) - Add qrcp extension (raycast#22524) - Keeper Security Updated Readme file (raycast#22642) - Update currency-exchange extension (raycast#22620) - [ENS name lookup]: Fix the extension functionality (raycast#22613) - Update CODEOWNERs (6c3d489) - Update any-website-search extension (raycast#22574) - Update plane extension - README (raycast#22636) - Update CODEOWNERs (257ee84) - Update delivery-tracker extension (raycast#22577) - Update roblox-creator-docs extension (raycast#22538) - Update plane extension - Support for Plane Self Hosted and API Key authentication (raycast#22608) - Update tembo extension (raycast#22615) - Update bible extension (raycast#22606) - Update `Koyeb` extension - paginate activities + app,service events (raycast#22619) - Update CODEOWNERs (42d77f5) - Add linkace extension (raycast#22362) - Update CODEOWNERs (e1f980c) - Add paperform extension (raycast#22500) - Update CODEOWNERs (cdfc891) - Update T3 Chat extension - Added new models (raycast#22127) - Update `Attio` extension - use official logo + add task (raycast#22609) - Update claude extension to dynamically retrieve models (raycast#22217) - Update CODEOWNERs (936310d) - Agent Client Protocol client implementation (raycast#22140) - Update some dependencies to fix some security issues (
Description
A Raycast extension that copies the current Notion page as a Markdown link in the format
[title](url).Background
I often copy Notion pages into documents or chat tools that support Markdown formatting. However, doing this manually — opening the page menu, copying the URL, and formatting it as
[title](url)— is repetitive and error-prone. Existing tools and extensions didn’t fully meet this workflow need, especially for the Notion desktop app (most solutions target the browser version).This Raycast extension was created to simplify that process: with a single shortcut, it retrieves the current Notion page’s title and URL directly from the desktop app and copies them as a properly escaped Markdown link. It’s designed to speed up note-taking, documentation, and communication for anyone who frequently references Notion pages.
Features
Technical Details
@raycast/apiand@raycast/utilscopy-notion-markdown-linkScreencast
2025-10-30.18.18.16.mov
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder