lukehaas / RunJS

RunJS is a JavaScript playground for macOS, Windows and Linux. Write code with instant feedback and access to Node.js and browser APIs.
https://runjs.app
2.05k stars 45 forks source link

macOS feature: "Show (File) in Finder" #644

Open fritza opened 1 month ago

fritza commented 1 month ago

It's very common for Mac applications to include Show in Finder in the File menu. This brings the Finder to the foreground and displays the enclosing directory with the current file selected.

I could go all day about the rationale and how there is no equvalent "best practice:" The editor knows which identically-named file you're modifying even when you (frequently) don't.

You've done good work already on Mac compatibility; this shouldn't (?) be a big step forward.

Bonus:

Most Mac editor windows display the file path as a popup menu when you ⌘-click on the menu bar. Same effect, less effort.

lukehaas commented 1 month ago

Thanks @fritza. Could you provide any examples of editors that do this?

fritza commented 1 month ago

Less universal and harder to find than I thought, the only examplesI could find in a few minutes were… coding tools.


Automator:

Screenshot 2024-10-01 at 2 43 22 PM

BBEdit:

Screenshot 2024-10-01 at 2 30 03 PM

Xcode (middle of the File menu, I forgot the incantation for screenshotting a menu):

Screenshot 2024-10-01 at 2 36 40 PM
lukehaas commented 1 month ago

Thanks for providing those examples. I will give it some consideration.

You can currently see the file path by hovering the mouse over a tab, like this: Screenshot 2024-10-02 at 09 07 46