Sources/OrgCore/Commands/CommandTitle.swift

fbc792eb21866a31f8edcffd23f5105df3be2348
orgstar/Sources/OrgCore/Commands/CommandTitle.swift

9 lines · 365 bytes

1import Foundation
2
3/// A command's title in the app's language: its entry in the string catalog, keyed by the
4/// English title (see Sources/OrgApp/CommandTitles.swift), or the title itself.
5public enum CommandTitle {
6    public static func localized(_ title: String) -> String {
7        Bundle.main.localizedString(forKey: title, value: title, table: nil)
8    }
9}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form