mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 01:39:46 +00:00
Yattee v2 rewrite
This commit is contained in:
22
Yattee/Core/FileCommands.swift
Normal file
22
Yattee/Core/FileCommands.swift
Normal file
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// FileCommands.swift
|
||||
// Yattee
|
||||
//
|
||||
// Menu bar commands for file operations.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
#if !os(tvOS)
|
||||
/// File-related menu bar commands.
|
||||
struct FileCommands: Commands {
|
||||
var body: some Commands {
|
||||
CommandGroup(replacing: .newItem) {
|
||||
Button(String(localized: "menu.file.openLink")) {
|
||||
NotificationCenter.default.post(name: .showOpenLinkSheet, object: nil)
|
||||
}
|
||||
.keyboardShortcut("o", modifiers: [.command])
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user