0

I'm just getting started with Chrome extensions and I was wondering if this is feasible.

I'll often navigate to a local HTML file and open it up for viewing in Chrome. I'd like to be able to click an extension's icon to automatically take that local file URL and open up the file in a text editor installed on my computer (like Sublime Text for example).

As some commenters have pointed out, a duplicate question was asked 6 years ago. The accepted answer is deprecated today, but a more up-to-date answer (3 years ago) cites the native messaging API as a possible solution.

I'm hoping someone with a great understanding of it can tell me whether or not my end goal here is possible using this tech.

Community
  • 1
  • 1
jkupczak
  • 2,891
  • 8
  • 33
  • 55
  • Only if it was downloaded in Chrome. https://developer.chrome.com/extensions/downloads#method-open – Daniel Herr Sep 27 '16 at 21:16
  • 2
    Well, you can register a [custom protocol](https://stackoverflow.com/a/39059878) or make a nativeMessaging host utility that will be able to do anything. – wOxxOm Sep 27 '16 at 21:17
  • @Makyen That question is sadly massively outdated. – Xan Sep 28 '16 at 09:55
  • @Xan, Then that older question should receive new answers detailing how solutions should be accomplished now. At an absolute minimum, the OP should have done some searching to find other potential answers. This Question should contain an explanation why any other (obvious/easily found) duplicate questions are not duplicates and/or why such solutions presented as answers to those questions are not working/acceptable in the current situation. Alternately, a bounty can be posted on the duplicate question asking for more current answers. – Makyen Sep 28 '16 at 10:19
  • @Makyen The problem with such question is that they have massively upvoted answers that overshadow newer answers, and the OP usually doesn't answer to requests to change the accepted answer. – Xan Sep 28 '16 at 10:20
  • @Xan, The OP should not change the accepted answer. The [acceptance indicates that it is the solution which the OP actually used to solve *their* problem](http://stackoverflow.com/help/accepted-answer). It does not indicate the best current solution. Yes, new, current/better solutions can take considerable time (even years) to migrate up to similar levels of up-votes. That is part of how Stack Exchange works. An additional thing you can do is to leave comments to the effect that the solution is no longer works on older answers which you have tried and found to no longer be functional. – Makyen Sep 28 '16 at 10:28

0 Answers0