native macOS codings agent orchestrator
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add copy path to open menu

khoi e8e7fdec 8dbce3ad

+12
+12
supacode/Features/Repositories/Views/WorktreeDetailView.swift
··· 1 + import AppKit 1 2 import ComposableArchitecture 2 3 import SwiftUI 3 4 ··· 70 71 }, 71 72 onOpenActionSelectionChanged: { action in 72 73 store.send(.openActionSelectionChanged(action)) 74 + }, 75 + onCopyPath: { 76 + NSPasteboard.general.clearContents() 77 + NSPasteboard.general.setString(selectedWorktree.workingDirectory.path, forType: .string) 73 78 }, 74 79 onRunScript: { store.send(.runScript) }, 75 80 onStopRunScript: { store.send(.stopRunScript) } ··· 161 166 let onRenameBranch: (String) -> Void 162 167 let onOpenWorktree: (OpenWorktreeAction) -> Void 163 168 let onOpenActionSelectionChanged: (OpenWorktreeAction) -> Void 169 + let onCopyPath: () -> Void 164 170 let onRunScript: () -> Void 165 171 let onStopRunScript: () -> Void 166 172 ··· 237 243 .buttonStyle(.plain) 238 244 .help(openActionHelpText(for: action, isDefault: isDefault)) 239 245 } 246 + Divider() 247 + Button("Copy Path") { 248 + onCopyPath() 249 + } 250 + .help("Copy path") 240 251 } label: { 241 252 Image(systemName: "chevron.down") 242 253 .font(.caption2) ··· 389 400 onRenameBranch: { _ in }, 390 401 onOpenWorktree: { _ in }, 391 402 onOpenActionSelectionChanged: { _ in }, 403 + onCopyPath: {}, 392 404 onRunScript: {}, 393 405 onStopRunScript: {} 394 406 )