From 7fbfc7de2042e0315e34dbfdc963deba37413115 Mon Sep 17 00:00:00 2001 From: Kiril Videlov Date: Wed, 28 Jun 2023 10:11:40 +0200 Subject: [PATCH] Disable command palette It's a good supporting featured, but it was not made with virtual branches in mind. In it's current state it only introduces confusions, and it's probably not functioning correctly. --- src/routes/+layout.svelte | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index cec4fcd5d..8090b2676 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -4,7 +4,7 @@ import { open } from '@tauri-apps/api/dialog'; import { toasts, Toaster, events, hotkeys, stores } from '$lib'; import type { LayoutData } from './$types'; - import { Link, CommandPalette } from '$lib/components'; + import { Link } from '$lib/components'; import { page } from '$app/stores'; import { derived } from '@square/svelte-store'; import { onMount } from 'svelte'; @@ -24,7 +24,6 @@ projects?.find((project) => project.id === page.params.projectId) ); - let commandPalette: CommandPalette; let linkProjectModal: LinkProjectModal; let shareIssueModal: ShareIssueModal; @@ -45,12 +44,9 @@ }) .catch((e: any) => toasts.error(e.message)) ), - events.on('openCommandPalette', () => commandPalette?.show()), - events.on('closeCommandPalette', () => commandPalette?.close()), events.on('goto', (path: string) => goto(path)), events.on('openSendIssueModal', () => shareIssueModal?.show()), - hotkeys.on('Meta+k', () => events.emit('openCommandPalette')), hotkeys.on('Meta+,', () => events.emit('goto', '/users/')), hotkeys.on('Meta+Shift+N', () => events.emit('openNewProjectModal')), @@ -93,10 +89,6 @@ - {#await Promise.all([projects.load(), project.load()]) then} - - {/await} -