Sources/OrgApp/AppStoreCommands.swift

22ff42f0ad29d59255e2ac93e0b3a28f66fca672
orgstar/Sources/OrgApp/AppStoreCommands.swift

15 lines · 586 bytes

 1import Foundation
 2
 3/// The commands the Mac App Store build leaves out of the palette and menus: exports that run
 4/// Emacs, and attaching by link, which the sandbox doesn't allow.
 5public enum AppStoreCommands {
 6    public static let hidden: Set<String> = [
 7        "app.export.pdf", "app.export.text",
 8        "app.attach.link", "app.attach.symlink",
 9    ]
10
11    /// What a key bound to a hidden command runs instead; nil when nothing takes its place.
12    public static func replacement(for id: String) -> String? {
13        id == "app.export.pdf" ? "app.export.print-pdf" : nil
14    }
15}
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