feat: add searchable emoji picker
This commit is contained in:
@@ -3,6 +3,7 @@ import Foundation
|
||||
public struct Application: Identifiable, Sendable {
|
||||
public enum Command: String, CaseIterable, Sendable {
|
||||
case translate
|
||||
case emoji
|
||||
}
|
||||
public static let commands = Command.allCases.map { Application(command: $0) }
|
||||
public let command: Command?
|
||||
@@ -20,6 +21,7 @@ public struct Application: Identifiable, Sendable {
|
||||
public init(command: Command) {
|
||||
let name = switch command {
|
||||
case .translate: "Conjure Translate"
|
||||
case .emoji: "Conjure Emoji"
|
||||
}
|
||||
self.init(canonicalURL: URL(string: "conjure-command://\(command.rawValue)")!, name: name, command: command)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user