Show a copied file in Finder or Explorer
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 82/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- electron, react, typescript
- Domain
- desktop
Research direction
Start with src/main/ipc.ts and follow the existing op:reveal-data flow, then read the listed shared API, preload, mock API, shelf menu, inspector, and environment files. Run pnpm typecheck and the checks in CONTRIBUTING.md. Done when both file actions reveal the selected file in its folder with an OS-appropriate label, missing files do not crash, and the pull request states which OS you tested.
Written by the indexing model from the issue text.
Description
File cards keep the paths of the files you copied, but there's no way to jump to them. Add a "Show in Finder" action (macOS), "Show in Explorer" (Windows) or "Show in folder" (Linux) to a file card's right-click menu and to the inspector, using Electron's shell.showItemInFolder.
This touches each layer of the app once, so it's a good way to learn how the shelf talks to the main process.
Where to look
src/main/ipc.ts: add anop:reveal-itemhandler next toop:reveal-data. Have it take the item's id, look the item up withstore.getand revealitem.files[0], so the shelf can't ask for an arbitrary path to be openedsrc/shared/types.ts: addrevealItem(id: string): voidtoOpenPasteAPIsrc/preload/index.ts: wirerevealItemto the new channel, likerevealDataFoldersrc/renderer/src/demo/mockApi.ts: a no-op, likerevealDataFolder, sopnpm typecheckpassessrc/renderer/src/shelf/shelf-app/shelf-app.tsx: amenuEntriesentry foritem.kind === 'file'. Thefoldericon already existssrc/renderer/src/shelf/shelf-app/components/inspector/inspector.tsx: a button among the actions for file itemssrc/renderer/src/env.ts:platformandisMac, for picking the label
Done when
- Right-clicking a file card and choosing the new action opens the file's folder with the file selected. The inspector's button does the same
- The label matches the OS
- Revealing a file that's since been moved or deleted doesn't crash or throw
- The pull request says which OS you tested on
Suggested pull request title: feat(shelf): show copied files in Finder or Explorer
New to OpenPaste? CONTRIBUTING.md covers setup, the code conventions and the checks to run before a pull request (pnpm typecheck, pnpm test, pnpm format, pnpm cleaner). Leave a comment if you're picking this up so nobody doubles up.
Generated by Claude Code
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from alexsilver8/openpaste
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
alexsilver8/openpaste#31 ·
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
alexsilver8/openpaste#32 ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
alexsilver8/openpaste#30 ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
alexsilver8/openpaste#29 ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
alexsilver8/openpaste#27 ·
All issues in alexsilver8/openpaste
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 83/100
Zettlr/Zettlr#6610 · 1 comment ·
Maintainers usually reply within 1 day
-
Feil lovtekst i bekreftelsen når leder melder unntak fra oppfølgingsplanPossibly taken @AudunSorheim claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
navikt/syfo-oppfolgingsplan-frontend#1110 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
db-ux-design-system/core-web#8461 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Cannot run an integration on windows when power shell is selected as the default profile terminalOpenPriority/Blocker Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
wso2/product-integrator#2767 ·
Maintainers usually reply within 1 day