Command-History: stabile ID je Eintrag statt Index+Text-Abgleich

write_commands vergibt jedem Eintrag eine UUID; commands_delete löscht
darüber. Doppelklick oder ein zweites Fenster laufen ins 'bereits
entfernt' statt auf verschobene Indizes.
This commit is contained in:
marcus hinz
2026-07-20 13:37:02 +02:00
parent ab1c561d6c
commit 6682040cc0
5 changed files with 38 additions and 41 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ export async function wirePanel(
});
const cmdView = initCommandsView(
document.getElementById("commands-content")!,
(line, entry, cmd) => invoke("commands_delete", { project, line, entry, cmd }),
(id) => invoke("commands_delete", { project, id }),
);
// Treffer-Klick lädt das Dokument in den Dokument-Tab (dort editier- und
// archivierbar); der Sprung ins Wiki geht von dort aus.