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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Keyboard-first translation window: ⌘1 / ⌘2 / ⌘3 switch between Translate,
Polish, and Summary, and ⌘R regenerates the current result. Each mode segment
shows its shortcut hint.
- ⌘Y opens the translation history and ⌘P pins/unpins the window, matching the
toolbar buttons; both shortcuts are shown in the buttons' tooltips.
- Markdown tables in results now render as a bordered grid instead of raw
`| --- |` pipe-and-dash text. All other output stays as plain, selectable,
copyable text.
Expand Down
24 changes: 22 additions & 2 deletions mac-app/Lumo/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,12 @@
}
}
},
"Pin window" : {
"Pin window (⌘P)" : {
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "置顶窗口"
"value" : "置顶窗口(⌘P)"
}
}
}
Expand Down Expand Up @@ -511,6 +511,16 @@
}
}
},
"Translation History (⌘Y)" : {
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "翻译历史(⌘Y)"
}
}
}
},
"Translation History…" : {
"localizations" : {
"zh-Hans" : {
Expand All @@ -521,6 +531,16 @@
}
}
},
"Unpin window (⌘P)" : {
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "取消置顶(⌘P)"
}
}
}
},
"View on GitHub" : {
"localizations" : {
"zh-Hans" : {
Expand Down
9 changes: 7 additions & 2 deletions mac-app/Lumo/Views/TranslationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,17 @@ struct TranslationView: View {
Button { HistoryWindowController.shared.toggle() } label: {
Image(systemName: "clock.arrow.circlepath")
}
.help("Translation History")
// ⌘Y is the de-facto macOS history shortcut (Safari, Finder). Like
// the Run button, this visible control carries its shortcut directly
// and still fires while the TextEditor holds focus.
.keyboardShortcut("y", modifiers: .command)
.help("Translation History (⌘Y)")

Button { model.togglePin() } label: {
Image(systemName: model.isPinned ? "pin.fill" : "pin")
}
.help("Pin window")
.keyboardShortcut("p", modifiers: .command)
.help(model.isPinned ? "Unpin window (⌘P)" : "Pin window (⌘P)")

Button { model.dismiss() } label: {
Image(systemName: "xmark")
Expand Down
Loading