log-drains.ts26 lines · main
1// @ts-nocheck
2import { RegistryDefinations } from '../types'
3
4export const LOG_DRAINS_SHORTCUT_IDS = {
5 LOG_DRAINS_ADD_DESTINATION: 'log-drains.add-destination',
6 LOG_DRAINS_SAVE_DESTINATION: 'log-drains.save-destination',
7}
8
9export type LogDrainsShortcutId =
10 (typeof LOG_DRAINS_SHORTCUT_IDS)[keyof typeof LOG_DRAINS_SHORTCUT_IDS]
11
12export const logDrainsRegistry: RegistryDefinations<LogDrainsShortcutId> = {
13 [LOG_DRAINS_SHORTCUT_IDS.LOG_DRAINS_ADD_DESTINATION]: {
14 id: LOG_DRAINS_SHORTCUT_IDS.LOG_DRAINS_ADD_DESTINATION,
15 label: 'Add destination',
16 sequence: ['Shift+N'],
17 showInSettings: false,
18 options: { ignoreInputs: true, registerInCommandMenu: true },
19 },
20 [LOG_DRAINS_SHORTCUT_IDS.LOG_DRAINS_SAVE_DESTINATION]: {
21 id: LOG_DRAINS_SHORTCUT_IDS.LOG_DRAINS_SAVE_DESTINATION,
22 label: 'Save destination',
23 sequence: ['Mod+Enter'],
24 showInSettings: false,
25 },
26}