Skip to content

Commit b23fc95

Browse files
grokifyclaude
andcommitted
feat(desktop): add Edit menu with Select All command
Ensure standard Edit menu operations work with terminal: - Copy (Cmd+C) - copies selected text to clipboard - Paste (Cmd+V) - pastes from clipboard to terminal - Select All (Cmd+A) - selects all terminal content SwiftTerm handles copy/paste via NSPasteboard.general for cross-application clipboard support. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2f5f353 commit b23fc95

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

apps/desktop/Sources/PlexusOneDesktop/App/PlexusOneDesktopApp.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ struct PlexusOneDesktopApp: App {
4848
.keyboardShortcut("a", modifiers: [.command, .shift])
4949
}
5050

51+
// Edit menu - ensure copy/paste work with terminal
52+
CommandGroup(after: .pasteboard) {
53+
Divider()
54+
55+
Button("Select All") {
56+
// Forward to first responder (terminal view handles this)
57+
NSApp.sendAction(#selector(NSText.selectAll(_:)), to: nil, from: nil)
58+
}
59+
.keyboardShortcut("a", modifiers: .command)
60+
}
61+
5162
CommandGroup(after: .windowList) {
5263
Divider()
5364

0 commit comments

Comments
 (0)