Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Commit d916417

Browse files
committed
FIX: IMEX module commands & menus
1 parent a796bc7 commit d916417

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

lib/snippet-injector.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export default {
5555
}));
5656
// IMEX commmands
5757
this.subscriptions.add(atom.commands.add('atom-workspace', {
58-
'snippet-injector:export-to-csv': function() {_this.imex_module.storage_export('csv')}
58+
'snippet-injector:export-to-csv': function() {_this.imex_module.storage_export('csv')},
59+
'snippet-injector:import': function() {_this.imex_module.storage_import()}
5960
}));
6061

6162
if(window.localStorage.getItem('snippet-injector-debug') === 'true') {

menus/snippet-injector.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,17 @@
5252
"type": "separator"
5353
},
5454
{
55-
"label": "Export",
55+
"label": "Export Snippets",
5656
"submenu": [
5757
{
5858
"label": "CSV",
5959
"command": "snippet-injector:export-to-csv"
6060
}
6161
]
62+
},
63+
{
64+
"label": "Import Snippets",
65+
"command": "snippet-injector:import"
6266
}
6367
]
6468
}

0 commit comments

Comments
 (0)