native macOS codings agent orchestrator
6
fork

Configure Feed

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

Merge pull request #119 from supabitapp/show-add-repo-shortcut

Show Add Repository shortcut hint

authored by

khoi and committed by
GitHub
6179c898 022d2b44

+9 -1
+9 -1
supacode/Features/Repositories/Views/SidebarFooterView.swift
··· 4 4 struct SidebarFooterView: View { 5 5 let store: StoreOf<RepositoriesFeature> 6 6 @Environment(\.openURL) private var openURL 7 + @Environment(CommandKeyObserver.self) private var commandKeyObserver 7 8 8 9 var body: some View { 9 10 HStack { 10 - Button("Add Repository", systemImage: "folder.badge.plus") { 11 + Button { 11 12 store.send(.setOpenPanelPresented(true)) 13 + } label: { 14 + HStack(spacing: 6) { 15 + Label("Add Repository", systemImage: "folder.badge.plus") 16 + if commandKeyObserver.isPressed { 17 + ShortcutHintView(text: AppShortcuts.openRepository.display, color: .secondary) 18 + } 19 + } 12 20 } 13 21 .help("Add Repository (\(AppShortcuts.openRepository.display))") 14 22 Spacer()