diff --git a/src/commands/cmds/wand.ts b/src/commands/cmds/wand.ts index 24a3db28..443c37a3 100644 --- a/src/commands/cmds/wand.ts +++ b/src/commands/cmds/wand.ts @@ -22,7 +22,7 @@ const hatchOf = (s: WandState, ctx: CommandContext): string | undefined => s.sticky.hatch === NONE ? undefined : (usable(ctx)[s.sticky.hatch] ?? usable(ctx)[0])?.id; export const wandCommand: Command = { - name: "wand", + name: "zauberstab", labelKey: "cmd.wand.label", prompt: () => "cmd.wand.point", accepts: () => ["point", "option"], diff --git a/src/commands/registry.test.ts b/src/commands/registry.test.ts index 62497ac0..1228822f 100644 --- a/src/commands/registry.test.ts +++ b/src/commands/registry.test.ts @@ -71,4 +71,10 @@ describe("Körper-Befehle (truck)", () => { expect(resolveCommand("bool")?.name).toBe("solidbool"); expect(resolveCommand("verschneiden")?.name).toBe("solidbool"); }); + + it("wand startet die Wand, zauberstab/zs den Zauberstab", () => { + expect(resolveCommand("wand")?.name).toBe("wall"); + expect(resolveCommand("zauberstab")?.name).toBe("zauberstab"); + expect(resolveCommand("zs")?.name).toBe("zauberstab"); + }); }); diff --git a/src/commands/registry.ts b/src/commands/registry.ts index f03d8c4f..ce396b45 100644 --- a/src/commands/registry.ts +++ b/src/commands/registry.ts @@ -107,7 +107,7 @@ export const COMMANDS: Record = { scalebar: scalebarCommand, revcloud: revcloudCommand, pointmarker: pointmarkerCommand, - wand: wandCommand, + zauberstab: wandCommand, wipeout: wipeoutCommand, text: textCommand, leader: leaderCommand, @@ -223,8 +223,7 @@ export const ALIASES: Record = { wolke: "revcloud", revisionswolke: "revcloud", pm: "pointmarker", - zs: "wand", - zauberstab: "wand", + zs: "zauberstab", punkt: "pointmarker", knoten: "pointmarker", wo: "wipeout", diff --git a/src/tools/tools.ts b/src/tools/tools.ts index 784b49c1..44dd57ba 100644 --- a/src/tools/tools.ts +++ b/src/tools/tools.ts @@ -43,7 +43,7 @@ const TOOLS: Record = { scalebar: { labelKey: "tool.scalebar", hintKey: "tool.scalebar.hint", command: "scalebar" }, revcloud: { labelKey: "tool.revcloud", hintKey: "tool.revcloud.hint", command: "revcloud" }, pointmarker: { labelKey: "tool.pointmarker", hintKey: "tool.pointmarker.hint", command: "pointmarker" }, - wand: { labelKey: "tool.wand", hintKey: "tool.wand.hint", command: "wand" }, + wand: { labelKey: "tool.wand", hintKey: "tool.wand.hint", command: "zauberstab" }, grid: { labelKey: "tool.grid", hintKey: "tool.grid.hint", command: "grid" }, wipeout: { labelKey: "tool.wipeout", hintKey: "tool.wipeout.hint", command: "wipeout" }, text: { labelKey: "tool.text", hintKey: "tool.text.hint", command: "text" }, diff --git a/website/content/docs/anleitung/befehlszeile.md b/website/content/docs/anleitung/befehlszeile.md index 8c7389a9..64809b8f 100644 --- a/website/content/docs/anleitung/befehlszeile.md +++ b/website/content/docs/anleitung/befehlszeile.md @@ -22,8 +22,7 @@ ohne Fokus in der Befehlszeile sind dagegen Tastenkürzel (`m` Verschieben, - Eigene Kürzel legt man unter *Einstellungen → Allgemein → Befehlszeilen-Kürzel* an. -Kürzel werden vor dem Vervollständigen geprüft. Darum startet `wand` die -**Wand** und nicht den Zauberstab – für den gibt es `zs` oder `zauberstab`. +`wand` startet die **Wand**; der Zauberstab heisst `zauberstab` (Kürzel `zs`). Den Einzelbuchstaben `r` gibt es absichtlich nicht: er ist für relative Koordinaten reserviert. @@ -135,7 +134,7 @@ Stand 5.11.2026, aus der Befehlsliste des Programms (`src/commands/registry.ts`) | `spline` | Spline | `sp` | Glatte Kurve durch Punkte | | `bezier` | Bezier | `bz` | Bézierkurve | | `wipeout` | Maskenregion | `wo`, `maske`, `maskierung` | Fläche, die Darunterliegendes abdeckt | -| `wand` | Zauberstab | `zs`, `zauberstab` | Klick in umschlossene Fläche → Umriss mit Schraffur (Kürzel `zs`, nicht `wand`!) | +| `zauberstab` | Zauberstab | `zs` | Klick in umschlossene Fläche → Umriss mit Schraffur | | `grid` | Achsraster | `axes`, `achsraster`, `achsen` | Rechtwinkliges oder radiales Achsraster mit Achsköpfen | | `block` | Block einfügen | `bl`, `symbol` | Block (Symbol) platzieren | | `defblock` | Block definieren | `db`, `blockdef` | Auswahl als Block speichern |