-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
51 lines (42 loc) · 1.08 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*-----------------------------------------------------------------------------
| Copyright (c) 2014-2015, PhosphorJS Contributors
|
| Distributed under the terms of the BSD 3-Clause License.
|
| The full license is in the file LICENSE, distributed with this software.
|----------------------------------------------------------------------------*/
'use strict';
/**
* Application imports.
*/
var phosphide = require('phosphide/lib/core/application');
var commands = require('phosphide/lib/extensions/commandpalette');
var data = require('data/index');
/**
* Create the application.
*/
var app = new phosphide.Application({
extensions: [
commands.commandPaletteExtension,
data.dataExtension
]
});
/**
* Post-creation setup.
*/
window.onload = () => {
app.run().then(() => {
app.shortcuts.add([
{
command: 'command-palette:toggle',
sequence: ['Accel Shift P'],
selector: '*'
},
{
command: 'command-palette:hide',
sequence: ['Escape'],
selector: '[data-left-area="command-palette"]'
}
]);
});
}