Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
updating README with installation instructions
- Loading branch information
1 parent
286d6f4
commit 755a735
Showing
1 changed file
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,18 +1,29 @@ | |||
## My first Redcar plugin | ## My first Redcar plugin | ||
|
|
||
The idea for my first plugin is rather ambitious considering I’ve no idea how to write a plugin. | The idea for my first plugin is rather ambitious considering I’ve no idea how | ||
I’d like to replicate some of the functionality of Live Reload – basically refresh a browser web page whenever I save a file in Redcar. This will save me constantly hitting refresh in the browser when working with Backbone.js. | to write a plugin. | ||
I’d like to replicate some of the functionality of Live Reload – basically | |||
refresh a browser web page whenever I save a file in Redcar. This will save me | |||
constantly hitting refresh in the browser when working with Backbone.js. | |||
|
|
||
I’m hoping to trap the save event of Redcar and call out to my browser (Chrome) and tell it to refresh the page. | I’m hoping to trap the save event of Redcar and call out to my browser (Chrome) | ||
and tell it to refresh the page. | |||
|
|
||
More info here [http://justinram.wordpress.com/2011/08/19/my-first-redcar-plugin/] | More info here [http://justinram.wordpress.com/2011/08/19/my-first-redcar-plugin/] | ||
|
|
||
## How to use | ## Installation | ||
cd ~/.redcar/plugins | |||
git clone git@github.com:justinramel/redcar_plugin_live_reload.git | |||
|
|
||
Open the directory which contains your html file using File -> Open Directory. This is important or the plugin will not work! | ## How to use | ||
Open the directory which contains your html file using File -> Open Directory. | |||
This is important or the plugin will not work! | |||
|
|
||
Configure the plugin via the Redcar plugin preferences - Redcar -> Preferences... -> live_reload_plugin.yaml | Configure the plugin via the Redcar plugin preferences - Redcar -> | ||
Preferences... -> live_reload_plugin.yaml | |||
|
|
||
Set the keyword to the title of the Chrome browser tab you'd like to refresh on save. | Set the keyword to the title of the Chrome browser tab you'd like to refresh on | ||
save. | |||
|
|
||
That's should be it, now every time you save in Redcar the chrome browser tab should refresh. | That's should be it, now every time you save in Redcar the chrome browser tab | ||
should refresh. |