From 466c49e4b0f2dec9874bff2c113a82afda6d7770 Mon Sep 17 00:00:00 2001 From: TZGyn Date: Thu, 8 Oct 2026 10:00:10 +0800 Subject: [PATCH] Add a keyboard route to sync settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cmd+, is where macOS users look for settings, and it makes the sync panel reachable without hunting for the header icon. 💘 Generated with Crush Assisted-by: Crush:kimi-k3 --- README.md | 1 + Sources/Prompt/PanelView.swift | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 6f24ebd..74c2ab5 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ to your work. Click anything to copy it back to your clipboard. | Switch/create section | Cmd+K | | Search | Cmd+F | | Focus composer | Cmd+N | +| Sync settings | Cmd+, | | Copy selection as numbered list | Shift+Cmd+C | | Close panel | Esc | diff --git a/Sources/Prompt/PanelView.swift b/Sources/Prompt/PanelView.swift index 6a34017..6a3ff3b 100644 --- a/Sources/Prompt/PanelView.swift +++ b/Sources/Prompt/PanelView.swift @@ -495,6 +495,10 @@ struct PanelView: View { .keyboardShortcut("k", modifiers: .command) Button("") { focusedField = .composer } .keyboardShortcut("n", modifiers: .command) + Button("") { + withAnimation(.easeInOut(duration: 0.15)) { showSync.toggle() } + } + .keyboardShortcut(",", modifiers: .command) Button("") { guard !selection.isEmpty else { return } store.copyAsList(ids: selection)