Skip to content

Add "Reveal in file manager" action to the file viewer - #342

Open
aalquwayfili wants to merge 1 commit into
alphaXiv:mainfrom
aalquwayfili:reveal-in-file-manager
Open

aalquwayfili wants to merge 1 commit into
alphaXiv:mainfrom
aalquwayfili:reveal-in-file-manager

Conversation

@aalquwayfili

@aalquwayfili aalquwayfili commented Sep 15, 2026

Copy link
Copy Markdown

Closes #147.

The file viewer can only download a binary or unrecognized file, and on most systems that saves an extensionless file the browser flags as suspicious, so there's no easy way to just find it on disk. This adds a "Reveal in file manager" button next to "Open in default editor":

  • macOS: open -R (Finder, file selected)
  • Windows: explorer /select, (Explorer, file selected)
  • Linux: xdg-open on the containing folder (no portable "select" call)
openresearch_pr

Backend mirrors open_in_default_app / open_project_file with the same path confinement, and is added to remote_route_forbidden like the open route. Frontend mirrors the existing open-in-editor button; new string added to all three locales.

Checks run locally: cargo fmt/build/test, i18n + style lint, UI typecheck, dev-slot + UI unit tests, and pnpm build to regenerate ui/dist.

Binary and unrecognized files can only be downloaded from the viewer,
which on most systems saves a scary extensionless file instead of
showing where it lives. Add a reveal action next to "Open in default
editor" that opens the OS file manager with the file selected (Finder
on macOS, Explorer on Windows) or the containing folder on Linux.

Mirrors open_in_default_app / open_project_file with the same path
confinement, and is blocked for remote sessions like the open route.

Closes alphaXiv#147
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Raw files

1 participant