Skip to content

Commit 0f73af9

Browse files
committed
fix(shortcuts): rebind Show History to Cmd+Shift+Y (Cmd+Option+H is system Hide Others)
1 parent 8786925 commit 0f73af9

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3737
- `Cmd+N` now opens the New Connection form. Manage Connections moves to the File menu without a default shortcut.
3838
- `Cmd+D` now duplicates the selected row. Save as Favorite moves to `Cmd+Shift+D`.
3939
- Removed default shortcuts that conflicted with system reservations: `Cmd+Y` (Quick Look), `Cmd+Option+Delete` (Empty Trash), `Cmd+Ctrl+C` (Color Picker), `Cmd+L` (URL bar / Add Link).
40-
- Show History moves from `Cmd+Y` to `Cmd+Option+H` to mirror the other panel toggles.
40+
- Show History moves from `Cmd+Y` (system Quick Look) to `Cmd+Shift+Y` to free the system shortcut while keeping the Y mnemonic. (`Cmd+Option+H` is reserved by macOS for Hide Others, so we avoid that chord too.)
4141
- Truncate Table no longer has a default shortcut; the action stays in the Edit menu and the sidebar context menu.
4242
- Switch Connection no longer has a default shortcut; the menu entry remains and users can rebind in Settings > Keyboard.
4343
- Explain with AI no longer has a default shortcut; the menu entry remains and users can rebind in Settings > Keyboard.

TablePro/Core/Services/Infrastructure/MainWindowToolbar.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ private struct HistoryToolbarButton: View {
454454
} label: {
455455
Label("History", systemImage: "clock")
456456
}
457-
.help(String(localized: "Toggle Query History (⌥⌘H)"))
457+
.help(String(localized: "Toggle Query History (⇧⌘Y)"))
458458
}
459459
}
460460

TablePro/Models/UI/KeyboardShortcutModels.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ struct KeyboardSettings: Codable, Equatable {
517517
.toggleTableBrowser: KeyCombo(key: "0", command: true),
518518
.toggleInspector: KeyCombo(key: "i", command: true, option: true),
519519
.toggleFilters: KeyCombo(key: "f", command: true, shift: true),
520-
.toggleHistory: KeyCombo(key: "h", command: true, option: true),
520+
.toggleHistory: KeyCombo(key: "y", command: true, shift: true),
521521
.toggleResults: KeyCombo(key: "r", command: true, option: true),
522522
.previousResultTab: KeyCombo(key: "[", command: true, option: true),
523523
.nextResultTab: KeyCombo(key: "]", command: true, option: true),

TablePro/Views/Toolbar/TableProToolbarView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ struct TableProToolbar: ViewModifier {
207207
} label: {
208208
Label("History", systemImage: "clock")
209209
}
210-
.help(String(localized: "Toggle Query History (⌥⌘H)"))
210+
.help(String(localized: "Toggle Query History (⇧⌘Y)"))
211211

212212
Button {
213213
actions?.exportTables()

docs/features/keyboard-shortcuts.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ TablePro is keyboard-driven. Most actions have shortcuts, and most menu shortcut
1616
| Execute query | `Cmd+Enter` |
1717
| New connection | `Cmd+N` |
1818
| New window | `Cmd+Ctrl+N` |
19-
| Show history | `Cmd+Option+H` |
19+
| Show history | `Cmd+Shift+Y` |
2020
| Settings | `Cmd+,` |
2121
| Quick Switcher | `Cmd+Shift+O` |
2222
| Close window | `Cmd+W` |
@@ -180,7 +180,7 @@ TablePro is keyboard-driven. Most actions have shortcuts, and most menu shortcut
180180

181181
| Action | Shortcut |
182182
|--------|----------|
183-
| Show / Hide History | `Cmd+Option+H` |
183+
| Show / Hide History | `Cmd+Shift+Y` |
184184
| Show / Hide Inspector | `Cmd+Option+I` |
185185
| Show / Hide Results | `Cmd+Option+R` |
186186
| Open Terminal | `Ctrl+Cmd+`` |

0 commit comments

Comments
 (0)