MCPcopy Create free account
hub / github.com/massCodeIO/massCode / getCommandDefinitions

Function getCommandDefinitions

src/renderer/composables/useCommandPalette.ts:1218–1328  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1216}
1217
1218function getCommandDefinitions(): CommandPaletteCommand[] {
1219 return [
1220 {
1221 id: 'new-snippet',
1222 title: i18n.t('commandPalette.actions.newSnippet'),
1223 subtitle: i18n.t('commandPalette.actions.newSnippetSubtitle'),
1224 icon: getSpaceIcon('code'),
1225 keywords: ['create', 'code', 'snippet'],
1226 spaceId: 'code',
1227 run: createSnippetFromPalette,
1228 },
1229 {
1230 id: 'new-code-folder',
1231 title: i18n.t('commandPalette.actions.newCodeFolder'),
1232 subtitle: i18n.t('commandPalette.actions.newCodeFolderSubtitle'),
1233 icon: getSpaceIcon('code'),
1234 keywords: ['create', 'code', 'folder'],
1235 spaceId: 'code',
1236 run: createCodeFolderFromPalette,
1237 },
1238 {
1239 id: 'import-snippets',
1240 title: i18n.t('commandPalette.actions.importSnippets'),
1241 subtitle: i18n.t('commandPalette.actions.importSnippetsSubtitle'),
1242 icon: Upload,
1243 keywords: [
1244 'import',
1245 'vscode',
1246 'raycast',
1247 'github',
1248 'gist',
1249 'gists',
1250 'snippetslab',
1251 'snippet',
1252 'snippets',
1253 ],
1254 spaceId: 'code',
1255 run: () => openImportFromPalette('vscode-snippets', 'code'),
1256 },
1257 {
1258 id: 'new-note',
1259 title: i18n.t('commandPalette.actions.newNote'),
1260 subtitle: i18n.t('commandPalette.actions.newNoteSubtitle'),
1261 icon: getSpaceIcon('notes'),
1262 keywords: ['create', 'notes', 'note'],
1263 spaceId: 'notes',
1264 run: createNoteFromPalette,
1265 },
1266 {
1267 id: 'new-notes-folder',
1268 title: i18n.t('commandPalette.actions.newNotesFolder'),
1269 subtitle: i18n.t('commandPalette.actions.newNotesFolderSubtitle'),
1270 icon: getSpaceIcon('notes'),
1271 keywords: ['create', 'notes', 'note', 'folder'],
1272 spaceId: 'notes',
1273 run: createNotesFolderFromPalette,
1274 },
1275 {

Callers 1

Calls 2

getSpaceIconFunction · 0.85
openImportFromPaletteFunction · 0.85

Tested by

no test coverage detected