diff --git a/src/lib/components/CommandPalette/CmdK.svelte b/src/lib/components/CommandPalette/CmdK.svelte index b29832468..4276aaa9a 100644 --- a/src/lib/components/CommandPalette/CmdK.svelte +++ b/src/lib/components/CommandPalette/CmdK.svelte @@ -116,6 +116,16 @@ }, icon: RewindIcon, visible: 'replay history'.includes(userInput?.toLowerCase()) + }, + { + title: 'Terminal', + description: 'Cmd C', + selected: false, + action: { + href: `/projects/${$project?.id}/terminal` + }, + icon: GitCommitIcon, + visible: 'commit'.includes(userInput?.toLowerCase()) } ] }, diff --git a/src/lib/components/CommandPalette/CommandPalette.svelte b/src/lib/components/CommandPalette/CommandPalette.svelte index 74b3cbffb..e8f8edc4c 100644 --- a/src/lib/components/CommandPalette/CommandPalette.svelte +++ b/src/lib/components/CommandPalette/CommandPalette.svelte @@ -46,6 +46,11 @@ dialog === CmdK ? (dialog = undefined) : ((dialog = CmdK), (props = { projects, project })); + }, + 'Meta+t': () => { + if ($project) { + goto(`/projects/${$project.id}/terminal`); + } } }, false // works even when an input is focused