Comments (9)
Some thoughts on possible enhancement. Would these be desirable or not:
- Focus window
- Open web inspector if closed
- Open console if closed
- Show evaluation input in console in the same way that highlighting code in the sources pane of web inspector, right clicking and selecting Evaluate in Console, does.
from sublime-jsrun.
An option for this might be the best thing to do IMO.
I personally don't need it because I like switching manually, I don't want the tools to take over my actions too much. Maybe I want to run 5 different commands first before switching to the browser… or something.
I think opening the console when needed could be something that might be in the extension by default.
from sublime-jsrun.
Thanks for your input :)
I'm thinking focus_browser
and open_console
options. Sounds good?
However, I can't promise anything on the opening of console. I don't have a lot of AppleScript fu.
from sublime-jsrun.
SGTM.
from sublime-jsrun.
Yep, I can live with that :)
from sublime-jsrun.
My vote would also be for the option. On opening the console, we do support this via a flag but there are situations where it isn't reliable. Can dig up more info if needed.
from sublime-jsrun.
@addyosmani The problem is that the user most likely already have the browser open. I'm pretty sure flags only work when starting Chrome. Correct me if I'm wrong.
I was thinking of just executing Option+Command+J using AppleScript. The biggest hurdle is detection if the Dev Tools is already open.
Suggestions on anything more than welcome :)
from sublime-jsrun.
A couple of links that might be helpful, but not sure how you'd get this info to your plugin:
https://github.com/adamschwartz/chrome-inspector-detector
from sublime-jsrun.
Closing as I don't care anymore.
https://github.com/lsegal/atom-runner looks like a much better plugin ;)
from sublime-jsrun.
Related Issues (14)
- Double quotes aren't supported HOT 1
- Nothing happens after selecting "run Javascript in browser" HOT 3
- Add global keyboard shortcut HOT 7
- Windows Support HOT 5
- config HOT 1
- I can't find the plugin HOT 5
- Can't install via Package Manager on OSX HOT 7
- Investigate use of WebDriver
- Upgrade to ST3 HOT 3
- Linux support HOT 1
- Windows support HOT 3
- Screencast
- iOS simulator support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sublime-jsrun.