Remove shortcuts again, just trigger command pallete

This commit is contained in:
Zef Hemel
2022-06-20 18:30:45 +02:00
parent 4ada18a213
commit 94d0e31b30
8 changed files with 29 additions and 110 deletions
-9
View File
@@ -9,12 +9,6 @@ export type Notification = {
date: Date;
};
export type ShortcutItem = {
label: string;
orderId?: number;
run: () => void;
};
export type AppViewState = {
currentPage?: string;
perm: "ro" | "rw";
@@ -34,7 +28,6 @@ export type AppViewState = {
allPages: Set<PageMeta>;
commands: Map<string, AppCommand>;
notifications: Notification[];
shortcutItems: ShortcutItem[];
recentCommands: Map<string, Date>;
showFilterBox: boolean;
@@ -60,7 +53,6 @@ export const initialViewState: AppViewState = {
commands: new Map(),
recentCommands: new Map(),
notifications: [],
shortcutItems: [],
showFilterBox: false,
filterBoxHelpText: "",
filterBoxLabel: "",
@@ -79,7 +71,6 @@ export type Action =
| {
type: "update-commands";
commands: Map<string, AppCommand>;
shortcutItems: ShortcutItem[];
}
| { type: "show-palette"; context?: string }
| { type: "hide-palette" }