Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Add 'Show in Finder' context menu #47

Merged
merged 8 commits into from Mar 7, 2014
Merged

Add 'Show in Finder' context menu #47

merged 8 commits into from Mar 7, 2014

Conversation

heyvito
Copy link
Contributor

@heyvito heyvito commented Feb 27, 2014

This adds a new 'Open in Finder' context menu item. Also fixes #44.

@heyvito
Copy link
Contributor Author

heyvito commented Feb 27, 2014

You're right. My intention was just to show 'Open in Finder' to folder objects, but I'm not sure how to update the context menu items during the runtime, but let's build something functional. I'll change it to 'Show in Finder', and update the command.

bjtitus, I would like to know how to change the context menu text during runtime. Couldn't find how.

open -R is possible through the mac-open npm package.

I'll fix this asap.

@heyvito
Copy link
Contributor Author

heyvito commented Feb 27, 2014

Fixed. I'll update to Windows when I figure out how to update the context menu item text.

@heyvito
Copy link
Contributor Author

heyvito commented Feb 27, 2014

All done, @bjtitus. :shipit:

@@ -13,6 +13,9 @@
"fs-plus": "2.x",
"temp": "~0.6.0",
"theorist": "1.x",
"underscore-plus": "1.x"
"underscore-plus": "1.x",
"grunt": "~0.4.2",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was this grunt dependency needed for?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird, I don't recall adding this line.

Edit: Found. mac-open had grunt as a peerDependency. Just sent them a PR to fix this.

@kevinsawicki
Copy link
Contributor

I think for now just supporting Open In Finder is the right move since Atom only runs on Mac OS X right now and so only the behavior there can be tested and used

Support for Windows Explorer can be added when Windows support is added.

@heyvito
Copy link
Contributor Author

heyvito commented Mar 5, 2014

Okie dokie. I'll fix it asap.

@heyvito
Copy link
Contributor Author

heyvito commented Mar 7, 2014

Fixed. :shipit:

buttons:
'OK': null


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra newline

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 6f5ff58

showInFinder(entry.getPath(), { R: true })
catch error
atom.confirm
message: "Error showing #{entryType}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about: "Opening #{entryType} in Finder failed" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

kevinsawicki added a commit that referenced this pull request Mar 7, 2014
Add 'Show in Finder' context menu
@kevinsawicki kevinsawicki merged commit 3691995 into atom:master Mar 7, 2014
@kevinsawicki
Copy link
Contributor

Thanks for this, merged into master 🚢

@kevinsawicki
Copy link
Contributor

I switched this to not use mac-open because of that Grunt issue I saw you opened an issue for on that repo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "Reveal in file manager" item to right click menu
2 participants