Skip to content

Commit

Permalink
Updated module, tested, cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
DKunin committed Jul 24, 2017
1 parent a56986c commit 0c6e1c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Barebones simple server, to open files in your favorite editor from whereever po
### Select your favorite editor:

- Sublime
- Vim
- Atom
- VScode
- Webstorm
Expand All @@ -32,5 +33,6 @@ Now set your tools (extentions and stuff) to call:
And it will open your editor on specified line and column.

### Changelog
- 3.0.1 vim support, substituted main opener module
- 2.0.0 Support for different major editors, no need to fiddle with editor path
- 1.1.1 Updated tray icon for retina
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@
"main": "./src/main.js",
"dependencies": {
"electron-config": "^1.0.0",
"env-editor": "^0.3.1",
"execa": "0.6.3",
"express": "^4.15.3",
"line-column-path": "1.0.0",
"open-in-editor": "2.2.0",
"opn": "5.0.0"
"open-in-editor": "2.2.0"
},
"devDependencies": {
"electron": "^1.4.10",
Expand Down
10 changes: 2 additions & 8 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,8 @@ app.get('/openeditor', function(req, res) {
},
() => {}
);
editorFunc.open(options).then(
function() {
res.sendStatus('Success');
},
function(err) {
res.sendStatus(err);
}
);
editorFunc.open(options);
res.send('ok');
});

module.exports = {
Expand Down

0 comments on commit 0c6e1c3

Please sign in to comment.