Question for all you webdev guys/gals who have found a minimal-hassle development environment.
- OS: Win7
- Editor: JEdit
- Task: Previewing work in a web browser
I would like to program a single hotkey to pack the following series of hotkeys into one. I use this sequence many times a day to preview my work in a browser.
The key commands are:
- (from JEdit) ctrl + e ctrl + s [save all files]
- (win) alt + tab [switch me over to browser]
- (browser) ctrl + r [reload page]
I have not used Dreamweaver or flash in years but I remember punching f12 or ctrl + enter and having a browser pull up previewing the current work file. I am looking for a similar workflow but I cannot simply link to the saved file on disk. I need to look at the file through a local webserver. Typically I just have the browser open to the page I need and refresh it when I need to preview what I have done.
Another issue is the alt+tab step is not explicit enough. Often times the browser is not correctly sequenced in the open apps list to get to it without multiple tabs.
Thanks for any suggestions, workflow tips, etc.
Note that the Java beanshell
exec
command is non-blocking, so if you want to do anything else after executing the command, you may have to insert a sleep like: