Opening source map files in a local editor from devtools

458 views
Skip to first unread message

ke...@keminglabs.com

unread,
Jun 30, 2013, 8:33:24 PM6/30/13
to google-chrome-...@googlegroups.com
I'm using SASS source maps in Canary (command-click a CSS property to see the originating line in the SASS file).
However, what I really want to do is open the SASS file in my local editor (e.g., Emacs, Vi, Sublime Text, &c.).

I've done a lot of digging, and there's no obvious way to do this.
As far as I can tell, the only thing that would work is to use a forked version of the dev tools via a Chrome extension and have it either:

+ use NPAPI calls (https://developer.chrome.com/extensions/npapi.html) to run a system command, or
+ send requests to a server running on localhost that can spawn an editor

Am I missing something, or would this be the easiest way to open up source map sources in a native editor?

thanks,

Kevin

Vsevolod Vlasov

unread,
Jul 1, 2013, 3:15:34 AM7/1/13
to ke...@keminglabs.com, Google Chrome Developer Tools


--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Kevin Lynagh

unread,
Jul 1, 2013, 11:18:46 AM7/1/13
to Vsevolod Vlasov, Google Chrome Developer Tools
Oh, this looks right, thanks!
Any suggestions for how to make the native call to open the editor?
Some tricks within Chrome or do I need a local server to do the dirty work?
--
Kevin Lynagh
Keming Labs
http://keminglabs.com
888.502.1042

Vsevolod Vlasov

unread,
Jul 1, 2013, 3:13:50 PM7/1/13
to Kevin Lynagh, Google Chrome Developer Tools
From what I saw folks usually use some simple node.js script for that.
http://www.livingdigitally.net/2012/06/controlling-web-based-music-players-with-global-keyboard-shortcuts.html is a nice and simple example of controlling Google Music with the global shortcuts through a chrome extension. Should be fairly straightforward to adopt it for your use case.
Reply all
Reply to author
Forward
0 new messages