feat: cmd+shift+delete deletes the highlighted conversation (#11)

This commit was merged in pull request #11.
This commit is contained in:
2026-10-03 21:45:09 +00:00
parent ac2da73669
commit 75fc914eca
3 changed files with 6 additions and 2 deletions
+3
View File
@@ -235,6 +235,9 @@ export function ChatView({ initialSession, initialPrompt }: ChatViewProps) {
title="Delete Conversation"
icon={Icon.Trash}
style="destructive"
// The key macOS labels "delete" is backspace. Vicinae's key map has
// `"backspace" -> Qt::Key_Backspace`, which it renders as the ⌫ token.
shortcut={{ key: "backspace", modifiers: ["cmd", "shift"] }}
onAction={() => removeSession(row.id)}
/>
</ActionPanel>
+2 -1
View File
@@ -94,7 +94,8 @@ export default function SessionsCommand() {
title="Delete Conversation"
icon={Icon.Trash}
style="destructive"
shortcut={{ key: "backspace", modifiers: ["cmd"] }}
// Matches the chat view, so one shortcut means one thing across both commands.
shortcut={{ key: "backspace", modifiers: ["cmd", "shift"] }}
onAction={() => remove(summary.id)}
/>
<Action