Skip to content

Commit efc1d5d

Browse files
committed
Add editor section in readme
1 parent be28343 commit efc1d5d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,13 @@ Trigger a notification every time. Call it "noisy-mode".
8383
```js
8484
new WebpackNotifierPlugin({alwaysNotify: true});
8585
```
86+
87+
### Editor
88+
89+
Opens the file in your editor when the notification is clicked.
90+
91+
Takes a command and a list or arguments interpreted as template strings. Available options are `file`, `line` and `column`. Note that lines and columns of errors are only set when using a preprocessor like babel.
92+
93+
```js
94+
new WebpackNotifierPlugin({ editor: { command: 'atom', args: ['${file}:${line}'] } });
95+
```

0 commit comments

Comments
 (0)