Skip to content

Commit 999709f

Browse files
committed
Revert "refactor(toolbar): move quick switcher list to native List selection and scope bar"
This reverts commit cbe451a.
1 parent 0bc3cdc commit 999709f

3 files changed

Lines changed: 295 additions & 115 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- BigQuery datasets can be switched from the toolbar, the Cmd+K switcher, and the File menu, including creating and dropping datasets. (#509)
1313
- Quick Switcher now searches saved queries alongside tables, views, databases, and history.
14-
- Quick Switcher scopes: a scope bar under the search field filters to Tables, Databases, or Queries (Cmd+1 to Cmd+4). An empty search shows your recent items; picking a scope browses everything in it.
14+
- Quick Switcher scopes: an empty search shows your recent items with round scope buttons beside the search bar; Cmd+1 to Cmd+4 (or the buttons) browse all tables, databases, or queries.
1515
- Option+Return in the Quick Switcher opens the table in a new tab; right-click a result to open its structure, copy the name, or copy the query.
1616
- Tables already open in a tab show an Open badge in the Quick Switcher, rank higher, and Return switches to the existing tab.
1717
- `.psql` and `.pgsql` files now open in the SQL editor like `.sql`: Finder double-click, the open and save panels, and linked SQL folders all accept them. (#1641)
@@ -21,7 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
- Redis connections now filter with a key-pattern search field and a key-type scope instead of the SQL-style filter row. Patterns use glob syntax like `user:*`, are matched server-side across the whole keyspace, and the type scope narrows results by value type. The old filter row only matched one batch of keys and ignored any filter on Type, TTL, or Value.
2222
- Switcher, menus, and alerts now use each database's own container name: Dataset for BigQuery, Keyspace for Cassandra and ScyllaDB. (#509)
2323
- Quick Switcher highlights the matched characters in each result, finds better alignments for camelCase and snake_case names, and ranks items you open often and recently higher.
24-
- Quick Switcher now opens as a floating panel over the window instead of a modal sheet, with a large borderless search field and standard list selection. On macOS 26 the panel uses Liquid Glass.
24+
- Quick Switcher now opens as a Spotlight-style floating panel over the window instead of a modal sheet: large borderless search field, rounded row selection that turns accent-colored while navigating with the keyboard, and an action hint on the selected row. On macOS 26 the panel uses Liquid Glass.
2525
- The sidebar filter, database switcher, and connection switcher now use the same fuzzy matching as the Quick Switcher, so abbreviations like `upv` find `user_profile_view`.
2626
- Refresh (Cmd+R) now acts only on the focused window's connection, instead of also reloading views and clearing autocomplete caches for every other open connection.
2727
- Holding Cmd+R no longer queues a backlog of refreshes that kept running after the key was released; refresh fires once per key press, and rapid presses collapse into a single reload.

TablePro/Models/UI/QuickSwitcherItem.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ internal enum QuickSwitcherScope: String, CaseIterable, Identifiable, Sendable {
5151
case .queries: return String(localized: "Queries")
5252
}
5353
}
54+
55+
var iconName: String {
56+
switch self {
57+
case .all: return "square.grid.2x2"
58+
case .tables: return "tablecells"
59+
case .containers: return "cylinder"
60+
case .queries: return "doc.text"
61+
}
62+
}
5463
}
5564

5665
/// A single item in the quick switcher results list

0 commit comments

Comments
 (0)