Today Cut, Copy, and Paste live in examples/ted/TedApp.EditCommands.cs. Per specs/clipboard/spec.md the Editor should own these as first-class commands so any consumer (clet, etc.) gets them for free.
Scope
- Add
Command.Cut, Command.Copy, Command.Paste handlers in Editor.Commands.cs.
- Default keybindings on the
Editor keymap: Ctrl+X / Ctrl+C / Ctrl+V (do not hard-code — register through Terminal.Gui's command key dictionary).
- Cut and Paste run inside a single
Document.OpenUpdateScope () → one undo step.
- Multi-line paste preserves embedded line endings.
ReadOnly blocks Cut/Paste; Copy still allowed.
- Resolve the [NEEDS CLARIFICATION] in FR-005: when there is no selection, default to no-op for Cut/Copy (matches VS Code's most-common preset). Document the decision in
specs/decisions.md.
- Remove the now-redundant private
Cut/Copy/Paste methods from TedApp.EditCommands.cs; the menu items already bind via Command.Cut/Copy/Paste, so they should pick up the Editor command automatically.
Definition of Done
Spec
specs/clipboard/spec.md
Today
Cut,Copy, andPastelive inexamples/ted/TedApp.EditCommands.cs. Perspecs/clipboard/spec.mdthe Editor should own these as first-class commands so any consumer (clet, etc.) gets them for free.Scope
Command.Cut,Command.Copy,Command.Pastehandlers inEditor.Commands.cs.Editorkeymap: Ctrl+X / Ctrl+C / Ctrl+V (do not hard-code — register through Terminal.Gui's command key dictionary).Document.OpenUpdateScope ()→ one undo step.ReadOnlyblocks Cut/Paste; Copy still allowed.specs/decisions.md.Cut/Copy/Pastemethods fromTedApp.EditCommands.cs; the menu items already bind viaCommand.Cut/Copy/Paste, so they should pick up the Editor command automatically.Definition of Done
specs/decisions.mdfor the no-selection behavior.Spec
specs/clipboard/spec.md