Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- `Cmd+C` now copies the focused cell value when one row is selected and a cell has focus; with multiple rows selected, or when no cell is focused, it still copies row(s) as TSV. `Cmd+Shift+C` now always copies row(s) as TSV. "Copy with Headers" stays in the Edit menu and row context menu without a default shortcut (#1332)
- `Cmd+F` toggles the data-grid filter panel when the grid is focused; the SQL editor's Find panel still opens with `Cmd+F` when the editor is focused. The old `Cmd+Shift+F` shortcut for filters is removed

### Fixed

Expand Down
1 change: 0 additions & 1 deletion TablePro/Models/UI/KeyboardShortcutModels.swift
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,6 @@ struct KeyboardSettings: Codable, Equatable {
// View
.toggleTableBrowser: KeyCombo(key: "0", command: true),
.toggleInspector: KeyCombo(key: "i", command: true, option: true),
.toggleFilters: KeyCombo(key: "f", command: true, shift: true),
.toggleHistory: KeyCombo(key: "y", command: true),
.toggleResults: KeyCombo(key: "r", command: true, option: true),
.previousResultTab: KeyCombo(key: "[", command: true, option: true),
Expand Down
3 changes: 3 additions & 0 deletions TablePro/TableProApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,9 @@ struct AppMenuCommands: Commands {
Button(String(localized: "Find...")) {
if keyWindowIsInspector {
NSApp.sendAction(#selector(InspectorViewController.toggleInspectorFilter(_:)), to: nil, from: nil)
} else if NSApp.keyWindow?.firstResponder is KeyHandlingTableView,
actions?.isTableTab == true {
actions?.toggleFilterPanel()
} else {
EditorEventRouter.shared.showFindPanelForKeyWindow()
}
Expand Down
2 changes: 1 addition & 1 deletion docs/features/filtering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Filter table data with 18 operators, raw SQL, and saved presets

# Filtering

Press `Cmd+Shift+F` to open the filter panel. Type a raw SQL WHERE clause and press `Enter` to filter. Raw SQL is the default mode.
Press `Cmd+F` with the data grid focused to open the filter panel. Type a raw SQL WHERE clause and press `Enter` to filter. Raw SQL is the default mode.

Each row has a column picker, operator, value field, and **+**/**−** buttons. Multiple rows combine with **AND** or **OR** (toggle in the header). Click **Apply** or press `Enter` to activate. Click **Unset** to clear all.

Expand Down
4 changes: 2 additions & 2 deletions docs/features/keyboard-shortcuts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ TablePro is keyboard-driven. Most actions have shortcuts, and most menu shortcut

| Action | Shortcut |
|--------|----------|
| Find | `Cmd+F` |
| Find (SQL editor focused) | `Cmd+F` |
| Find and replace | `Cmd+Option+F` |
| Find next | `Cmd+G` |
| Find previous | `Cmd+Shift+G` |
Expand Down Expand Up @@ -255,7 +255,7 @@ Vim keys only apply in the SQL editor. The data grid and other panels keep their

| Action | Shortcut |
|--------|----------|
| Toggle filter panel | `Cmd+Shift+F` |
| Toggle filter panel (data grid focused) | `Cmd+F` |
| Apply filters | `Enter` (in value field) |

## Table Structure
Expand Down
Loading