Sublime Text Plugin: Activate & reload Chrome with a keyboard shorcut
github.com
github.com
1. Open Automator
2. Select Service
3. Search for run Applescript
4. Copy and paste one of the following Applescripts
5. Change the Service receives selected drop down list to "No input"
6. Save the service (Automator will ask you what to name it)
You can then find the service under "Services" inside the Application's Menu.You can also assign it to a global shortcut by:
1. Open the Keyboard section in System Preferences
2. Find your service under the Services list
3. Click the service to reveal the Add Shortcut button
4. Type the shortcut (Like Command+Ctrl+R)
Applescript for Safari: on run
tell application "Safari"
do JavaScript "window.location.reload()" in current tab of window 1
activate
end tell
end run
Applescript for Chrome: on run
tell application "Google Chrome" to tell the active tab of its first window
reload
end tell
tell application "Google Chrome" to activate
end runI have shortcut keys that send me to all of my most-used programs. For example, winkey+y moves me to chrome (if there are many open, it will cycle through them). winkey+s to Sublime Text, winkey+t to Total Commander, winkey+b to vim.
They're incredibly easy to write, and adding a refresh into it is child's play (just add a ctrl+r after moving to the window in the script).
http://www.autohotkey.net/~joten/bug.n.html
A guy made DWM (a keyboard-operated tiling window manager[1]) for Windows using AutoHotkey scripts. And I have to tell, after testing it for some time, it is amazing (and tiling WMs are amazing in general).
Also LiveReload allows you to run it on another sevrer.
If you map it to a global hotkey, you're not limited to using it in any one program.
What a rollercoaster of emotions you put me through