akurath
Version:
IDE Frontend for codepsaces.io
26 lines (23 loc) • 571 B
JavaScript
define([
'views/commands/palette',
'core/commands/toolbar',
'core/search'
], function (PaletteView, commands, search) {
var palette = new PaletteView({
searchHandler: _.bind(search.query, search)
});
commands.register("palette.toggle", {
title: "Palette",
description: "Toggle Command Palette",
icons: {
'default': "search",
},
position: 0,
shortcuts: [
"mod+shift+p", "alt+s"
]
}, function() {
palette.toggle();
});
return palette;
});