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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- The Favorites sidebar **+** menu now includes **New Query**, which opens an empty SQL query tab.

## [0.56.2] - 2026-07-10

### Added
Expand Down
56 changes: 56 additions & 0 deletions TablePro/Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -49282,6 +49282,62 @@
}
}
},
"New Query" : {
"localizations" : {
"tr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Yeni Sorgu"
}
},
"vi" : {
"stringUnit" : {
"state" : "translated",
"value" : "Truy vấn mới"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "新建查询"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "新增查詢"
}
}
}
},
"New Query, favorite, or folder" : {
"localizations" : {
"tr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Yeni sorgu, sık kullanılan veya klasör"
}
},
"vi" : {
"stringUnit" : {
"state" : "translated",
"value" : "Truy vấn mới, mục yêu thích hoặc thư mục"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "新建查询、收藏或文件夹"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "新增查詢、我的最愛或資料夾"
}
}
}
},
"New query tab" : {
"extractionState" : "stale",
"localizations" : {
Expand Down
6 changes: 5 additions & 1 deletion TablePro/Views/Sidebar/FavoritesTabView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,10 @@ internal struct FavoritesTabView: View {
private var bottomToolbar: some View {
HStack(spacing: 8) {
Menu {
Button(String(localized: "New Query")) {
coordinator?.commandActions?.newTab()
}
Divider()
Button(String(localized: "New Favorite")) {
viewModel.createFavorite()
}
Expand All @@ -599,7 +603,7 @@ internal struct FavoritesTabView: View {
.menuStyle(.borderlessButton)
.menuIndicator(.hidden)
.fixedSize()
.help(String(localized: "Add"))
.help(String(localized: "New Query, favorite, or folder"))

Spacer()
}
Expand Down
6 changes: 5 additions & 1 deletion docs/features/favorites.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,18 @@ Turn on **Show recent tables** in Settings > General > Sidebar to add a **Recent

Save queries you run often. Organize them in folders, assign keyword shortcuts, and expand them inline via autocomplete.

## New Query from the Favorites Sidebar

In the Favorites tab, click **+** and choose **New Query** to open an empty SQL query tab (same as `Cmd+T`). The other items in that menu create a saved favorite, a folder, or a linked SQL folder.

## Creating an SQL Favorite

Ways to save a favorite:

- **From the editor toolbar**: Click the star button above the editor, or press `Cmd+D`
- **From the editor**: Right-click selected SQL > **Save as Favorite**
- **From query history**: Right-click an entry > **Save as Favorite**
- **From the sidebar**: Click **+ New Favorite** in the Favorites tab
- **From the sidebar**: Click **+** in the Favorites tab, then **New Favorite**

Enter a name, the SQL text, and optionally a keyword and scope.

Expand Down
3 changes: 1 addition & 2 deletions docs/features/tabs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ Disable preview tabs in **Settings** > **Tabs** if you prefer every click to ope

| Action | How |
|--------|-----|
| New query tab | `Cmd+T` or click **+** in the tab bar |
| New query tab (toolbar) | Click the **SQL** button |
| New query tab | `Cmd+T`, click **+** in the tab bar, or Favorites sidebar **+** > **New Query** |
| New table tab | Double-click a table in the sidebar (single-click reuses the preview tab) |

### Closing Tabs
Expand Down
Loading