Skip to content

Commit

Permalink
do not use deprecated APIs anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 15, 2015
1 parent f9a8bbf commit 5d74845
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions index.js
Expand Up @@ -8,9 +8,9 @@ module.exports = {
},

activate: function() {
atom.workspaceView.command('perltidy:tidy', function() {
atom.commands.add('atom-workspace', 'perltidy:tidy', function() {

var editor = atom.workspaceView.getActiveView().editor;
var editor = atom.workspace.getActiveTextEditor();
var path = atom.config.get('perltidy.binary');

if (fs.existsSync(path)) {
Expand Down Expand Up @@ -43,4 +43,4 @@ function perlTidy(path, before, cb) {
perltidy.stdout.on('data', function(chunk) {
after += chunk;
});
}
}
2 changes: 1 addition & 1 deletion keymaps/perltidy.json
@@ -1,5 +1,5 @@
{
".editor": {
"atom-workspace": {
"alt-p": "perltidy:tidy"
}
}
6 changes: 3 additions & 3 deletions package.json
@@ -1,11 +1,11 @@
{
"name": "perltidy",
"main": "./index.js",
"version": "0.7.0",
"version": "1.0.0",
"description": "Perltidy for Atom.",
"repository": "https://github.com/kraih/atom-perltidy",
"engines": {
"atom": ">0.50.0"
"atom": ">=0.174.0"
},
"dependencies": {}
}
}

0 comments on commit 5d74845

Please sign in to comment.