-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
21 lines (18 loc) · 845 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"use babel";
let HideItems = require("./lib/hide_items.js");
module.exports = {
activate(state) {
this.hideItems = new HideItems(state.itemsPaths, state.parents);
atom.commands.add("atom-workspace", "hide-files:hide-file",
this.hideItems.hideItemCommand.bind(this.hideItems));
atom.commands.add("atom-workspace", "hide-files:hide-directory",
this.hideItems.hideItemCommand.bind(this.hideItems));
atom.commands.add("atom-workspace", "hide-files:unhide-project-files",
this.hideItems.unhideItems.bind(this.hideItems));
atom.commands.add("atom-workspace", "hide-files:unhide-children",
this.hideItems.unHideChildren.bind(this.hideItems));
},
serialize() {
this.hideItems.serialize();
}
};