title: Sublime Text 2 - open file at specific url address
body: <p>When I'm editing an html file in Sublime Text 2, I'd like to open it in Chrome to view it.  Ideally, I'd perform a keyboard shortcut to do this.</p>
  
  <p>I've created a custom 'Chrome' build file for this and it opens the file in Chrome upon each save of the file. This is fine, but the problem is that it opens the files at the url of:</p>
  
  <pre><code>file://localhost/Users/scott/Sites/my-new-site/video.html
  </code></pre>
  
  <p>I'd rather it opens a file at:</p>
  
  <pre><code>http://localhost/~scott/my-new-site/video.html
  </code></pre>
  
  <p>i.e. i'd like to have it know where the file is, replace:</p>
  
  <pre><code>replace('file://localhost/Users/scott/Sites/')
  with 'http://localhost/~scott'  
  and open Chrome at that newly assembled url
  </code></pre>
  
  <p>Does anyone know how to do this?  is this a customization to my build file?  or is this another plugin that someone knows about?</p>
  
  <h2>Update</h2>
  
  <p>I did try <a href="https://github.com/adampresley/sublime-view-in-browser" rel="nofollow">https://github.com/adampresley/sublime-view-in-browser</a> ST2 plugin.  And while it DOES work, I'd have to edit the project configs for each project I want to open in this way.  This is a bit of a pain as I don't necessarily edit all of my projects in ST2.  I'd rather there were a centralized way that I can assume the the files I open are relative to my local server's DocumentRoot... which /Users/scott/Sites is.</p>
  
  <p>Thanks,  Scott</p>