Repository Public
1// SP Notes iOS2// File: App/Intents/NoteShortcuts.swift3// Description: The shortcuts SP Notes offers without any setup (Siri, Spotlight, Shortcuts app), with their spoken phrases.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7import AppIntents89struct SPNotesShortcuts: AppShortcutsProvider {10 static var appShortcuts: [AppShortcut] {11 AppShortcut(12 intent: CreateNoteIntent(),13 phrases: [14 "Crée une note dans \(.applicationName)",15 "Nouvelle note dans \(.applicationName)",16 "Note ça dans \(.applicationName)",17 ],18 shortTitle: "Créer une note",19 systemImageName: "square.and.pencil"20 )21 AppShortcut(22 intent: AppendToNoteIntent(),23 phrases: [24 "Ajoute à une note dans \(.applicationName)",25 "Ajoute à \(\.$note) dans \(.applicationName)",26 ],27 shortTitle: "Ajouter à une note",28 systemImageName: "text.append"29 )30 AppShortcut(31 intent: SearchNotesIntent(),32 phrases: [33 "Cherche dans \(.applicationName)",34 "Cherche une note dans \(.applicationName)",35 ],36 shortTitle: "Chercher des notes",37 systemImageName: "magnifyingglass"38 )39 AppShortcut(40 intent: OpenNoteIntent(),41 phrases: [42 "Ouvre une note dans \(.applicationName)",43 "Ouvre \(\.$target) dans \(.applicationName)",44 ],45 shortTitle: "Ouvrir une note",46 systemImageName: "note.text"47 )48 AppShortcut(49 intent: OpenSearchIntent(),50 phrases: ["Ouvre la recherche de \(.applicationName)"],51 shortTitle: "Ouvrir la recherche",52 systemImageName: "text.magnifyingglass"53 )54 AppShortcut(55 intent: CreateTaskIntent(),56 phrases: [57 "Crée une tâche dans \(.applicationName)",58 "Nouvelle tâche dans \(.applicationName)",59 ],60 shortTitle: "Créer une tâche",61 systemImageName: "checklist"62 )63 AppShortcut(64 intent: CompleteTaskIntent(),65 phrases: [66 "Termine une tâche dans \(.applicationName)",67 "Termine \(\.$task) dans \(.applicationName)",68 ],69 shortTitle: "Terminer une tâche",70 systemImageName: "checkmark.circle"71 )72 AppShortcut(73 intent: CaptureToInboxIntent(),74 phrases: [75 "Capture dans \(.applicationName)",76 "Envoie dans la boîte de réception de \(.applicationName)",77 ],78 shortTitle: "Capturer",79 systemImageName: "tray.and.arrow.down"80 )81 AppShortcut(82 intent: AskNotesIntent(),83 phrases: [84 "Demande à mes notes dans \(.applicationName)",85 "Pose une question à \(.applicationName)",86 ],87 shortTitle: "Demander à mes notes",88 systemImageName: "sparkles"89 )90 }9192 /// Ultramarine family of the Note Visual System (1.0: orange).93 static let shortcutTileColor: ShortcutTileColor = .blue94}95