Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Possible solution for Show in OS on Linux. #8708

Closed
yramagicman opened this issue Aug 10, 2014 · 3 comments
Closed

Possible solution for Show in OS on Linux. #8708

yramagicman opened this issue Aug 10, 2014 · 3 comments

Comments

@yramagicman
Copy link

I'm coming into this with no context, so forgive me if I'm mentioning something that's been tried. I did search the issues on github and I didn't see anything similar, although it's quite possible I just missed it.

Could you use node.js exec() and leverage xdg-open to accomplish a similar result. The code might look like this:

var file;
if (fileType(selectedFile === "directory") {
    file = selectedFile;
} else {
    file = selectedFile.getParentDirectory(); //theoretical function
}
var exec = require('child_process').exec,
exec('xdg-open' + file, function(error, stdin, stdout){
   console.log('do stuff with stdin, stdout, and error');
});

This (exec('xdg-open ' + file, ...);) works on my Arch linux machine when run from the node console. I just don't know if it would work in the context of Brackets, or how to integrate it with Brackets.

This would at least get people in the right directory. I don't know about Nautilus, but in Thunar, once I'm in the right directory, I can just start typing the name of the desired file, and if it's there and visible, Thunar will find it and highlight it. It's not "Show in Finder" by any stretch, but it's better than nothing.

@ingorichter
Copy link
Contributor

@yramagicman this PR adobe/brackets-shell#473 takes care of the issue in the native shell

@peterflynn
Copy link
Member

I think it's safe to close this since the xdg-open suggestion is now part of the PR mentioned above, and the overall missing feature is already tracked on our backlog.

@ingorichter
Copy link
Contributor

Closing in favor of adobe/brackets-shell#473.

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

No branches or pull requests

4 participants