org-projects.ts29 lines · main
| 1 | // @ts-nocheck |
| 2 | import { SHORTCUT_REFERENCE_GROUPS } from '../referenceGroups' |
| 3 | import { RegistryDefinations } from '../types' |
| 4 | |
| 5 | export const ORG_PROJECTS_SHORTCUT_IDS = { |
| 6 | ORG_PROJECTS_NEW: 'org.projects-new', |
| 7 | ORG_PROJECTS_SEARCH: 'org.projects-search', |
| 8 | } as const |
| 9 | |
| 10 | export type OrgProjectsShortcutId = |
| 11 | (typeof ORG_PROJECTS_SHORTCUT_IDS)[keyof typeof ORG_PROJECTS_SHORTCUT_IDS] |
| 12 | |
| 13 | export const orgProjectsRegistry: RegistryDefinations<OrgProjectsShortcutId> = { |
| 14 | [ORG_PROJECTS_SHORTCUT_IDS.ORG_PROJECTS_NEW]: { |
| 15 | id: ORG_PROJECTS_SHORTCUT_IDS.ORG_PROJECTS_NEW, |
| 16 | label: 'New project', |
| 17 | sequence: ['Shift+N'], |
| 18 | referenceGroup: SHORTCUT_REFERENCE_GROUPS.ORG_PROJECTS, |
| 19 | options: { ignoreInputs: true, registerInCommandMenu: true }, |
| 20 | }, |
| 21 | [ORG_PROJECTS_SHORTCUT_IDS.ORG_PROJECTS_SEARCH]: { |
| 22 | id: ORG_PROJECTS_SHORTCUT_IDS.ORG_PROJECTS_SEARCH, |
| 23 | label: 'Search projects', |
| 24 | sequence: ['Shift+F'], |
| 25 | showInSettings: false, |
| 26 | referenceGroup: SHORTCUT_REFERENCE_GROUPS.ORG_PROJECTS, |
| 27 | options: { ignoreInputs: true, registerInCommandMenu: true }, |
| 28 | }, |
| 29 | } |