From 597a6582a930e13ad2ebab5ad3ca397f96f05381 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 29 Apr 2026 08:08:41 +0000 Subject: [PATCH] feat(keyboard): add Alt+E and Alt+Delete shortcuts in summary pane Alt+E opens the edit modal for the active card; Alt+Delete deletes it. Complements existing Alt+Arrow navigation and Enter jump-to-source. https://claude.ai/code/session_012cK5rUGQvqkuxUZ59x7dLn --- src/view.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/view.ts b/src/view.ts index dc24b5f..c48368a 100644 --- a/src/view.ts +++ b/src/view.ts @@ -378,6 +378,20 @@ export class ParallelReaderView extends ItemView { this.moveActiveSection(1); return; } + if (e.altKey && (e.key === 'e' || e.key === 'E')) { + if (this.activeIdx >= 0) { + e.preventDefault(); + this.openEditCardModal(this.activeIdx); + } + return; + } + if (e.altKey && e.key === 'Delete') { + if (this.activeIdx >= 0) { + e.preventDefault(); + void this.deleteCard(this.activeIdx); + } + return; + } if (!e.altKey && !e.metaKey && !e.ctrlKey && !e.shiftKey && e.key === 'Enter') { const line = this.jumpToActiveSection(); if (line >= 0) e.preventDefault();