mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-24 05:29:51 +03:00
add terminal navigation to command palette
This commit is contained in:
parent
48c7779453
commit
96b70d0eaf
@ -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())
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user