Skip to content

A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.

Flow pill: opens under the pointer into its buttons, messages above it; no glow following the pointer on the bands

Claudede25b4a7f882
diff --git a/NotchBuddy/Resources/Localizable.xcstrings b/NotchBuddy/Resources/Localizable.xcstrings
index f1499117..0b7cc7a7 100644
--- a/NotchBuddy/Resources/Localizable.xcstrings
+++ b/NotchBuddy/Resources/Localizable.xcstrings
@@ -270,652 +270,1367 @@
}
}
},
+ "flow.ann.allow" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "السماح"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "অনুমতি দিন"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Allow"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Permitir"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Autoriser"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "अनुमति दें"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Izinkan"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Permitir"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Разрешить"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "允许"
+ }
+ }
+ }
+ },
+ "flow.ann.dismiss" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "إغلاق"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "বন্ধ করুন"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Close"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Cerrar"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Fermer"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "बंद करें"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Tutup"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Fechar"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Закрыть"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "关闭"
+ }
+ }
+ }
+ },
+ "flow.ann.mic" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "لا يسمعك Coucou: الميكروفون غير مسموح به أو غير متاح."
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou আপনাকে শুনতে পাচ্ছে না: মাইক্রোফোনের অনুমতি নেই বা পাওয়া যাচ্ছে না।"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou can't hear you: the microphone is not allowed or not available."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou no te oye: el micrófono no está permitido o no está disponible."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou ne t'entend pas : le micro n'est pas autorisé ou pas disponible."
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou आपको सुन नहीं पा रहा: माइक्रोफ़ोन की अनुमति नहीं है या वह उपलब्ध नहीं।"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou tidak bisa mendengarmu: mikrofon tidak diizinkan atau tidak tersedia."
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "O Coucou não te ouve: o microfone não está permitido ou indisponível."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou вас не слышит: микрофон не разрешён или недоступен."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou 听不到你:麦克风未获允许或不可用。"
+ }
+ }
+ }
+ },
+ "flow.ann.no-access" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "لم يتمكن Coucou من اللصق: كلماتك منسوخة. اضغط ⌘V، واسمح بتسهيلات الاستخدام ليلصق بنفسه."
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou পেস্ট করতে পারেনি: আপনার কথা কপি হয়েছে। ⌘V চাপুন, আর অ্যাক্সেসিবিলিটির অনুমতি দিন যাতে নিজেই পেস্ট করে।"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou couldn't paste: your words are copied. Press ⌘V, and allow Accessibility so it pastes for you."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou no pudo pegar: tus palabras están copiadas. Pulsa ⌘V y permite Accesibilidad para que pegue solo."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou n'a pas pu coller : tes mots sont copiés. Fais ⌘V, et autorise l'Accessibilité pour qu'il colle tout seul."
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou चिपका नहीं सका: आपके शब्द कॉपी हो गए हैं। ⌘V दबाएँ, और एक्सेसिबिलिटी की अनुमति दें ताकि वह खुद चिपकाए।"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou tidak bisa menempel: kata-katamu sudah disalin. Tekan ⌘V, dan izinkan Aksesibilitas agar ia menempel sendiri."
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "O Coucou não conseguiu colar: suas palavras foram copiadas. Pressione ⌘V e permita a Acessibilidade para ele colar sozinho."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou не смог вставить: слова скопированы. Нажмите ⌘V и разрешите Универсальный доступ, чтобы он вставлял сам."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou 无法粘贴:你的话已拷贝。按 ⌘V,并允许“辅助功能”,让它自动粘贴。"
+ }
+ }
+ }
+ },
+ "flow.ann.no-field" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "لا يوجد حقل نص هنا؟ كلماتك منسوخة: انقر حيث تريد واضغط ⌘V."
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "এখানে কোনো টেক্সট ফিল্ড নেই? আপনার কথা কপি হয়েছে: যেখানে চান ক্লিক করে ⌘V চাপুন।"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "No text field here? Your words are copied: click where you want them and press ⌘V."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "¿No hay campo de texto aquí? Tus palabras están copiadas: haz clic donde quieras y pulsa ⌘V."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Pas de champ de texte ici ? Tes mots sont copiés : clique où tu veux et fais ⌘V."
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "यहाँ कोई टेक्स्ट फ़ील्ड नहीं? आपके शब्द कॉपी हो गए हैं: जहाँ चाहें क्लिक करें और ⌘V दबाएँ।"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Tidak ada kolom teks di sini? Kata-katamu sudah disalin: klik di tempat yang kamu mau lalu tekan ⌘V."
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Sem campo de texto aqui? Suas palavras foram copiadas: clique onde quiser e pressione ⌘V."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Здесь нет текстового поля? Слова скопированы: щёлкните, куда нужно, и нажмите ⌘V."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "这里没有文本框?你的话已拷贝:点按想要的位置并按 ⌘V。"
+ }
+ }
+ }
+ },
+ "flow.ann.settings" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "الإعدادات"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "সেটিংস"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Settings"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Ajustes"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Réglages"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "सेटिंग्स"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Pengaturan"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Ajustes"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Настройки"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "设置"
+ }
+ }
+ }
+ },
"flow.copied-noaccess" : {
"extractionState" : "manual",
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "translated",
- "value" : "تم النسخ · اسمح بتسهيلات الاستخدام للصق"
+ "value" : "تم النسخ · اسمح بتسهيلات الاستخدام للصق"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "কপি হয়েছে · পেস্ট করতে অ্যাক্সেসিবিলিটি অনুমতি দিন"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Copied · allow Accessibility to paste"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Copiado · permite Accesibilidad para pegar"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Copié · autorise l'Accessibilité pour coller"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "कॉपी हुआ · चिपकाने के लिए एक्सेसिबिलिटी की अनुमति दें"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Disalin · izinkan Aksesibilitas untuk menempel"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Copiado · permita a Acessibilidade para colar"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Скопировано · разрешите Универсальный доступ для вставки"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "已复制 · 允许辅助功能以粘贴"
+ }
+ }
+ }
+ },
+ "flow.enable" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "اضغط مطولًا على مفتاح للإملاء في أي مكان"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "যেকোনো জায়গায় ডিক্টেট করতে একটি কী চেপে ধরুন"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Hold a key to dictate anywhere"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Mantén una tecla para dictar en cualquier lugar"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Maintenir une touche pour dicter partout"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "कहीं भी बोलकर लिखने के लिए एक कुंजी दबाए रखें"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Tahan satu tombol untuk mendikte di mana saja"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Segure uma tecla para ditar em qualquer lugar"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Удерживайте клавишу, чтобы диктовать где угодно"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "按住一个键,在任何地方听写"
+ }
+ }
+ }
+ },
+ "flow.failed" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "الميكروفون غير متاح"
}
},
"bn" : {
"stringUnit" : {
"state" : "translated",
- "value" : "কপি হয়েছে · পেস্ট করতে অ্যাক্সেসিবিলিটি অনুমতি দিন"
+ "value" : "মাইক্রোফোন পাওয়া যাচ্ছে না"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Copied · allow Accessibility to paste"
+ "value" : "Microphone unavailable"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Copiado · permite Accesibilidad para pegar"
+ "value" : "Micrófono no disponible"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Copié · autorise l'Accessibilité pour coller"
+ "value" : "Micro indisponible"
}
},
"hi" : {
"stringUnit" : {
"state" : "translated",
- "value" : "कॉपी हुआ · चिपकाने के लिए एक्सेसिबिलिटी की अनुमति दें"
+ "value" : "माइक्रोफ़ोन उपलब्ध नहीं"
}
},
"id" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Disalin · izinkan Aksesibilitas untuk menempel"
+ "value" : "Mikrofon tidak tersedia"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Copiado · permita a Acessibilidade para colar"
+ "value" : "Microfone indisponível"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Скопировано · разрешите Универсальный доступ для вставки"
+ "value" : "Микрофон недоступен"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "已复制 · 允许辅助功能以粘贴"
+ "value" : "麦克风不可用"
}
}
}
},
- "flow.enable" : {
+ "flow.fn-help" : {
"extractionState" : "manual",
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "translated",
- "value" : "اضغط مطولًا على مفتاح للإملاء في أي مكان"
+ "value" : "لاستخدام fn، اضبط إعدادات النظام ← لوحة المفاتيح ← «اضغط على مفتاح 🌐 لـ» على «عدم القيام بأي شيء»."
}
},
"bn" : {
"stringUnit" : {
"state" : "translated",
- "value" : "যেকোনো জায়গায় ডিক্টেট করতে একটি কী চেপে ধরুন"
+ "value" : "fn ব্যবহার করতে, সিস্টেম সেটিংস → কিবোর্ডে “🌐 কী চাপলে” “কিছুই করবেন না” সেট করুন।"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Hold a key to dictate anywhere"
+ "value" : "To use fn, set System Settings → Keyboard → “Press 🌐 key to” to “Do Nothing”."
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Mantén una tecla para dictar en cualquier lugar"
+ "value" : "Para usar fn, en Ajustes del Sistema → Teclado, pon «Pulsar la tecla 🌐 para» en «No hacer nada»."
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Maintenir une touche pour dicter partout"
+ "value" : "Pour utiliser fn, règle Réglages Système → Clavier → « Appuyer sur la touche 🌐 pour » sur « Ne rien faire »."
}
},
"hi" : {
"stringUnit" : {
"state" : "translated",
- "value" : "कहीं भी बोलकर लिखने के लिए एक कुंजी दबाए रखें"
+ "value" : "fn इस्तेमाल करने के लिए, सिस्टम सेटिंग्स → कीबोर्ड में “🌐 कुंजी दबाने पर” को “कुछ न करें” पर सेट करें।"
}
},
"id" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Tahan satu tombol untuk mendikte di mana saja"
+ "value" : "Untuk memakai fn, atur Pengaturan Sistem → Papan Ketik → “Tekan tombol 🌐 untuk” ke “Jangan Lakukan Apa-apa”."
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Segure uma tecla para ditar em qualquer lugar"
+ "value" : "Para usar fn, em Ajustes do Sistema → Teclado, defina “Pressionar a tecla 🌐 para” como “Não fazer nada”."
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Удерживайте клавишу, чтобы диктовать где угодно"
+ "value" : "Чтобы использовать fn, в Системных настройках → Клавиатура выберите для «Нажатие клавиши 🌐» вариант «Ничего не делать»."
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "按住一个键,在任何地方听写"
+ "value" : "要使用 fn,请在“系统设置”→“键盘”中将“按下 🌐 键时”设为“不执行任何操作”。"
}
}
}
},
- "flow.failed" : {
+ "flow.how %@" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "اضغط مطولًا على %@ وتحدث ثم اترك: تُلصق كلماتك حيث تكتب. اضغط مرتين للإملاء دون استخدام اليدين، ثم مرة أخرى للصق. Esc يلغي."
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%@ চেপে ধরুন, বলুন, ছেড়ে দিন: আপনি যেখানে লেখেন সেখানে আপনার কথা পেস্ট হয়। হাত ছাড়া ডিক্টেট করতে দুবার ট্যাপ করুন, পেস্ট করতে আরেকবার। Esc বাতিল করে।"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Hold %@, speak, let go: your words are pasted where you type. Tap it twice to keep listening hands-free, and once more to paste. Esc cancels."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Mantén %@, habla y suelta: tus palabras se pegan donde escribes. Púlsala dos veces para dictar sin manos y otra vez para pegar. Esc cancela."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Maintiens %@, parle, relâche : tes mots sont collés là où tu écris. Tape deux fois pour dicter sans les mains, puis une fois pour coller. Échap annule."
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "%@ दबाए रखें, बोलें, छोड़ दें: आपके शब्द वहीं चिपक जाते हैं जहाँ आप टाइप करते हैं। बिना हाथ लगाए बोलने के लिए दो बार टैप करें, और चिपकाने के लिए एक बार फिर। Esc रद्द करता है।"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Tahan %@, bicara, lalu lepas: kata-katamu ditempel di tempat kamu mengetik. Ketuk dua kali untuk mendikte tanpa tangan, lalu sekali lagi untuk menempel. Esc membatalkan."
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Segure %@, fale e solte: suas palavras são coladas onde você digita. Toque duas vezes para ditar sem as mãos e mais uma vez para colar. Esc cancela."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Удерживайте %@, говорите, отпустите — слова вставятся туда, где вы печатаете. Нажмите дважды, чтобы диктовать без рук, и ещё раз, чтобы вставить. Esc отменяет."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "按住 %@,说话,松开:你的话会粘贴到你正在输入的位置。连按两次可免手持听写,再按一次即粘贴。按 Esc 取消。"
+ }
+ }
+ }
+ },
+ "flow.key" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "المفتاح"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "কী"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Key"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Tecla"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Touche"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "कुंजी"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Tombol"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Tecla"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Клавиша"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "按键"
+ }
+ }
+ }
+ },
+ "flow.key-fn" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "fn (🌐)"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "fn (🌐)"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "fn (🌐)"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "fn (🌐)"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "fn (🌐)"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "fn (🌐)"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "fn (🌐)"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "fn (🌐)"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "fn (🌐)"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "fn (🌐)"
+ }
+ }
+ }
+ },
+ "flow.key-right %@" : {
"extractionState" : "manual",
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "translated",
- "value" : "الميكروفون غير متاح"
+ "value" : "%@ الأيمن"
}
},
"bn" : {
"stringUnit" : {
"state" : "translated",
- "value" : "মাইক্রোফোন পাওয়া যাচ্ছে না"
+ "value" : "ডান %@"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Microphone unavailable"
+ "value" : "Right %@"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Micrófono no disponible"
+ "value" : "%@ derecha"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Micro indisponible"
+ "value" : "%@ de droite"
}
},
"hi" : {
"stringUnit" : {
"state" : "translated",
- "value" : "माइक्रोफ़ोन उपलब्ध नहीं"
+ "value" : "दायाँ %@"
}
},
"id" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Mikrofon tidak tersedia"
+ "value" : "%@ kanan"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Microfone indisponível"
+ "value" : "%@ da direita"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Микрофон недоступен"
+ "value" : "Правая %@"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "麦克风不可用"
+ "value" : "右侧 %@"
}
}
}
},
- "flow.fn-help" : {
+ "flow.pasted-again" : {
"extractionState" : "manual",
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "translated",
- "value" : "لاستخدام fn، اضبط إعدادات النظام ← لوحة المفاتيح ← «اضغط على مفتاح 🌐 لـ» على «عدم القيام بأي شيء»."
+ "value" : "تم لصق آخر إملاء"
}
},
"bn" : {
"stringUnit" : {
"state" : "translated",
- "value" : "fn ব্যবহার করতে, সিস্টেম সেটিংস → কিবোর্ডে “🌐 কী চাপলে” “কিছুই করবেন না” সেট করুন।"
+ "value" : "শেষ ডিক্টেশন পেস্ট হয়েছে"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
- "value" : "To use fn, set System Settings → Keyboard → “Press 🌐 key to” to “Do Nothing”."
+ "value" : "Last dictation pasted"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Para usar fn, en Ajustes del Sistema → Teclado, pon «Pulsar la tecla 🌐 para» en «No hacer nada»."
+ "value" : "Último dictado pegado"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Pour utiliser fn, règle Réglages Système → Clavier → « Appuyer sur la touche 🌐 pour » sur « Ne rien faire »."
+ "value" : "Dernière dictée collée"
}
},
"hi" : {
"stringUnit" : {
"state" : "translated",
- "value" : "fn इस्तेमाल करने के लिए, सिस्टम सेटिंग्स → कीबोर्ड में “🌐 कुंजी दबाने पर” को “कुछ न करें” पर सेट करें।"
+ "value" : "पिछला डिक्टेशन चिपकाया गया"
}
},
"id" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Untuk memakai fn, atur Pengaturan Sistem → Papan Ketik → “Tekan tombol 🌐 untuk” ke “Jangan Lakukan Apa-apa”."
+ "value" : "Dikte terakhir ditempel"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Para usar fn, em Ajustes do Sistema → Teclado, defina “Pressionar a tecla 🌐 para” como “Não fazer nada”."
+ "value" : "Último ditado colado"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Чтобы использовать fn, в Системных настройках → Клавиатура выберите для «Нажатие клавиши 🌐» вариант «Ничего не делать»."
+ "value" : "Последняя диктовка вставлена"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "要使用 fn,请在“系统设置”→“键盘”中将“按下 🌐 键时”设为“不执行任何操作”。"
+ "value" : "已粘贴上一次听写"
}
}
}
},
- "flow.how %@" : {
+ "flow.privacy" : {
"extractionState" : "manual",
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "translated",
- "value" : "اضغط مطولًا على %@ وتحدث ثم اترك: تُلصق كلماتك حيث تكتب. اضغط مرتين للإملاء دون استخدام اليدين، ثم مرة أخرى للصق. Esc يلغي."
+ "value" : "يحوّل التعرّف على الكلام في جهاز Mac صوتك إلى نص، على الجهاز نفسه عندما يدعم جهازك ذلك؛ ولا يرسله Coucou إلى أي مكان. بعد اللصق تعود الحافظة إلى ما كانت تحتويه."
}
},
"bn" : {
"stringUnit" : {
"state" : "translated",
- "value" : "%@ চেপে ধরুন, বলুন, ছেড়ে দিন: আপনি যেখানে লেখেন সেখানে আপনার কথা পেস্ট হয়। হাত ছাড়া ডিক্টেট করতে দুবার ট্যাপ করুন, পেস্ট করতে আরেকবার। Esc বাতিল করে।"
+ "value" : "আপনার Mac-এর স্পিচ রিকগনিশন আপনার কণ্ঠকে টেক্সটে রূপান্তর করে, Mac সমর্থন করলে ডিভাইসেই; Coucou এটি কোথাও পাঠায় না। পেস্ট করার পর ক্লিপবোর্ডে আগের জিনিস ফিরে আসে।"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Hold %@, speak, let go: your words are pasted where you type. Tap it twice to keep listening hands-free, and once more to paste. Esc cancels."
+ "value" : "Your voice is turned into text by your Mac's speech recognition, on-device when your Mac supports it; Coucou sends it nowhere. After pasting, the clipboard gets back what it held."
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Mantén %@, habla y suelta: tus palabras se pegan donde escribes. Púlsala dos veces para dictar sin manos y otra vez para pegar. Esc cancela."
+ "value" : "Tu voz se convierte en texto con el reconocimiento de voz de tu Mac, en el propio equipo cuando tu Mac lo admite; Coucou no la envía a ningún sitio. Tras pegar, el portapapeles recupera lo que tenía."
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Maintiens %@, parle, relâche : tes mots sont collés là où tu écris. Tape deux fois pour dicter sans les mains, puis une fois pour coller. Échap annule."
+ "value" : "Ta voix est transformée en texte par la reconnaissance vocale de ton Mac, sur l'appareil quand ton Mac le permet ; Coucou ne l'envoie nulle part. Après le collage, le presse-papiers retrouve ce qu'il contenait."
}
},
"hi" : {
"stringUnit" : {
"state" : "translated",
- "value" : "%@ दबाए रखें, बोलें, छोड़ दें: आपके शब्द वहीं चिपक जाते हैं जहाँ आप टाइप करते हैं। बिना हाथ लगाए बोलने के लिए दो बार टैप करें, और चिपकाने के लिए एक बार फिर। Esc रद्द करता है।"
+ "value" : "आपकी आवाज़ को आपके Mac की वाक् पहचान टेक्स्ट में बदलती है, जब आपका Mac समर्थन करे तो डिवाइस पर ही; Coucou इसे कहीं नहीं भेजता। चिपकाने के बाद क्लिपबोर्ड में पहले वाली चीज़ वापस आ जाती है।"
}
},
"id" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Tahan %@, bicara, lalu lepas: kata-katamu ditempel di tempat kamu mengetik. Ketuk dua kali untuk mendikte tanpa tangan, lalu sekali lagi untuk menempel. Esc membatalkan."
+ "value" : "Suaramu diubah menjadi teks oleh pengenalan suara Mac, langsung di perangkat bila Mac mendukungnya; Coucou tidak mengirimnya ke mana pun. Setelah menempel, papan klip kembali berisi apa yang ada sebelumnya."
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Segure %@, fale e solte: suas palavras são coladas onde você digita. Toque duas vezes para ditar sem as mãos e mais uma vez para colar. Esc cancela."
+ "value" : "Sua voz vira texto pelo reconhecimento de fala do seu Mac, no próprio aparelho quando o Mac permite; o Coucou não a envia para lugar nenhum. Depois de colar, a área de transferência recupera o que tinha."
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Удерживайте %@, говорите, отпустите — слова вставятся туда, где вы печатаете. Нажмите дважды, чтобы диктовать без рук, и ещё раз, чтобы вставить. Esc отменяет."
+ "value" : "Ваш голос превращает в текст распознавание речи Mac — прямо на устройстве, если Mac это поддерживает; Coucou никуда его не отправляет. После вставки буфер обмена возвращает прежнее содержимое."
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "按住 %@,说话,松开:你的话会粘贴到你正在输入的位置。连按两次可免手持听写,再按一次即粘贴。按 Esc 取消。"
+ "value" : "你的声音由 Mac 的语音识别转成文字,Mac 支持时在设备上完成;Coucou 不会把它发送到任何地方。粘贴之后,剪贴板会恢复原来的内容。"
}
}
}
},
- "flow.key" : {
+ "flow.tip.cancel" : {
"extractionState" : "manual",
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "translated",
- "value" : "المفتاح"
+ "value" : "إلغاء"
}
},
"bn" : {
"stringUnit" : {
"state" : "translated",
- "value" : "কী"
+ "value" : "বাতিল"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Key"
+ "value" : "Cancel"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Tecla"
+ "value" : "Cancelar"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Touche"
+ "value" : "Annuler"
}
},
"hi" : {
"stringUnit" : {
"state" : "translated",
- "value" : "कुंजी"
+ "value" : "रद्द करें"
}
},
"id" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Tombol"
+ "value" : "Batal"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Tecla"
+ "value" : "Cancelar"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Клавиша"
+ "value" : "Отменить"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "按键"
+ "value" : "取消"
}
}
}
},
- "flow.key-fn" : {
+ "flow.tip.dictate %@" : {
"extractionState" : "manual",
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "translated",
- "value" : "fn (🌐)"
+ "value" : "إملاء · %@"
}
},
"bn" : {
"stringUnit" : {
"state" : "translated",
- "value" : "fn (🌐)"
+ "value" : "ডিক্টেট · %@"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
- "value" : "fn (🌐)"
+ "value" : "Dictate · %@"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
- "value" : "fn (🌐)"
+ "value" : "Dictar · %@"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "fn (🌐)"
+ "value" : "Dicter · %@"
}
},
"hi" : {
"stringUnit" : {
"state" : "translated",
- "value" : "fn (🌐)"
+ "value" : "डिक्टेट करें · %@"
}
},
"id" : {
"stringUnit" : {
"state" : "translated",
- "value" : "fn (🌐)"
+ "value" : "Dikte · %@"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
- "value" : "fn (🌐)"
+ "value" : "Ditar · %@"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
- "value" : "fn (🌐)"
+ "value" : "Диктовать · %@"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "fn (🌐)"
+ "value" : "听写 · %@"
}
}
}
},
- "flow.key-right %@" : {
+ "flow.tip.finish %@" : {
"extractionState" : "manual",
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "translated",
- "value" : "%@ الأيمن"
+ "value" : "لصق · أو اضغط %@"
}
},
"bn" : {
"stringUnit" : {
"state" : "translated",
- "value" : "ডান %@"
+ "value" : "পেস্ট · বা %@ চাপুন"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Right %@"
+ "value" : "Paste · or press %@"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
- "value" : "%@ derecha"
+ "value" : "Pegar · o pulsa %@"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "%@ de droite"
+ "value" : "Coller · ou appuie sur %@"
}
},
"hi" : {
"stringUnit" : {
"state" : "translated",
- "value" : "दायाँ %@"
+ "value" : "चिपकाएँ · या %@ दबाएँ"
}
},
"id" : {
"stringUnit" : {
"state" : "translated",
- "value" : "%@ kanan"
+ "value" : "Tempel · atau tekan %@"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
- "value" : "%@ da direita"
+ "value" : "Colar · ou pressione %@"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Правая %@"
+ "value" : "Вставить · или нажмите %@"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "右侧 %@"
+ "value" : "粘贴 · 或按 %@"
}
}
}
},
- "flow.pasted-again" : {
+ "flow.tip.hub" : {
"extractionState" : "manual",
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "translated",
- "value" : "تم لصق آخر إملاء"
+ "value" : "فتح Coucou"
}
},
"bn" : {
"stringUnit" : {
"state" : "translated",
- "value" : "শেষ ডিক্টেশন পেস্ট হয়েছে"
+ "value" : "Coucou খুলুন"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Last dictation pasted"
+ "value" : "Open Coucou"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Último dictado pegado"
+ "value" : "Abrir Coucou"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Dernière dictée collée"
+ "value" : "Ouvrir Coucou"
}
},
"hi" : {
"stringUnit" : {
"state" : "translated",
- "value" : "पिछला डिक्टेशन चिपकाया गया"
+ "value" : "Coucou खोलें"
}
},
"id" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Dikte terakhir ditempel"
+ "value" : "Buka Coucou"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Último ditado colado"
+ "value" : "Abrir o Coucou"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Последняя диктовка вставлена"
+ "value" : "Открыть Coucou"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "已粘贴上一次听写"
+ "value" : "打开 Coucou"
}
}
}
},
- "flow.privacy" : {
+ "flow.tip.note" : {
"extractionState" : "manual",
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "translated",
- "value" : "يحوّل التعرّف على الكلام في جهاز Mac صوتك إلى نص، على الجهاز نفسه عندما يدعم جهازك ذلك؛ ولا يرسله Coucou إلى أي مكان. بعد اللصق تعود الحافظة إلى ما كانت تحتويه."
+ "value" : "تسجيل مكالمة"
}
},
"bn" : {
"stringUnit" : {
"state" : "translated",
- "value" : "আপনার Mac-এর স্পিচ রিকগনিশন আপনার কণ্ঠকে টেক্সটে রূপান্তর করে, Mac সমর্থন করলে ডিভাইসেই; Coucou এটি কোথাও পাঠায় না। পেস্ট করার পর ক্লিপবোর্ডে আগের জিনিস ফিরে আসে।"
+ "value" : "কল রেকর্ড করুন"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Your voice is turned into text by your Mac's speech recognition, on-device when your Mac supports it; Coucou sends it nowhere. After pasting, the clipboard gets back what it held."
+ "value" : "Record a call"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Tu voz se convierte en texto con el reconocimiento de voz de tu Mac, en el propio equipo cuando tu Mac lo admite; Coucou no la envía a ningún sitio. Tras pegar, el portapapeles recupera lo que tenía."
+ "value" : "Grabar una llamada"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Ta voix est transformée en texte par la reconnaissance vocale de ton Mac, sur l'appareil quand ton Mac le permet ; Coucou ne l'envoie nulle part. Après le collage, le presse-papiers retrouve ce qu'il contenait."
+ "value" : "Enregistrer un call"
}
},
"hi" : {
"stringUnit" : {
"state" : "translated",
- "value" : "आपकी आवाज़ को आपके Mac की वाक् पहचान टेक्स्ट में बदलती है, जब आपका Mac समर्थन करे तो डिवाइस पर ही; Coucou इसे कहीं नहीं भेजता। चिपकाने के बाद क्लिपबोर्ड में पहले वाली चीज़ वापस आ जाती है।"
+ "value" : "कॉल रिकॉर्ड करें"
}
},
"id" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Suaramu diubah menjadi teks oleh pengenalan suara Mac, langsung di perangkat bila Mac mendukungnya; Coucou tidak mengirimnya ke mana pun. Setelah menempel, papan klip kembali berisi apa yang ada sebelumnya."
+ "value" : "Rekam panggilan"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Sua voz vira texto pelo reconhecimento de fala do seu Mac, no próprio aparelho quando o Mac permite; o Coucou não a envia para lugar nenhum. Depois de colar, a área de transferência recupera o que tinha."
+ "value" : "Gravar uma chamada"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Ваш голос превращает в текст распознавание речи Mac — прямо на устройстве, если Mac это поддерживает; Coucou никуда его не отправляет. После вставки буфер обмена возвращает прежнее содержимое."
+ "value" : "Записать звонок"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "你的声音由 Mac 的语音识别转成文字,Mac 支持时在设备上完成;Coucou 不会把它发送到任何地方。粘贴之后,剪贴板会恢复原来的内容。"
+ "value" : "录制通话"
}
}
}
@@ -9305,6 +10020,136 @@
}
}
},
+ "notes.ann.open" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "عرض"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "দেখুন"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "See"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Ver"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Voir"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "देखें"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Lihat"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Ver"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Открыть"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "查看"
+ }
+ }
+ }
+ },
+ "notes.ann.ready %@" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "الملاحظات جاهزة: %@"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "নোট তৈরি: %@"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Notes ready: %@"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Notas listas: %@"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Notes prêtes : %@"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "नोट्स तैयार: %@"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Catatan siap: %@"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Notas prontas: %@"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Заметки готовы: %@"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "笔记已就绪:%@"
+ }
+ }
+ }
+ },
"notes.copied" : {
"extractionState" : "manual",
"localizations" : {
diff --git a/NotchBuddy/Sources/App/FlowDictation.swift b/NotchBuddy/Sources/App/FlowDictation.swift
index 0a60c0c5..eea907e7 100644
--- a/NotchBuddy/Sources/App/FlowDictation.swift
+++ b/NotchBuddy/Sources/App/FlowDictation.swift
@@ -73,6 +73,7 @@ final class FlowDictation: ObservableObject {
@Published var key: FlowKey = FlowKey(rawValue: UserDefaults.standard.string(forKey: FlowDictation.keyKey) ?? "") ?? .rightOption {
didSet {
UserDefaults.standard.set(key.rawValue, forKey: Self.keyKey)
+ pill.model.keyLabel = key.label
cancelAll()
}
}
@@ -94,6 +95,28 @@ final class FlowDictation: ObservableObject {
let bands = FlowAudioBands()
self.bands = bands
pill = FlowPillController(bands: bands)
+ // The pill's buttons, under the pointer.
+ pill.model.keyLabel = key.label
+ pill.model.dictate = { [weak self] in self?.startHandsFree() }
+ pill.model.finishDictation = { [weak self] in self?.finishFromPill() }
+ pill.model.cancelDictation = { [weak self] in self?.cancelAll() }
+ pill.model.toggleNote = { NoteTaker.shared.toggleFromPill() }
+ pill.model.openHub = { FlowHubController.shared.show() }
+ }
+
+ /// The pill's microphone: hands-free, as after a double tap, until ✓ or the key.
+ func startHandsFree() {
+ guard isEnabled, logic.phase == .idle, current == nil else { return }
+ logic.lock()
+ begin()
+ pill.model.phase = .locked
+ }
+
+ /// The pill's ✓: stop listening and paste.
+ func finishFromPill() {
+ guard logic.phase == .locked else { return }
+ logic.reset()
+ finish()
}
/// At launch: listens for the key if Flow dictation is on.
@@ -187,7 +210,11 @@ final class FlowDictation: ObservableObject {
/// Pastes the last dictation again (⌃⌘V, or the button of the history).
func pasteAgain(_ text: String? = nil) {
guard let text = text ?? FlowStore.shared.lastText, !text.isEmpty else { return }
- if FlowPaste.insert(text) { pill.flash(.pastedAgain) } else { pill.flash(.copied) }
+ switch FlowPaste.insert(text) {
+ case .pasted: pill.flash(.pastedAgain)
+ case .noAccess: announceNoAccess()
+ case .noField: announceNoField()
+ }
}
private func handle(type: NSEvent.EventType, keyCode: UInt16, flags: NSEvent.ModifierFlags, characters: String?) {
@@ -286,6 +313,12 @@ final class FlowDictation: ObservableObject {
self.logic.reset()
self.current = nil
self.pill.flash(.failed)
+ self.pill.announce(FlowAnnouncement(symbol: "mic.slash.fill", tint: "#FF6B6B", text: String(localized: "flow.ann.mic"),
+ action: String(localized: "flow.ann.settings"))) {
+ if let url = URL(string: "x-apple.systempreferences:com.apple.preference.security?Privacy_Microphone") {
+ NSWorkspace.shared.open(url)
+ }
+ }
}
}
}
@@ -322,18 +355,35 @@ final class FlowDictation: ObservableObject {
let latest = self.current === listen
if latest { self.current = nil }
guard !text.isEmpty else { if latest { self.pill.rest() }; return }
- let pasted = FlowPaste.insert(text)
- if !pasted {
+ let result = FlowPaste.insert(text)
+ if latest { self.pill.rest() }
+ switch result {
+ case .pasted:
+ break
+ case .noAccess:
// No Accessibility: the words wait on the clipboard, and macOS is asked once.
self.trusted = false
if !self.promptedThisRun { self.promptedThisRun = true; self.askForAccessibility() }
self.waitForTrust()
+ self.announceNoAccess()
+ case .noField:
+ self.announceNoField()
}
- guard latest else { return }
- if pasted { self.pill.rest() } else { self.pill.flash(.copied) }
}
}
+ /// The words could not be pasted: they are on the clipboard, and the pill says how to get them in.
+ private func announceNoAccess() {
+ pill.announce(FlowAnnouncement(symbol: "lock.fill", text: String(localized: "flow.ann.no-access"),
+ action: String(localized: "flow.ann.allow"))) { [weak self] in
+ self?.openAccessibilitySettings()
+ }
+ }
+
+ private func announceNoField() {
+ pill.announce(FlowAnnouncement(symbol: "doc.on.clipboard.fill", text: String(localized: "flow.ann.no-field")))
+ }
+
private func abort() {
tickTask?.cancel()
if let listen = current {
@@ -359,7 +409,17 @@ enum FlowPaste {
static let transientType = NSPasteboard.PasteboardType("org.nspasteboard.TransientType")
static let autoGeneratedType = NSPasteboard.PasteboardType("org.nspasteboard.AutoGeneratedType")
- @MainActor static func insert(_ text: String) -> Bool {
+ enum Result {
+ /// ⌘V was sent where you type.
+ case pasted
+ /// No Accessibility permission: the words are only on the clipboard.
+ case noAccess
+ /// Nothing seems to take text where the focus is: ⌘V was sent anyway, and the words stay on
+ /// the clipboard for you to paste.
+ case noField
+ }
+
+ @MainActor static func insert(_ text: String) -> Result {
let board = NSPasteboard.general
let saved = snapshot(board)
board.clearContents()
@@ -367,7 +427,8 @@ enum FlowPaste {
board.setString(text, forType: .string)
board.setData(Data(), forType: transientType)
board.setData(Data(), forType: autoGeneratedType)
- guard AXIsProcessTrusted() else { return false }
+ guard AXIsProcessTrusted() else { return .noAccess }
+ let field = focusTakesText()
let source = CGEventSource(stateID: .combinedSessionState)
let v = vKeyCode()
@@ -378,6 +439,8 @@ enum FlowPaste {
down?.post(tap: .cghidEventTap)
up?.post(tap: .cghidEventTap)
+ // No text field: the words stay on the clipboard.
+ if field == false { return .noField }
// Give the app time to read the clipboard, then put back what was there, unless something
// else was copied meanwhile.
let count = board.changeCount
@@ -386,7 +449,30 @@ enum FlowPaste {
guard board.changeCount == count else { return }
restore(saved, to: board)
}
- return true
+ return .pasted
+ }
+
+ /// Whether the focused element takes text: true for a text field, false when the focus is on
+ /// something else (the desktop, a list…) or nowhere, nil when the app does not say (then the
+ /// paste is trusted).
+ @MainActor static func focusTakesText() -> Bool? {
+ let system = AXUIElementCreateSystemWide()
+ var value: CFTypeRef?
+ let status = AXUIElementCopyAttributeValue(system, kAXFocusedUIElementAttribute as CFString, &value)
+ if status == .noValue { return false }
+ guard status == .success, let value, CFGetTypeID(value) == AXUIElementGetTypeID() else { return nil }
+ let element = value as! AXUIElement
+ var role: CFTypeRef?
+ AXUIElementCopyAttributeValue(element, kAXRoleAttribute as CFString, &role)
+ let textRoles: Set<String> = ["AXTextField", "AXTextArea", "AXComboBox", "AXSearchField", "AXWebArea"]
+ if let role = role as? String, textRoles.contains(role) { return true }
+ var settable: DarwinBoolean = false
+ if AXUIElementIsAttributeSettable(element, kAXValueAttribute as CFString, &settable) == .success, settable.boolValue {
+ return true
+ }
+ var range: CFTypeRef?
+ if AXUIElementCopyAttributeValue(element, kAXSelectedTextRangeAttribute as CFString, &range) == .success { return true }
+ return role == nil ? nil : false
}
/// The key that types "v" with ⌘ held in the current keyboard layout: the same key on QWERTY
diff --git a/NotchBuddy/Sources/App/FlowHubMochis.swift b/NotchBuddy/Sources/App/FlowHubMochis.swift
index dc42e88e..09cb13d6 100644
--- a/NotchBuddy/Sources/App/FlowHubMochis.swift
+++ b/NotchBuddy/Sources/App/FlowHubMochis.swift
@@ -413,8 +413,7 @@ final class HubHeroLight: ObservableObject {
}
/// A band's background: an ultra deep black, the page's colour as a glow that breathes in a
-/// corner and follows the pointer, a border lit where the pointer is, and particles drifting up
-/// all the time, pushed away by the pointer and brighter in its light.
+/// corner, and particles drifting up all the time, pushed away by the pointer and brighter near it.
struct HubHeroBackdrop: View {
let color: Color
let light: HubHeroLight
@@ -442,22 +441,6 @@ struct HubHeroBackdrop: View {
center: CGPoint(x: size.width * 0.92, y: -size.height * 0.15),
startRadius: 0, endRadius: max(size.width, size.height) * 0.55 * breath))
- // The light under the pointer.
- if let pos = light.position, light.strength > 0.01 {
- let s = light.strength
- context.fill(Path(rect), with: .radialGradient(
- Gradient(colors: [color.opacity(0.34 * s), color.opacity(0.10 * s), .clear]),
- center: pos, startRadius: 0, endRadius: 230))
- context.fill(Path(rect), with: .radialGradient(
- Gradient(colors: [Color.white.opacity(0.06 * s), .clear]),
- center: pos, startRadius: 0, endRadius: 70))
- // The border catches the light.
- let border = Path(roundedRect: rect.insetBy(dx: 0.75, dy: 0.75), cornerRadius: cornerRadius - 0.5, style: .continuous)
- context.stroke(border, with: .radialGradient(
- Gradient(colors: [color.opacity(0.95 * s), color.opacity(0.25 * s), .clear]),
- center: pos, startRadius: 0, endRadius: 260), lineWidth: 1.5)
- }
-
// The particles.
for p in light.particles {
var alpha = (0.22 + 0.5 * (0.5 + 0.5 * sin(t * (1.2 + p.depth) + p.phase))) * p.depth
diff --git a/NotchBuddy/Sources/App/FlowKeyLogic.swift b/NotchBuddy/Sources/App/FlowKeyLogic.swift
index 76fccb1a..a989cff8 100644
--- a/NotchBuddy/Sources/App/FlowKeyLogic.swift
+++ b/NotchBuddy/Sources/App/FlowKeyLogic.swift
@@ -90,6 +90,9 @@ struct FlowKeyLogic: Equatable {
return .cancel
}
+ /// Hands-free straight away (the pill's microphone button).
+ mutating func lock() { phase = .locked }
+
/// The listen ended on its own (no microphone, nothing heard…).
mutating func reset() { phase = .idle }
}
diff --git a/NotchBuddy/Sources/App/FlowPill.swift b/NotchBuddy/Sources/App/FlowPill.swift
index 35b825f3..ed4fac72 100644
--- a/NotchBuddy/Sources/App/FlowPill.swift
+++ b/NotchBuddy/Sources/App/FlowPill.swift
@@ -2,6 +2,18 @@
import AppKit
import SwiftUI
+/// A message above the pill: something went wrong, or something is ready, with a button to act.
+struct FlowAnnouncement: Equatable, Identifiable {
+ let id = UUID()
+ /// An SF Symbol.
+ var symbol: String
+ /// Its colour.
+ var tint: String = "#FB923C"
+ var text: String
+ /// The button's title, if there is something to do.
+ var action: String?
+}
+
/// What the pill shows.
@MainActor
final class FlowPillModel: ObservableObject {
@@ -10,7 +22,7 @@ final class FlowPillModel: ObservableObject {
case idle
/// The key is held: the pill opens, Mochi on the left, the dots follow the voice.
case listening
- /// Hands-free (double tap): same, with an orange ring.
+ /// Hands-free (double tap, or the pill's microphone): ✕, the dots and ✓, with an orange ring.
case locked
/// Released: the Mac turns the voice into words.
case thinking
@@ -24,7 +36,23 @@ final class FlowPillModel: ObservableObject {
@Published var phase: Phase = .idle
/// A call is being recorded by the Notetaker: resting, the pill shows it, with a stop button.
@Published var noteStartedAt: Date?
+ /// The pointer is over the pill: resting, it opens into its buttons.
+ @Published var hovered = false
+ /// The bubble above the pill while the pointer is on one of its buttons.
+ @Published var tooltip: String?
+ /// The message above the pill.
+ @Published var announcement: FlowAnnouncement?
+ /// The key to dictate ("⌥ de droite"), for the bubbles.
+ @Published var keyLabel = ""
+
var stopNote: (@MainActor () -> Void)?
+ var toggleNote: (@MainActor () -> Void)?
+ var dictate: (@MainActor () -> Void)?
+ var finishDictation: (@MainActor () -> Void)?
+ var cancelDictation: (@MainActor () -> Void)?
+ var openHub: (@MainActor () -> Void)?
+ var announcementAction: (@MainActor () -> Void)?
+ var dismissAnnouncement: (@MainActor () -> Void)?
}
/// Eases the dots toward the microphone's levels, frame by frame (fast up, slower down), and
@@ -63,9 +91,11 @@ private extension Array {
subscript(safe i: Int) -> Element? { indices.contains(i) ? self[i] : nil }
}
-/// The pill at the bottom of the screen, like Wispr Flow's bar. Resting, it is a small black pill
-/// with a light outline; when you speak it opens from there into a capsule with a tiny Mochi on
-/// the left and nine dots on the right that rise and fall with the graves and the aigus of the voice.
+/// The pill at the bottom of the screen, like Wispr Flow's bar. Resting, it is a small see-through
+/// pill; under the pointer it opens into Mochi and three buttons (dictate, record a call, open
+/// Coucou), each with its bubble. When you speak it opens into Mochi and nine dots rising and
+/// falling with the graves and the aigus of the voice. Messages (a paste that could not happen, a
+/// call's notes ready) grow above it, with a button to act.
struct FlowPillView: View {
@ObservedObject var model: FlowPillModel
let bands: FlowAudioBands
@@ -74,24 +104,71 @@ struct FlowPillView: View {
static let restingSize = CGSize(width: 44, height: 8)
static let openHeight: CGFloat = 34
- private var open: Bool { model.phase != .idle || model.noteStartedAt != nil }
+ /// What the capsule shows, from the most to the least important.
+ enum Look: Equatable {
+ case resting, toolbar, note, live, handsFree, message
+ }
+
+ private var look: Look {
+ switch model.phase {
+ case .locked: return .handsFree
+ case .listening, .thinking: return .live
+ case .copied, .failed, .pastedAgain: return .message
+ case .idle:
+ if model.noteStartedAt != nil { return .note }
+ return model.hovered ? .toolbar : .resting
+ }
+ }
+
+ private var open: Bool { look != .resting }
var body: some View {
- ZStack(alignment: .bottom) {
- Color.clear
+ VStack(spacing: 8) {
+ Spacer(minLength: 0)
+ bubble
capsule
}
.frame(width: FlowPillController.size.width, height: FlowPillController.size.height)
+ .animation(.spring(response: 0.34, dampingFraction: 0.78), value: model.announcement)
+ .animation(.easeOut(duration: 0.15), value: model.tooltip)
}
+ // MARK: Above the pill
+
+ @ViewBuilder private var bubble: some View {
+ if let announcement = model.announcement {
+ FlowAnnouncementView(announcement: announcement,
+ act: { model.announcementAction?() },
+ dismiss: { model.dismissAnnouncement?() })
+ .transition(.scale(scale: 0.6, anchor: .bottom).combined(with: .opacity))
+ } else if let tooltip = model.tooltip {
+ Text(tooltip)
+ .font(.system(size: 12.5, weight: .semibold))
+ .foregroundColor(.white)
+ .padding(.horizontal, 14)
+ .frame(height: 30)
+ .background(Capsule().fill(Color.black.opacity(0.94)))
+ .overlay(Capsule().strokeBorder(Color.white.opacity(0.14)))
+ .fixedSize()
+ .transition(.scale(scale: 0.8, anchor: .bottom).combined(with: .opacity))
+ }
+ }
+
+ // MARK: The capsule
+
/// The width the open pill needs for what it shows.
private var openWidth: CGFloat {
- switch model.phase {
- case .copied: return Self.messageWidth(String(localized: "flow.copied-noaccess"))
- case .failed: return Self.messageWidth(String(localized: "flow.failed"))
- case .pastedAgain: return Self.messageWidth(String(localized: "flow.pasted-again"))
- case .idle: return 172
- default: return 118
+ switch look {
+ case .toolbar: return 150
+ case .note: return 172
+ case .handsFree: return 158
+ case .message:
+ switch model.phase {
+ case .copied: return Self.messageWidth(String(localized: "flow.copied-noaccess"))
+ case .failed: return Self.messageWidth(String(localized: "flow.failed"))
+ default: return Self.messageWidth(String(localized: "flow.pasted-again"))
+ }
+ default: return 118
}
}
@@ -109,7 +186,7 @@ struct FlowPillView: View {
Capsule()
.strokeBorder(Color.white.opacity(open ? 0.16 : 0.42), lineWidth: open ? 1 : 1.2)
Capsule()
- .strokeBorder(Color(hex: "#F97316").opacity(model.phase == .locked ? 0.85 : 0), lineWidth: 1.5)
+ .strokeBorder(Color(hex: "#F97316").opacity(look == .handsFree ? 0.85 : 0), lineWidth: 1.5)
content
.opacity(open ? 1 : 0)
.scaleEffect(open ? 1 : 0.5)
@@ -119,44 +196,68 @@ struct FlowPillView: View {
height: open ? Self.openHeight : Self.restingSize.height)
.clipShape(Capsule()) // the content stays inside while the pill opens
.shadow(color: .black.opacity(open ? 0.35 : 0), radius: open ? 10 : 0, y: open ? 4 : 0)
- .animation(.spring(response: 0.36, dampingFraction: 0.74), value: model.phase)
+ .animation(.spring(response: 0.36, dampingFraction: 0.74), value: look)
.padding(.bottom, 2)
}
- private var content: some View {
- HStack(spacing: 9) {
- mochi
- switch model.phase {
- case .copied:
- Text("flow.copied-noaccess")
- .font(.system(size: 12, weight: .medium))
- .foregroundColor(Color(hex: "#E8E9EC"))
- .fixedSize()
- case .failed:
- Text("flow.failed")
- .font(.system(size: 12, weight: .medium))
- .foregroundColor(Color(hex: "#E8E9EC"))
- .fixedSize()
- case .pastedAgain:
- Text("flow.pasted-again")
- .font(.system(size: 12, weight: .medium))
- .foregroundColor(Color(hex: "#E8E9EC"))
- .fixedSize()
- case .idle:
- noteContent
- default:
+ @ViewBuilder private var content: some View {
+ switch look {
+ case .toolbar:
+ HStack(spacing: 4) {
+ mochi.padding(.trailing, 5)
+ PillButton(symbol: "mic.fill", tip: String(format: String(localized: "flow.tip.dictate %@"), model.keyLabel),
+ model: model) { model.dictate?() }
+ PillButton(symbol: "record.circle", tip: String(localized: "flow.tip.note"), model: model) {
+ model.toggleNote?()
+ }
+ PillButton(symbol: "macwindow", tip: String(localized: "flow.tip.hub"), model: model) { model.openHub?() }
+ }
+ .padding(.horizontal, 10)
+ .fixedSize()
+ case .handsFree:
+ HStack(spacing: 9) {
+ PillButton(symbol: "xmark", tip: String(localized: "flow.tip.cancel"), model: model, small: true) {
+ model.cancelDictation?()
+ }
dots
+ PillButton(symbol: "checkmark", tip: String(format: String(localized: "flow.tip.finish %@"), model.keyLabel),
+ model: model, small: true, filled: true) { model.finishDictation?() }
}
+ .padding(.horizontal, 6)
+ .fixedSize()
+ default:
+ HStack(spacing: 9) {
+ mochi
+ switch model.phase {
+ case .copied:
+ message("flow.copied-noaccess")
+ case .failed:
+ message("flow.failed")
+ case .pastedAgain:
+ message("flow.pasted-again")
+ case .idle:
+ noteContent
+ default:
+ dots
+ }
+ }
+ .padding(.horizontal, 13)
+ .fixedSize()
}
- .padding(.horizontal, 13)
- .fixedSize()
+ }
+
+ private func message(_ key: LocalizedStringKey) -> some View {
+ Text(key)
+ .font(.system(size: 12, weight: .medium))
+ .foregroundColor(Color(hex: "#E8E9EC"))
+ .fixedSize()
}
/// Mochi, drawn by the same engine as the compact island's mini Mochis: his eyes wander all
/// around while you speak. 22 pt wide like a pill's Mochi (the canvas is larger, as there).
private var mochi: some View {
// Still while only a recorded call shows: the pill costs nothing during a long call.
- FlowMochiView(active: model.phase != .idle)
+ FlowMochiView(active: model.phase != .idle || model.hovered)
.frame(width: 22 / 0.6, height: 22 / 0.6)
.frame(width: 22, height: 22, alignment: .center)
}
@@ -205,6 +306,82 @@ struct FlowPillView: View {
}
}
+/// A round button of the pill, with its bubble above while the pointer is on it.
+private struct PillButton: View {
+ let symbol: String
+ let tip: String
+ @ObservedObject var model: FlowPillModel
+ var small = false
+ var filled = false
+ let action: () -> Void
+ @State private var hover = false
+
+ var body: some View {
+ Button(action: action) {
+ Image(systemName: symbol)
+ .font(.system(size: small ? 10 : 12, weight: .bold))
+ .foregroundColor(filled ? .black : .white)
+ .frame(width: small ? 24 : 28, height: small ? 24 : 28)
+ .background(Circle().fill(filled ? Color.white : Color.white.opacity(hover ? 0.22 : 0.10)))
+ .contentShape(Circle())
+ }
+ .buttonStyle(.plain)
+ .accessibilityLabel(tip)
+ .onHover { inside in
+ hover = inside
+ if inside { model.tooltip = tip } else if model.tooltip == tip { model.tooltip = nil }
+ }
+ }
+}
+
+/// The message above the pill: a symbol, the words, a button to act and one to close.
+private struct FlowAnnouncementView: View {
+ let announcement: FlowAnnouncement
+ let act: () -> Void
+ let dismiss: () -> Void
+
+ var body: some View {
+ HStack(spacing: 12) {
+ Image(systemName: announcement.symbol)
+ .font(.system(size: 15, weight: .semibold))
+ .foregroundColor(Color(hex: announcement.tint))
+ Text(announcement.text)
+ .font(.system(size: 13, weight: .medium))
+ .foregroundColor(.white)
+ .fixedSize(horizontal: false, vertical: true)
+ .frame(maxWidth: 270, alignment: .leading)
+ if let action = announcement.action {
+ Button(action: act) {
+ Text(action)
+ .font(.system(size: 12.5, weight: .bold))
+ .foregroundColor(.black)
+ .padding(.horizontal, 13)
+ .frame(height: 28)
+ .background(Capsule().fill(Color(hex: "#F5F1EA")))
+ }
+ .buttonStyle(.plain)
+ .fixedSize()
+ }
+ Button(action: dismiss) {
+ Image(systemName: "xmark")
+ .font(.system(size: 10, weight: .bold))
+ .foregroundColor(Color.white.opacity(0.6))
+ .frame(width: 22, height: 22)
+ .background(Circle().fill(Color.white.opacity(0.08)))
+ }
+ .buttonStyle(.plain)
+ .accessibilityLabel(String(localized: "flow.ann.dismiss"))
+ }
+ .padding(.leading, 16)
+ .padding(.trailing, 10)
+ .padding(.vertical, 10)
+ .background(RoundedRectangle(cornerRadius: 18, style: .continuous).fill(Color.black.opacity(0.95)))
+ .overlay(RoundedRectangle(cornerRadius: 18, style: .continuous).strokeBorder(Color.white.opacity(0.14)))
+ .shadow(color: .black.opacity(0.4), radius: 14, y: 6)
+ .fixedSize()
+ }
+}
+
/// The pill's Mochi: a mini Mochi (BotEngine, like the pills of the compact island), white, idle,
/// so his eyes wander around. Drawn only while the pill is open.
private struct FlowMochiView: View {
@@ -234,19 +411,23 @@ private struct FlowMochiView: View {
}
}
-/// The pill's window: borderless, never takes the focus (the words go to the app you type in),
-/// lets clicks through, on every Space and over full-screen apps. It stays at the bottom centre of
-/// a screen while Flow dictation is on, and moves to the screen the mouse is on when you speak.
+/// The pill's window: borderless, never takes the focus (the words go to the app you type in), on
+/// every Space and over full-screen apps. It stays at the bottom centre of a screen while Flow
+/// dictation is on, and moves to the screen the mouse is on when you speak. It is taller than the
+/// pill, for the bubbles above it, and lets clicks through except where the pill and its bubble are.
@MainActor
final class FlowPillController {
- static let size = NSSize(width: 380, height: 60)
+ static let size = NSSize(width: 520, height: 170)
let model = FlowPillModel()
private let smoother = FlowLevelSmoother()
private let bands: FlowAudioBands
private var panel: NSPanel?
private var restTask: Task<Void, Never>?
+ private var announceTask: Task<Void, Never>?
+ private var unhoverTask: Task<Void, Never>?
private var screenObserver: NSObjectProtocol?
+ private var mouseMonitors: [Any] = []
/// Whether Flow dictation is on (the resting pill shows).
private var dictationOn = false
@@ -254,30 +435,90 @@ final class FlowPillController {
init(bands: FlowAudioBands) {
self.bands = bands
model.stopNote = { NoteTaker.shared.stop() }
+ model.dismissAnnouncement = { [weak self] in self?.dismissAnnouncement() }
}
- /// The Notetaker records (a date) or stopped (nil): the pill shows it even when dictation is off,
- /// and takes clicks for its stop button.
+ private var shouldShow: Bool { dictationOn || model.noteStartedAt != nil || model.announcement != nil }
+
+ /// The Notetaker records (a date) or stopped (nil): the pill shows it even when dictation is off.
func setNote(_ start: Date?) {
model.noteStartedAt = start
- if start != nil {
+ updateVisibility()
+ }
+
+ /// Flow dictation on: the resting pill shows. Off: it goes away.
+ func setEnabled(_ on: Bool) {
+ restTask?.cancel()
+ model.phase = .idle
+ dictationOn = on
+ updateVisibility()
+ }
+
+ private func updateVisibility() {
+ if shouldShow {
if panel == nil { build() }
guard let panel else { return }
- if !panel.isVisible { place(panel, onMouseScreen: false) }
- panel.orderFrontRegardless()
+ if !panel.isVisible {
+ place(panel, onMouseScreen: false)
+ panel.orderFrontRegardless()
+ }
watchMouse()
+ if screenObserver == nil {
+ screenObserver = NotificationCenter.default.addObserver(
+ forName: NSApplication.didChangeScreenParametersNotification, object: nil, queue: .main
+ ) { [weak self] _ in
+ MainActor.assumeIsolated {
+ guard let self, let panel = self.panel, panel.isVisible else { return }
+ self.place(panel, onMouseScreen: false)
+ }
+ }
+ }
} else {
- mouseMonitors.forEach { NSEvent.removeMonitor($0) }
- mouseMonitors.removeAll()
- panel?.ignoresMouseEvents = true
- if !dictationOn { panel?.orderOut(nil) }
+ panel?.orderOut(nil)
+ stopWatchingMouse()
+ model.hovered = false
+ model.tooltip = nil
+ if let screenObserver { NotificationCenter.default.removeObserver(screenObserver) }
+ screenObserver = nil
}
}
- /// The panel is wider than the pill: it takes clicks only while the mouse is over the pill, so
- /// the stop button works and everything around it stays clickable.
- private var mouseMonitors: [Any] = []
+ // MARK: - Messages
+ /// A message above the pill, with a button to act; it goes away by itself after a while,
+ /// unless the pointer is on it.
+ func announce(_ announcement: FlowAnnouncement, for seconds: TimeInterval = 8,
+ perform: (@MainActor () -> Void)? = nil) {
+ model.tooltip = nil
+ model.announcementAction = { [weak self] in
+ perform?()
+ self?.dismissAnnouncement()
+ }
+ model.announcement = announcement
+ updateVisibility()
+ updateMouse()
+ announceTask?.cancel()
+ announceTask = Task { @MainActor [weak self] in
+ try? await Task.sleep(for: .seconds(seconds))
+ while !Task.isCancelled, self?.model.hovered == true {
+ try? await Task.sleep(for: .seconds(1))
+ }
+ guard !Task.isCancelled else { return }
+ self?.dismissAnnouncement()
+ }
+ }
+
+ func dismissAnnouncement() {
+ announceTask?.cancel()
+ model.announcement = nil
+ model.announcementAction = nil
+ updateVisibility()
+ updateMouse()
+ }
+
+ // MARK: - The pointer
+
+ /// The panel takes clicks only where the pill and its bubble are; the pill opens under the pointer.
private func watchMouse() {
guard mouseMonitors.isEmpty else { return }
if let global = NSEvent.addGlobalMonitorForEvents(matching: [.mouseMoved, .leftMouseDragged], handler: { [weak self] _ in
@@ -290,39 +531,53 @@ final class FlowPillController {
updateMouse()
}
- private func updateMouse() {
- guard let panel, model.noteStartedAt != nil else { return }
- let width: CGFloat = 190, height: CGFloat = 44
- let pill = NSRect(x: panel.frame.midX - width / 2, y: panel.frame.minY, width: width, height: height)
- let over = NSMouseInRect(NSEvent.mouseLocation, pill, false)
- if panel.ignoresMouseEvents == over { panel.ignoresMouseEvents = !over }
+ private func stopWatchingMouse() {
+ mouseMonitors.forEach { NSEvent.removeMonitor($0) }
+ mouseMonitors.removeAll()
+ panel?.ignoresMouseEvents = true
}
- /// Flow dictation on: the resting pill shows. Off: it goes away.
- func setEnabled(_ on: Bool) {
- restTask?.cancel()
- model.phase = .idle
- dictationOn = on
- if on || model.noteStartedAt != nil {
- if panel == nil { build() }
- if let panel { place(panel, onMouseScreen: false); panel.orderFrontRegardless() }
- if screenObserver == nil {
- screenObserver = NotificationCenter.default.addObserver(
- forName: NSApplication.didChangeScreenParametersNotification, object: nil, queue: .main
- ) { [weak self] _ in
- MainActor.assumeIsolated {
- guard let self, let panel = self.panel, panel.isVisible else { return }
- self.place(panel, onMouseScreen: false)
- }
- }
+ /// The parts of the panel that take the pointer, in screen coordinates.
+ private func hotRects(_ frame: NSRect) -> [NSRect] {
+ let open = model.hovered || model.phase != .idle || model.noteStartedAt != nil
+ // The pill: a generous zone around the small resting one, the whole capsule once open.
+ let pillWidth: CGFloat = open ? 200 : 96
+ let pillHeight: CGFloat = open ? 46 : 26
+ var rects = [NSRect(x: frame.midX - pillWidth / 2, y: frame.minY, width: pillWidth, height: pillHeight)]
+ if model.announcement != nil {
+ rects.append(NSRect(x: frame.midX - 240, y: frame.minY + 40, width: 480, height: 110))
+ } else if model.tooltip != nil {
+ rects.append(NSRect(x: frame.midX - 140, y: frame.minY + 40, width: 280, height: 40))
+ }
+ return rects
+ }
+
+ private func updateMouse() {
+ guard let panel, panel.isVisible else { return }
+ let mouse = NSEvent.mouseLocation
+ let over = hotRects(panel.frame).contains { NSMouseInRect(mouse, $0, false) }
+ if panel.ignoresMouseEvents == over { panel.ignoresMouseEvents = !over }
+ if over {
+ unhoverTask?.cancel()
+ unhoverTask = nil
+ if !model.hovered { model.hovered = true }
+ } else if model.hovered, unhoverTask == nil {
+ // A short grace, to move from the pill to its bubble.
+ unhoverTask = Task { @MainActor [weak self] in
+ try? await Task.sleep(for: .milliseconds(250))
+ guard !Task.isCancelled, let self else { return }
+ self.unhoverTask = nil
+ let mouse = NSEvent.mouseLocation
+ if let panel = self.panel, self.hotRects(panel.frame).contains(where: { NSMouseInRect(mouse, $0, false) }) { return }
+ self.model.hovered = false
+ self.model.tooltip = nil
+ self.panel?.ignoresMouseEvents = true
}
- } else {
- panel?.orderOut(nil)
- if let screenObserver { NotificationCenter.default.removeObserver(screenObserver) }
- screenObserver = nil
}
}
+ // MARK: - Dictation
+
/// The key is down: open on the screen the mouse is on.
func listen() {
restTask?.cancel()
@@ -331,6 +586,7 @@ final class FlowPillController {
place(panel, onMouseScreen: true)
panel.orderFrontRegardless()
smoother.reset()
+ model.tooltip = nil
model.phase = .listening
}
@@ -348,6 +604,8 @@ final class FlowPillController {
if delay > 0 { try? await Task.sleep(for: .seconds(delay)) }
guard !Task.isCancelled, let self else { return }
self.model.phase = .idle
+ self.model.tooltip = nil
+ self.updateMouse()
}
}
diff --git a/NotchBuddy/Sources/App/NoteTaker.swift b/NotchBuddy/Sources/App/NoteTaker.swift
index e0859bd2..582b1a26 100644
--- a/NotchBuddy/Sources/App/NoteTaker.swift
+++ b/NotchBuddy/Sources/App/NoteTaker.swift
@@ -84,6 +84,25 @@ final class NoteTaker: ObservableObject {
var isRecording: Bool { recording != nil }
+ /// The pill's record button: starts or stops, and says what is missing.
+ func toggleFromPill() {
+ if isRecording { stop(); return }
+ guard Parakeet.shared.isReady else {
+ FlowDictation.shared.pill.announce(
+ FlowAnnouncement(symbol: "arrow.down.circle.fill", tint: "#3B9EFF", text: String(localized: "notes.error.models"),
+ action: String(localized: "hub.open-settings"))) {
+ FlowHubController.shared.show(.settings)
+ }
+ return
+ }
+ Task { @MainActor in
+ await self.start()
+ if let error = self.startError {
+ FlowDictation.shared.pill.announce(FlowAnnouncement(symbol: "exclamationmark.circle.fill", tint: "#FF6B6B", text: error))
+ }
+ }
+ }
+
// MARK: - Recording
func start() async {
@@ -263,6 +282,14 @@ final class NoteTaker: ObservableObject {
if summaryEngine != .off, !note.lines.isEmpty {
await summarize(id)
}
+ // The notes are ready: the pill says so, with a way to open them.
+ let title = self.note(id)?.title ?? note.title
+ FlowDictation.shared.pill.announce(
+ FlowAnnouncement(symbol: "checkmark.circle.fill", tint: "#34D399",
+ text: String(format: String(localized: "notes.ann.ready %@"), title),
+ action: String(localized: "notes.ann.open")), for: 12) {
+ FlowHubController.shared.show(.notes)
+ }
}
nonisolated static func personName(_ number: Int) -> String {
diff --git a/tests/FlowKeyLogicTests.swift b/tests/FlowKeyLogicTests.swift
index 65b54465..8667a1a3 100644
--- a/tests/FlowKeyLogicTests.swift
+++ b/tests/FlowKeyLogicTests.swift
@@ -32,6 +32,15 @@ enum FlowKeyLogicTests {
check("idle after the drop", k.phase == .idle)
}
+ print("\nThe pill's microphone: hands-free at once")
+ do {
+ var k = FlowKeyLogic()
+ k.lock()
+ check("locked", k.phase == .locked)
+ check("the key pastes", k.keyDown(at: 5) == .finish)
+ check("idle after", k.phase == .idle)
+ }
+
print("\nDouble tap: hands-free")
do {
var k = FlowKeyLogic()