Open mafintosh opened 7 years ago
For cross-platform perhaps "Open data folder"?
And we're already using https://www.npmjs.com/package/open for URLs, so this should be trivially easy to implement.
Since you're using Electron, I think it would be better to use shell.showItemInFolder()
.
thanks @sindresorhus, any particular reason?
@blahah It's better as it uses native APIs instead of being a wrapper over some command-line tools. I'm by the way the maintainer of opn
, a maintained and better alternative to the open
module you mention.
Thanks @sindresorhus - looks like we should switch from open
to opn
, and we'll use shell.showItemInFolder()
as suggested.
Would be nice to have an "Open in Finder" option when reading a paper that just open the folder where the data is stored