Replace desktop paste shortcut with NutJS#8
Conversation
- Replace PowerShell-based paste emulation with native keyboard input - Add nut-js dependency and unpack its native binaries in the desktop app
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
laryn-transcribe | 9d8bf08 | May 06 2026, 04:03 AM |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR replaces the previous PowerShell-based clipboard paste mechanism with a native keyboard emulation approach using Nut.js library. This includes adding the Nut.js dependency, updating build configuration to unbundle native libraries, and rewriting the paste implementation to simulate platform-specific keyboard shortcuts (Cmd+V on macOS, Ctrl+V elsewhere) instead of running external scripts. ChangesClipboard Paste Mechanism Migration
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
keybd_eventscript to@nut-tree-fork/nut-jskeyboard events.Cmd+Von macOS andCtrl+Velsewhere.libnutbinaries for packaging.Testing
apps/desktop/main.cjsto ensure paste now uses NutJS key presses and releases.apps/desktop/package.jsonincludes@nut-tree-fork/nut-jsand theasarUnpackrule forlibnutbinaries.Summary by CodeRabbit