mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-30 10:14:46 +01:00
train: #8209
This commit is contained in:
commit
f6ee29fbba
37 files changed
+1811
-100
No files matched your search
@@ -641,6 +641,11 @@ pub fn tr_ctx<'a>(lang: Lang, context: &str, s: &'a str) -> &'a str {
|
||||
lang.catalog().contextual(context, s).unwrap_or_else(|| tr(lang, s))
|
||||
}
|
||||
|
||||
/// The translation of `s` in `lang`'s `context` rows alone, or `None` when it has no such row.
|
||||
pub fn tr_ctx_row(lang: Lang, context: &str, s: &str) -> Option<&'static str> {
|
||||
lang.catalog().contextual(context, s)
|
||||
}
|
||||
|
||||
/// A name the app gives something (a default swatch's), translated where the current language has
|
||||
/// a `context` row for it; any other name (one the user gave) comes back as it is.
|
||||
pub fn t_name<'a>(context: &str, name: &'a str) -> &'a str {
|
||||
|
||||
@@ -3383,6 +3383,7 @@ digits Malayalam Малаялам
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} от {n} резултат. Продължете да пишете, за да ги стесните.|{shown} от {n} резултата. Продължете да пишете, за да ги стесните.
|
||||
Recent Commands Последни команди
|
||||
No recent commands Няма последни команди
|
||||
Type to search commands, tools, panels and effects Въведете текст, за да търсите команди, инструменти, панели и ефекти
|
||||
Search commands Търсене на команди
|
||||
Search Commands… Търсене на команди…
|
||||
Secondary Вторичен
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4506,6 +4506,7 @@ font-technology Variable Varijabilni
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} od {n} rezultata. Nastavite kucati da ih suzite.|{shown} od {n} rezultata. Nastavite kucati da ih suzite.|{shown} od {n} rezultata. Nastavite kucati da ih suzite.
|
||||
Recent Commands Nedavne naredbe
|
||||
No recent commands Nema nedavnih naredbi
|
||||
Type to search commands, tools, panels and effects Upišite za pretragu naredbi, alata, panela i efekata
|
||||
Dashed Line Isprekidana linija
|
||||
Panel menu Meni panela
|
||||
Unembed… Poništi ugrađivanje…
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4578,6 +4578,7 @@ digits Malayalam Malaiàlam
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} de {n} resultat. Continueu escrivint per reduir-los.|{shown} de {n} resultats. Continueu escrivint per reduir-los.
|
||||
Recent Commands Ordres recents
|
||||
No recent commands No hi ha ordres recents
|
||||
Type to search commands, tools, panels and effects Escriviu per cercar ordres, eines, panells i efectes
|
||||
Search commands Cerca ordres
|
||||
Search Commands… Cerca ordres…
|
||||
Search Fonts Folder Cerca a la carpeta de tipus de lletra
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4614,6 +4614,7 @@ font-technology Variable Variabilní
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} z {n} výsledku. Pište dál a výsledky se zúží.|{shown} z {n} výsledků. Pište dál a výsledky se zúží.|{shown} z {n} výsledků. Pište dál a výsledky se zúží.
|
||||
Recent Commands Nedávné příkazy
|
||||
No recent commands Žádné nedávné příkazy
|
||||
Type to search commands, tools, panels and effects Pište pro hledání příkazů, nástrojů, panelů a efektů
|
||||
Dashed Line Čárkovaná čára
|
||||
Panel menu Nabídka panelu
|
||||
Unembed… Zrušit vložení…
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7035,6 +7035,7 @@ font-technology Variable Variable
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} af {n} resultat. Skriv videre for at indsnævre dem.|{shown} af {n} resultater. Skriv videre for at indsnævre dem.
|
||||
Recent Commands Seneste kommandoer
|
||||
No recent commands Ingen seneste kommandoer
|
||||
Type to search commands, tools, panels and effects Skriv for at søge i kommandoer, værktøjer, paneler og effekter
|
||||
Dashed Line Stiplet linje
|
||||
Panel menu Panelmenu
|
||||
Unembed… Ophæv integrering…
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3466,6 +3466,7 @@ digits Malayalam Malayalam
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} von {n} Ergebnis. Tippen Sie weiter, um sie einzugrenzen.|{shown} von {n} Ergebnissen. Tippen Sie weiter, um sie einzugrenzen.
|
||||
Recent Commands Zuletzt verwendete Befehle
|
||||
No recent commands Keine zuletzt verwendeten Befehle
|
||||
Type to search commands, tools, panels and effects Tippen, um Befehle, Werkzeuge, Bedienfelder und Effekte zu suchen
|
||||
Search commands Befehle suchen
|
||||
Search Commands… Befehle suchen…
|
||||
Secondary Sekundär
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4202,6 +4202,7 @@ digits Malayalam Μαλαγιάλαμ
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} από {n} αποτέλεσμα. Συνεχίστε να πληκτρολογείτε για να τα περιορίσετε.|{shown} από {n} αποτελέσματα. Συνεχίστε να πληκτρολογείτε για να τα περιορίσετε.
|
||||
Recent Commands Πρόσφατες εντολές
|
||||
No recent commands Δεν υπάρχουν πρόσφατες εντολές
|
||||
Type to search commands, tools, panels and effects Πληκτρολογήστε για αναζήτηση εντολών, εργαλείων, πλαισίων και εφέ
|
||||
Search commands Αναζήτηση εντολών
|
||||
Search Commands… Αναζήτηση εντολών…
|
||||
Secondary Δευτερεύον
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3501,6 +3501,7 @@ digits Malayalam Malayálam
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} de {n} resultado. Sigue escribiendo para acotarlos.|{shown} de {n} resultados. Sigue escribiendo para acotarlos.
|
||||
Recent Commands Comandos recientes
|
||||
No recent commands No hay comandos recientes
|
||||
Type to search commands, tools, panels and effects Escriba para buscar comandos, herramientas, paneles y efectos
|
||||
Search commands Buscar comandos
|
||||
Search Commands… Buscar comandos…
|
||||
Secondary Secundario
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4524,6 +4524,7 @@ font-technology Variable Muuttuvat
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown}/{n} tulosta. Kirjoita lisää rajataksesi tuloksia.|{shown}/{n} tulosta. Kirjoita lisää rajataksesi tuloksia.
|
||||
Recent Commands Viimeisimmät komennot
|
||||
No recent commands Ei viimeisimpiä komentoja
|
||||
Type to search commands, tools, panels and effects Kirjoita hakeaksesi komentoja, työkaluja, paneeleita ja tehosteita
|
||||
Dashed Line Katkoviiva
|
||||
Panel menu Paneelivalikko
|
||||
Unembed… Poista upotus…
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -3489,6 +3489,7 @@ digits Malayalam Malayalam
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} sur {n} résultat. Continuez à taper pour les affiner.|{shown} sur {n} résultats. Continuez à taper pour les affiner.
|
||||
Recent Commands Commandes récentes
|
||||
No recent commands Aucune commande récente
|
||||
Type to search commands, tools, panels and effects Tapez pour rechercher des commandes, des outils, des panneaux et des effets
|
||||
Search commands Chercher des commandes
|
||||
Search Commands… Rechercher des commandes…
|
||||
Secondary Secondaire
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3595,6 +3595,8 @@
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {n} માંથી {shown} પરિણામ. તેમને સંકુચિત કરવા લખતા રહો.|{n} માંથી {shown} પરિણામો. તેમને સંકુચિત કરવા લખતા રહો.
|
||||
Recent Commands તાજેતરના આદેશો
|
||||
No recent commands કોઈ તાજેતરના આદેશો નથી
|
||||
Type to search commands, tools, panels and effects આદેશો, ટૂલ્સ, પેનલ્સ અને ઇફેક્ટ્સ શોધવા માટે લખો
|
||||
Recent તાજેતરના
|
||||
Search commands આદેશો શોધો
|
||||
Search images છબીઓ શોધો
|
||||
Searching… શોધી રહ્યા છીએ…
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 72 and column 5.
|
@@ -4929,6 +4929,7 @@ antiAlias Sharp शार्प
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {n} में से {shown} परिणाम। इन्हें सीमित करने के लिए लिखते रहें।|{n} में से {shown} परिणाम। इन्हें सीमित करने के लिए लिखते रहें।
|
||||
Recent Commands हाल के आदेश
|
||||
No recent commands कोई हाल का आदेश नहीं
|
||||
Type to search commands, tools, panels and effects आदेश, टूल, पैनल्स और इफ़ेक्ट्स खोजने के लिए टाइप करें
|
||||
Search commands आदेश खोजें
|
||||
Search Commands… कमांड खोजें…
|
||||
Search Fonts Folder खोज फ़ॉन्ट फ़ोल्डर
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4124,6 +4124,7 @@ mark-style Japanese Japán
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {n} találatból {shown} látható. Gépeljen tovább a szűkítéshez.
|
||||
Recent Commands Legutóbbi parancsok
|
||||
No recent commands Nincsenek legutóbbi parancsok
|
||||
Type to search commands, tools, panels and effects Gépeljen parancsok, eszközök, panelek és effektusok kereséséhez
|
||||
Search commands Parancsok keresése
|
||||
Search Commands… Parancsok keresése…
|
||||
Search Fonts Folder Keresés betűtípusmappában
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4249,6 +4249,7 @@ font-technology Variable Variabel
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} dari {n} hasil. Terus ketik untuk mempersempitnya.
|
||||
Recent Commands Perintah terbaru
|
||||
No recent commands Tidak ada perintah terbaru
|
||||
Type to search commands, tools, panels and effects Ketik untuk mencari perintah, alat, panel, dan efek
|
||||
Dashed Line Garis putus-putus
|
||||
Panel menu Menu panel
|
||||
Unembed… Lepaskan sematan…
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2550 and column 5.
|
@@ -3551,6 +3551,7 @@ digits Malayalam Malayalam
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} di {n} risultato. Continua a digitare per restringerli.|{shown} di {n} risultati. Continua a digitare per restringerli.
|
||||
Recent Commands Comandi recenti
|
||||
No recent commands Nessun comando recente
|
||||
Type to search commands, tools, panels and effects Digita per cercare comandi, strumenti, pannelli ed effetti
|
||||
Search commands Cerca comandi
|
||||
Search Commands… Cerca comandi…
|
||||
Secondary Secondario
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3436,6 +3436,7 @@ mark-style Japanese 日本式
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {n} 件中 {shown} 件。続けて入力すると絞り込めます。
|
||||
Recent Commands 最近使ったコマンド
|
||||
No recent commands 最近使ったコマンドはありません
|
||||
Type to search commands, tools, panels and effects 入力してコマンド、ツール、パネル、効果を検索
|
||||
Search commands コマンドを検索
|
||||
Secondary セカンダリ
|
||||
Select All Art on Layer レイヤー上のすべてのアートを選択
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -6320,6 +6320,7 @@ font-technology Variable ცვლადი
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {n} შედეგიდან {shown}. გააგრძელეთ აკრეფა მათ შესამცირებლად.
|
||||
Recent Commands ბოლოდროინდელი ბრძანებები
|
||||
No recent commands ბოლოდროინდელი ბრძანებები არ არის
|
||||
Type to search commands, tools, panels and effects აკრიფეთ ბრძანებების, ხელსაწყოების, პანელებისა და ეფექტების მოსაძებნად
|
||||
Dashed Line ტირეებიანი ხაზი
|
||||
Panel menu პანელის მენიუ
|
||||
Unembed… ჩაშენების მოხსნა…
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3425,6 +3425,7 @@ mark-style Japanese 일본식
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. 결과 {n}개 중 {shown}개. 계속 입력하여 범위를 좁히세요.
|
||||
Recent Commands 최근 명령
|
||||
No recent commands 최근 명령 없음
|
||||
Type to search commands, tools, panels and effects 입력하여 명령, 도구, 패널 및 효과 검색
|
||||
Search commands 명령 검색
|
||||
Secondary 보조
|
||||
Select All Art on Layer 레이어의 모든 아트웍 선택
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4906,6 +4906,7 @@ font-technology Variable Variabel
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} van {n} resultaat. Typ verder om ze te beperken.|{shown} van {n} resultaten. Typ verder om ze te beperken.
|
||||
Recent Commands Recente opdrachten
|
||||
No recent commands Geen recente opdrachten
|
||||
Type to search commands, tools, panels and effects Typ om opdrachten, gereedschappen, panelen en effecten te zoeken
|
||||
Dashed Line Streepjeslijn
|
||||
Panel menu Paneelmenu
|
||||
Unembed… Insluiten ongedaan maken…
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4457,6 +4457,7 @@ font-technology Variable Zmienne
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} z {n} wyniku. Pisz dalej, aby je zawęzić.|{shown} z {n} wyników. Pisz dalej, aby je zawęzić.|{shown} z {n} wyników. Pisz dalej, aby je zawęzić.
|
||||
Recent Commands Ostatnie polecenia
|
||||
No recent commands Brak ostatnich poleceń
|
||||
Type to search commands, tools, panels and effects Pisz, aby szukać poleceń, narzędzi, paneli i efektów
|
||||
Dashed Line Linia przerywana
|
||||
Panel menu Menu panelu
|
||||
Unembed… Wyodrębnij…
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -2953,6 +2953,7 @@ digits Malayalam Malaiala
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} de {n} resultado. Continue digitando para filtrá-los.|{shown} de {n} resultados. Continue digitando para filtrá-los.
|
||||
Recent Commands Comandos recentes
|
||||
No recent commands Nenhum comando recente
|
||||
Type to search commands, tools, panels and effects Digite para pesquisar comandos, ferramentas, painéis e efeitos
|
||||
Search commands Pesquisar comandos
|
||||
Secondary Secundária
|
||||
Section Symbol Símbolo de Seção
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3533,6 +3533,7 @@ digits Malayalam Малаялам
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} из {n} результата. Продолжайте вводить, чтобы сузить их.|{shown} из {n} результатов. Продолжайте вводить, чтобы сузить их.|{shown} из {n} результатов. Продолжайте вводить, чтобы сузить их.
|
||||
Recent Commands Недавние команды
|
||||
No recent commands Нет недавних команд
|
||||
Type to search commands, tools, panels and effects Начните вводить для поиска команд, инструментов, панелей и эффектов
|
||||
Search commands Поиск команд
|
||||
Search Commands… Поиск команд…
|
||||
Secondary Вторичный
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3408,6 +3408,7 @@ digits Malayalam Malayalam
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} av {n} resultat. Fortsätt skriva för att begränsa dem.|{shown} av {n} resultat. Fortsätt skriva för att begränsa dem.
|
||||
Recent Commands Senaste kommandon
|
||||
No recent commands Inga senaste kommandon
|
||||
Type to search commands, tools, panels and effects Skriv för att söka efter kommandon, verktyg, paneler och effekter
|
||||
Search commands Sök kommandon
|
||||
Search Commands… Sök kommandon…
|
||||
Secondary Sekundär
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -899,6 +899,21 @@ fn anti_aliasing_method_labels_are_in_complete_catalogs() {
|
||||
}
|
||||
}
|
||||
|
||||
/// Each row in the `search` context, which adds a language's words to a group of words with the same
|
||||
/// meaning for the command palette, names a group and adds single words of no other group. No
|
||||
/// catalog has to have these rows.
|
||||
#[test]
|
||||
fn search_rows_name_a_group_and_add_single_words() {
|
||||
let mut bad = Vec::new();
|
||||
for l in LANGUAGES.iter().filter(|l| !l.source.is_empty()) {
|
||||
let (entries, _) = parse_entries(l.source);
|
||||
for (_, src, tr) in entries.iter().filter(|(ctx, _, _)| ctx == crate::palette::words::CONTEXT) {
|
||||
bad.extend(crate::palette::words::row_problems(src, tr).into_iter().map(|p| format!("{}: {p}", l.code)));
|
||||
}
|
||||
}
|
||||
assert!(bad.is_empty(), "{bad:#?}");
|
||||
}
|
||||
|
||||
/// The Painted and Sketched graphic style library's name and its styles' names have a row in every
|
||||
/// bundled catalog.
|
||||
#[test]
|
||||
|
||||
@@ -3288,6 +3288,7 @@ digits Malayalam Malayalam
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {n} sonuçtan {shown} tanesi. Daraltmak için yazmaya devam edin.
|
||||
Recent Commands Son komutlar
|
||||
No recent commands Son komut yok
|
||||
Type to search commands, tools, panels and effects Komutları, araçları, panelleri ve efektleri aramak için yazın
|
||||
Search commands Komutları arayın
|
||||
Search Commands… Arama Komutları…
|
||||
Secondary İkincil
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3543,6 +3543,7 @@ digits Malayalam Малаялам
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} з {n} результату. Продовжуйте вводити, щоб звузити їх.|{shown} з {n} результатів. Продовжуйте вводити, щоб звузити їх.|{shown} з {n} результатів. Продовжуйте вводити, щоб звузити їх.
|
||||
Recent Commands Нещодавні команди
|
||||
No recent commands Немає нещодавніх команд
|
||||
Type to search commands, tools, panels and effects Почніть вводити для пошуку команд, інструментів, панелей та ефектів
|
||||
Search commands Пошук команд
|
||||
Search Commands… Пошук команд…
|
||||
Secondary Вторинний
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3889,6 +3889,7 @@ mark-style Japanese Kiểu Nhật
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} trên {n} kết quả. Tiếp tục gõ để thu hẹp.
|
||||
Recent Commands Lệnh gần đây
|
||||
No recent commands Không có lệnh gần đây
|
||||
Type to search commands, tools, panels and effects Nhập để tìm kiếm lệnh, công cụ, bảng và hiệu ứng
|
||||
Search commands Tìm kiếm lệnh
|
||||
Search Commands… Tìm kiếm lệnh…
|
||||
Search Fonts Folder Tìm kiếm thư mục phông chữ
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3370,6 +3370,7 @@ digits Malayalam 马拉雅拉姆数字
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. 共 {n} 个结果,显示 {shown} 个。继续输入以缩小范围。
|
||||
Recent Commands 最近使用的命令
|
||||
No recent commands 没有最近使用的命令
|
||||
Type to search commands, tools, panels and effects 输入以搜索命令、工具、面板和效果
|
||||
Search commands 搜索命令
|
||||
Search Commands… 搜索命令…
|
||||
Secondary 次要
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4754,6 +4754,7 @@ digits Malayalam 馬來亞拉姆數字
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. 共 {n} 個結果,顯示 {shown} 個。繼續輸入以縮小範圍。
|
||||
Recent Commands 最近使用的指令
|
||||
No recent commands 沒有最近使用的指令
|
||||
Type to search commands, tools, panels and effects 輸入以搜尋指令、工具、面板與效果
|
||||
Search commands 搜尋指令
|
||||
Search Commands… 搜尋指令…
|
||||
Secondary 次要
|
||||
|
||||
|
Can't render this file because it is too large.
|
+763
-53
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,125 @@
|
||||
//! Words that mean the same thing when searching the command palette: VectorCraft's own groups,
|
||||
//! written for this table. A query word in a group also finds results whose label or menu path
|
||||
//! holds another word of its group ([`super::search`]).
|
||||
//!
|
||||
//! A word that is the whole label of a command stays out of a group whose other words name a
|
||||
//! different command: Merge is the label of Pathfinder and Live Paint commands that are not Unite,
|
||||
//! and Mirror is the label of a repeat that is not Reflect…, so these are in no group. Insert is left
|
||||
//! out too, since it starts the labels of type commands that are not Place…. A word that only starts
|
||||
//! or ends other labels can be in a group, and a search for another word of its group also lists
|
||||
//! those labels: "unite" lists Combine Slices after Unite, and "delete" lists Clear Guides. Plural and
|
||||
//! verb forms that the search's English stem forms already join (round and rounded) are not groups.
|
||||
//!
|
||||
//! A catalog may add a group's words in its language with a row in the `search` context: the group's
|
||||
//! English words joined by ", ", then that language's words joined by ", ". The words join the group
|
||||
//! while that language is the UI language. No catalog has to have these rows. The search splits
|
||||
//! labels into words only at spaces and punctuation, so in a language written without spaces a row's
|
||||
//! word finds only a label that is that word alone.
|
||||
|
||||
/// The groups: lowercase single English words, at most `MAX_WORDS` in a group and `MAX_GROUPS`
|
||||
/// groups, no word longer than [`MAX_CHARS`] characters and no word in two groups.
|
||||
pub(crate) const GROUPS: &[&[&str]] = &[
|
||||
&["remove", "delete", "erase", "clear"],
|
||||
&["background", "bg"],
|
||||
&["image", "picture", "photo", "img", "bitmap"],
|
||||
&["text", "type"],
|
||||
&["reflect", "flip"],
|
||||
&["unite", "combine"],
|
||||
&["trace", "vectorize"],
|
||||
&["color", "colour"],
|
||||
&["gray", "grey"],
|
||||
&["grayscale", "greyscale"],
|
||||
&["center", "centre"],
|
||||
&["duplicate", "clone"],
|
||||
&["zoom", "magnify"],
|
||||
&["rotate", "turn", "spin"],
|
||||
&["scale", "resize"],
|
||||
&["opacity", "transparency"],
|
||||
&["font", "typeface"],
|
||||
&["preferences", "settings", "prefs"],
|
||||
&["artboard", "canvas"],
|
||||
&["swatch", "palette"],
|
||||
&["eyedropper", "dropper"],
|
||||
];
|
||||
|
||||
/// The most groups [`GROUPS`] may hold.
|
||||
#[cfg(test)]
|
||||
const MAX_GROUPS: usize = 60;
|
||||
/// The most words a group may hold.
|
||||
#[cfg(test)]
|
||||
const MAX_WORDS: usize = 6;
|
||||
/// The most characters a word may have.
|
||||
pub(crate) const MAX_CHARS: usize = 20;
|
||||
|
||||
/// The context of a catalog row that adds a group's words in its language.
|
||||
pub(crate) const CONTEXT: &str = "search";
|
||||
|
||||
/// The source text of group `group`'s row in a catalog: its words joined by ", ".
|
||||
pub(crate) fn row_key(group: &[&str]) -> String {
|
||||
group.join(", ")
|
||||
}
|
||||
|
||||
/// The words of a catalog row's translation `text`, each trimmed and lowercased with its runs of
|
||||
/// whitespace made one space, and whether each is a single word of at most [`MAX_CHARS`]
|
||||
/// characters that the search can look up.
|
||||
pub(crate) fn row_words(text: &str) -> impl Iterator<Item = (String, bool)> + '_ {
|
||||
text.split(',').map(|w| {
|
||||
let w = super::search::normalize(w);
|
||||
let single = !w.is_empty() && w.chars().count() <= MAX_CHARS && super::search::is_one_word(&w);
|
||||
(w, single)
|
||||
})
|
||||
}
|
||||
|
||||
/// What is wrong with a catalog's `search` row for `source` translated as `text`: a source that is
|
||||
/// no group's [`row_key`], an empty word, a word that is not a single word, or a word that is a word
|
||||
/// of another group.
|
||||
#[cfg(test)]
|
||||
pub(crate) fn row_problems(source: &str, text: &str) -> Vec<String> {
|
||||
let Some(group) = GROUPS.iter().position(|g| row_key(g) == source) else {
|
||||
return vec![format!("{source:?} is not a group")];
|
||||
};
|
||||
let mut problems = vec![];
|
||||
for (w, single) in row_words(text) {
|
||||
if w.is_empty() {
|
||||
problems.push(format!("{source:?}: an empty word"));
|
||||
} else if !single {
|
||||
problems.push(format!("{source:?}: {w:?} is not a single word"));
|
||||
} else if let Some(other) = GROUPS.iter().enumerate().find(|&(i, g)| i != group && g.contains(&w.as_str())) {
|
||||
problems.push(format!("{source:?}: {w:?} is a word of {:?}", row_key(other.1)));
|
||||
}
|
||||
}
|
||||
problems
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
/// The table keeps to its limits: groups, words per group, characters per word, and each word
|
||||
/// lowercase, a single word and in one group only.
|
||||
#[test]
|
||||
fn the_groups_keep_to_their_limits() {
|
||||
assert!(GROUPS.len() <= MAX_GROUPS, "{} groups", GROUPS.len());
|
||||
let mut seen = std::collections::HashSet::new();
|
||||
for group in GROUPS {
|
||||
assert!((2..=MAX_WORDS).contains(&group.len()), "{group:?}");
|
||||
for &w in *group {
|
||||
assert!(w.chars().count() <= MAX_CHARS, "{w}");
|
||||
assert_eq!(super::super::search::normalize(w), w, "{w} is lowercase");
|
||||
assert!(super::super::search::is_one_word(w), "{w} is one word");
|
||||
assert!(seen.insert(w), "{w} is in two groups");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// A catalog row passes when it names a group and adds single words of no other group, and fails
|
||||
/// otherwise.
|
||||
#[test]
|
||||
fn catalog_rows_are_checked() {
|
||||
assert!(row_problems("remove, delete, erase, clear", "entfernen, löschen").is_empty());
|
||||
assert_eq!(row_problems("remove, delete", "entfernen").len(), 1, "not a group's words");
|
||||
assert_eq!(row_problems("remove, delete, erase, clear", "entfernen,, löschen").len(), 1, "an empty word");
|
||||
assert_eq!(row_problems("remove, delete, erase, clear", "ganz entfernen").len(), 1, "two words");
|
||||
assert_eq!(row_problems("remove, delete, erase, clear", "Text").len(), 1, "a word of another group once lowercased");
|
||||
}
|
||||
}
|
||||
@@ -1017,14 +1017,10 @@ fn names_a_required_field(params: &str) -> bool {
|
||||
!(f.is_empty() || f.starts_with('…') || f[end..].starts_with('=') || f[..end].split('|').all(|n| n.trim().ends_with('?')))
|
||||
};
|
||||
let Some(rest) = params.strip_prefix('{') else { return false };
|
||||
let (mut depth, mut quoted, mut start) = (0usize, false, 0);
|
||||
for (i, ch) in rest.char_indices() {
|
||||
let mut start = 0;
|
||||
for (i, ch, depth) in outside_quotes(rest) {
|
||||
match ch {
|
||||
'"' => quoted = !quoted,
|
||||
_ if quoted => {}
|
||||
'{' | '[' | '(' => depth += 1,
|
||||
'}' if depth == 0 => return required(&rest[start..i]),
|
||||
'}' | ']' | ')' => depth = depth.saturating_sub(1),
|
||||
',' if depth == 0 => {
|
||||
if required(&rest[start..i]) {
|
||||
return true;
|
||||
@@ -1037,6 +1033,29 @@ fn names_a_required_field(params: &str) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
/// Each character of `text` that is not a double quote or inside a pair of them, with its byte
|
||||
/// offset and the number of `{`, `[` and `(` groups open before it. A closing `}`, `]` or `)` comes
|
||||
/// with a count that includes the group it closes, and one with no group open counts none.
|
||||
pub(crate) fn outside_quotes(text: &str) -> impl Iterator<Item = (usize, char, usize)> + '_ {
|
||||
let (mut depth, mut quoted) = (0usize, false);
|
||||
text.char_indices().filter_map(move |(i, ch)| {
|
||||
if ch == '"' {
|
||||
quoted = !quoted;
|
||||
return None;
|
||||
}
|
||||
if quoted {
|
||||
return None;
|
||||
}
|
||||
let before = depth;
|
||||
match ch {
|
||||
'{' | '[' | '(' => depth += 1,
|
||||
'}' | ']' | ')' => depth = depth.saturating_sub(1),
|
||||
_ => {}
|
||||
}
|
||||
Some((i, ch, before))
|
||||
})
|
||||
}
|
||||
|
||||
pub fn entry(key: &str) -> Option<Entry> {
|
||||
entries().iter().find(|e| e.key == key).cloned()
|
||||
}
|
||||
|
||||
@@ -1893,6 +1893,8 @@ fn the_command_search_that_opens_while_enter_is_down_waits_for_a_new_press() {
|
||||
let held = HeldKey::new(Key::Enter, Modifiers::NONE);
|
||||
app.select_tool("rectangle");
|
||||
held.press(&mut app);
|
||||
// The empty search lists the recent picks, so the last pick is the highlighted result.
|
||||
app.ui.recent_commands = vec!["paint.swap".into()];
|
||||
app.ui.palette_open = true;
|
||||
for repeat in 0..4 {
|
||||
held.press(&mut app);
|
||||
|
||||
@@ -711,6 +711,10 @@ pub struct UiState {
|
||||
/// Help › Search Commands' Recent Commands list: the ids of the last picks, most recent first.
|
||||
#[serde(default)]
|
||||
pub recent_commands: Vec<String>,
|
||||
/// How many times each command was picked in Help › Search Commands, which ranks the commands
|
||||
/// picked most often first among results that match as well.
|
||||
#[serde(default, deserialize_with = "crate::palette::deserialize_command_uses")]
|
||||
pub command_uses: crate::palette::CommandUses,
|
||||
/// Families starred in the font menus (the ★ filter shows only these).
|
||||
#[serde(default)]
|
||||
pub favorite_fonts: Vec<String>,
|
||||
@@ -1269,6 +1273,7 @@ impl Default for UiState {
|
||||
recent_files: vec![],
|
||||
recent_fonts: vec![],
|
||||
recent_commands: vec![],
|
||||
command_uses: Default::default(),
|
||||
favorite_fonts: vec![],
|
||||
engine_prefs: Value::Null,
|
||||
color_guide: Default::default(),
|
||||
|
||||
@@ -1101,8 +1101,9 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
|
||||
- The Free Transform widget's Constrain works in Free Distort as well as in Free Transform ([the help page](https://helpx.adobe.com/illustrator/using/tool-techniques/free-transform-tool.html)). With Constrain on, or Shift held, a corner dragged in Free Distort moves only along the line through the opposite corner, in the box's own proportions, and the other three corners stay in place; on a turned box the line runs through the box's own corners. The line is VectorCraft's own rule. Cmd/Ctrl+Alt+Shift on a corner still drags in Perspective Distort, where Constrain stays unavailable (tools `xform::free::tests::free_distort_corner_keeps_to_its_diagonal_with_shift_or_constrain`, `shift_pressed_during_a_free_distort_drag_constrains_it`, `a_turned_box_is_constrained_along_its_own_diagonal`, `along_diagonal_of_a_degenerate_box`; engine `xform::free_transform_constrained_distort_keeps_the_corner_on_its_diagonal`; ui-egui `free_transform::tests::the_widget_sets_the_mode_and_a_corner_drag_then_distorts`).
|
||||
- With Smart Guides › Transform Tools on, a Free Transform shear (Cmd/Ctrl on a side handle) shows its angle next to the pointer, as the Shear tool does, and a handle drag that turns from a scale into a shear and back shows only the current operation's value ([the help page](https://helpx.adobe.com/illustrator/desktop/measure-and-align/grids-and-guides/smart-guides-options.html)). The angle's sign and its one decimal place are VectorCraft's own rule, the same as the Shear tool's label (tools `xform::free::tests::shear_drag_shows_its_angle_with_transform_tools_guides`, `a_handle_drag_that_changes_operation_relabels_it`).
|
||||
- Native macOS menu bar, vector tool cursors, a command palette (Help › Search Commands…), middle-button panning with any tool. Native menus explicitly end tracking on command selection, outside window presses and Escape; menu updates wait until tracking ends, and a dismissing press never starts a canvas gesture (M14.8).
|
||||
- A Recent Commands button beside the Help › Search Commands field lists the last eight commands, tools, panels and effects picked from the palette, most recent first, with a command picked again moved to the top. A pick is recorded when it runs or opens a dialog, even if the dialog is then canceled; a pick that is refused because its menu item is dimmed, its tool can't be chosen or its panel can't be shown is not recorded, unless it opened a dialog. Choosing a row closes the palette and runs it as a pick of the same result does; with no picks yet the list shows a dimmed No recent commands row, and a command that is not available now, such as a filter of a plug-in that is not loaded, is left out until it comes back. The ids are saved with the UI state. While the list is open, Up and Down move through its rows, wrapping at the ends, and Escape closes the list before the palette. This is VectorCraft's own addition and does not raise a score (#6376; `palette` tests `recent_commands_*`, `a_recent_command_runs_what_its_pick_runs`, `the_keys_wrap_within_recent_commands`, `escape_closes_recent_commands_before_the_palette`).
|
||||
- With an empty search, or one of spaces only, the Help › Search Commands field lists the picks of the Recent Commands list (at most eight, leaving out a filter of a plug-in that is not loaded) under a Recent heading, most recent first, with the first highlighted and no result count, so opening the palette and pressing Enter picks the last pick again; a pick that is dimmed now shows why in the status line, as from a search, and keeps its place in the list. With no picks yet it lists no results and shows a dimmed Type to search commands, tools, panels and effects line. A pick of Search Commands… itself is not recorded. The palette opens with its first result highlighted and its list scrolled to the top. This is VectorCraft's own behavior (`palette` tests `an_empty_search_lists_the_recent_picks_most_recent_first`, `an_empty_search_without_picks_says_what_to_type`, `enter_on_an_empty_search_runs_the_last_pick_again`, `the_palette_opens_again_with_its_first_row_highlighted`, `the_palette_toggle_is_not_a_recent_pick`, `a_click_on_a_recent_pick_runs_it_and_moves_it_first`, `a_pick_says_whether_it_ran_opened_a_dialog_or_was_refused`, `a_refused_pick_is_not_recorded`, `a_pick_that_opens_a_dialog_is_recorded_even_when_canceled`).
|
||||
- Help › Search Commands… is the first item of the Help menu in the window, with its shortcut and a separator after it; in the native macOS menu bar it is the first item below the system's search field. This is VectorCraft's own order and does not raise a score (`menus::tests::help_starts_with_search_commands`, `tests::nativemenu::the_mac_help_menu_starts_with_search_commands`).
|
||||
- A Recent Commands button beside the Help › Search Commands field lists the last five commands, tools, panels and effects picked from the palette, most recent first, with a command picked again moved to the top. Choosing a row closes the palette and runs it as a pick of the same result does; with no picks yet the list shows a dimmed No recent commands row, and a command that is not available now, such as a filter of a plug-in that is not loaded, is left out until it comes back. The ids are saved with the UI state. While the list is open, Up and Down move through its rows, wrapping at the ends, and Escape closes the list before the palette. This is VectorCraft's own addition and does not raise a score (#6376; `palette` tests `recent_commands_*`, `a_recent_command_runs_what_its_pick_runs`, `the_keys_wrap_within_recent_commands`, `escape_closes_recent_commands_before_the_palette`).
|
||||
- The app bar's search control is a field showing a magnifier, "Search commands" and the Help › Search Commands… shortcut. The field shows no shortcut when the shortcut is cleared or too long to fit beside the text; the tooltip and the screen-reader name still give it. A click on the field, or Enter or Space while it has the keyboard focus, toggles the command palette as the shortcut does, and the palette's popup holds the text field. While the field has the focus, the app's existing rule for a focused control keeps the app's own keys off, so Enter does not open Move and Tab moves the focus on. While a dialog is open the field and the icon are drawn disabled and do nothing, as the shortcut does. Screen readers name the field and the icon Search commands, with the shortcut. As the bar narrows, the community button goes first, then Explore tutorials, then the field becomes the magnifier icon, then the workspace switcher narrows to 64 points, then the icon goes; Safe Mode's label keeps its room first. The field is wider than the icon, so the community button and Explore tutorials go at wider bars than they did beside the icon. This is VectorCraft's own addition and does not raise a score (`chrome::tests`: `the_app_bar_gives_up_its_right_hand_controls_in_order`, `a_wide_app_bar_shows_a_search_field_with_the_palette_shortcut`, `the_search_field_follows_the_palettes_shortcut`, `a_long_shortcut_leaves_the_search_hint_readable`, `a_click_on_the_search_field_opens_the_palette`, `the_search_icon_has_the_fields_name_and_both_are_disabled_under_a_dialog`, `the_keyboard_opens_the_palette_from_the_search_field`, `a_narrowing_app_bar_turns_the_search_field_into_the_icon`).
|
||||
- The Learn panel (Window › Learn, or Explore tutorials beside the search field on the app bar) has a For you tab with a Get started section and a Quick skill guide card, and a Skills tab that lists VectorCraft's own skills with their progress rings and counts of tutorials finished; a skill lists its tutorials, a tutorial shows its numbered steps, and Back goes up a level; `learn.list`, `learn.tab {tab}`, `learn.skill {skill}`, `learn.show {tutorial}` and `learn.back` script it, and the tab buttons, the rows and Back run them ([the help page](https://helpx.adobe.com/illustrator/desktop/get-started/learn-the-basics/learn-skills-quick-skill-guide.html); `panels::learn::tests`).
|
||||
- A tool's name in a Learn tutorial step is a blue link that shows where the tool is without choosing it (`learn.locateTool {tool}`): its toolbar button is marked, a collapsed group's flyout opens with the tool's row marked, a torn-off strip comes to the front, and a tool no shown toolbar holds is marked in the All Tools drawer. The mark, its 3 seconds and the hidden-toolbar cases are VectorCraft's own rules ([the help page](https://helpx.adobe.com/illustrator/desktop/get-started/learn-the-basics/learn-skills-quick-skill-guide.html); `panels::learn::tests`, the `a_learn_link_*` tests in `toolbar::tests`).
|
||||
@@ -1461,6 +1462,11 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
|
||||
A modal window that opens without a press in the window (a dialog opened from the macOS menu bar or by an automation command, the About window, a file dialog, the update prompt, or the progress window of a plug-in, trace or open run) closes the Command Palette, a tool group's flyout, the All Tools drawer and any open menu or popup in the pass it opens. While such a window is open, the palette stays closed, so opening it from the macOS menu bar or by an automation command does not take the keyboard from the window; it opens again once the window closes (`palette` tests `a_dialog_opened_from_the_system_menu_closes_the_palette`, `the_about_window_closes_the_palette`, `a_progress_window_closes_the_palette`, `the_palette_opened_over_a_dialog_closes`, `a_click_on_the_menu_bar_closes_the_palette_before_a_dialog_opens`, `a_dialog_opened_without_a_press_closes_a_flyout`, `a_dialog_opened_without_a_press_closes_the_tools_drawer`, `a_dialog_opened_without_a_press_closes_a_menu`, `the_palette_opened_as_a_dialog_closes_stays_open_until_the_next_dialog`).
|
||||
The Command Palette ranks its results by how well they match. A query that is a result's id lists that result first (`view.goto1` lists Saved View 1 above Saved View 10); then come results whose name is the query, results whose name without its menu path starts with it, and results whose initials it is ("ea" finds Export As…). Within each of those, a result where every word of the query is a whole word of its name ranks above one where a word only starts a word of the name, then one where it is a word of the menu that holds it, then of its id, then text inside a word, so a query that is a menu's title ("object") lists results named with that word above the items of that menu. A tool ranks above a menu command, panel, effect or filter plug-in that matches as well, so "rect" lists the Rectangle Tool above Effect › Convert to Shape › Rectangle…, and of two results of the same kind the shorter name comes first. Words of the menu bar item that runs a result also find it, the item's own label included ("exit" finds Quit VectorCraft, which File › Exit runs); with the native macOS menu bar, the items that bar moves into its application menu are found under it (Preferences… under Settings). Every result the earlier search found is still found, and the highlight stays on its result when a plug-in is installed, a shortcut changes or the language changes while the palette is open (`palette::search` tests `a_better_word_grade_ranks_first`, `a_better_whole_query_tier_ranks_first`, `kind_and_length_never_lift_a_worse_grade`, `a_menu_title_does_not_lift_its_items`, `common_queries_list_the_command_near_the_top`, `every_result_is_found_first_by_its_name_and_its_id`, `every_result_found_before_is_still_found_and_shown`, `results_know_their_place_in_the_menu_bar`, `native_homes_follow_the_native_application_menu`; `palette` test `the_highlight_stays_on_its_result_when_the_results_change`).
|
||||
A Command Palette query word in an English plural or verb form finds a result whose English name or menu path holds the base word: "rounded corners" lists Effect › Stylize › Round Corners… first, and "scaling" finds Object › Transform › Scale…. The search drops `'s`; `es` after `s`, `x`, `z`, `ch` or `sh` (also trying the word with only its `s` dropped, so "rasterizes" finds Rasterize…); a final `s` in words of more than 3 letters, except after `ss`, `us` or `is`; `ing` in words of more than 5 letters and `ed` in words of more than 4. After `ing` or `ed`, a doubled `b`, `d`, `g`, `m`, `n`, `p`, `r` or `t` is tried both single and doubled, the single letter only when at least 3 letters are left ("cutting" meets Cut, "added" meets Add); otherwise the word is also tried with an `e` ("scaling" meets Scale…). It turns `ies` into `y` or `ie` in words of more than 5 letters and `sses` into `ss`, and leaves `series` and `species` as they are. Among results that the whole query matches the same way (as an id, as a label, at the start of a label, as initials, or none of these), a result whose name holds the base word of a query word ranks below one that holds the query word whole and above one where the query word only starts a word of the name, so "scale zz" lists a name with "Zz Scaling" above one with "Zz Scalers". "scale" alone still lists "Scalers" above "Scaling", because "Scalers" starts with the query. A partly typed word that is not itself a word of any result ("scal") does not meet a base word. Names shown in other languages and ids are not changed this way, and every result found before is still found (`palette::search` tests `plurals_and_verb_forms_meet_their_base_word`, `a_plural_or_verb_form_finds_the_result`, `a_better_word_grade_ranks_first`, `a_partly_typed_word_does_not_lift_a_verb_form`, `a_whole_query_tier_comes_before_a_stem_form`, `results_matched_without_a_stem_keep_their_order`).
|
||||
A Command Palette query word with a typo still finds the result: "gruop" lists Object › Group first, and "eyedroper", "rectange" and "elipse" list the same first results as the words spelled right, the Eyedropper, Rectangle and Ellipse tools among them. When a query word of 4 or more letters is not a word, a base word or the start of a word of any result's name, menu path or id, the search compares it with the words of result names and menu paths, and a word 1 edit away (2 for a query word of 8 or more letters) matches; a letter added, left out or changed, or two letters next to each other swapped, is one edit. A query word meets at most the 32 nearest such words. Results matched through a typo come after every result the query matches without one, and among them the query is read with the misspelled word replaced by the word it meets, so they come in the order the word spelled right gives; then a result whose label holds the word comes before one whose menu path holds it. Ids, and query words and result words with Chinese, Japanese or Korean letters, are not compared this way, and results without typos keep their order (`palette::search` tests `edits_are_counted_up_to_a_bound`, `a_word_with_a_typo_finds_the_result`, `a_typo_meets_at_most_32_words`, `misspelled_words_find_the_command`).
|
||||
A Command Palette query word also finds a result whose name or menu path holds a word with the same meaning: "remove bg" lists Remove Background… first, "outline text" lists Type › Create Outlines first, and "flip", "combine", "vectorize" and "colour" list Reflect…, Unite, an Image Trace command and the Color panel among the first 3 results. The words come from VectorCraft's own table of 21 groups of English words (`palette/words.rs`, at most 60 groups of at most 6 words); a word that is the whole label of another command, such as Merge or Mirror, is in no group, and neither is Insert. A word or its English base word that is in a group meets the other words of its group in labels and menu paths, and their base words, but not ids or word starts. A result whose label holds the word itself ranks above one whose label holds a word with the same meaning, which ranks above one whose menu path holds the word, so "type" now lists Scale Text Attributes above Type › Orientation › Vertical. A catalog may add a group's words in its language with a row in the `search` context (the group's English words joined by ", ", then that language's words), used while that language is the UI language; no catalog has to have these rows (`palette::search` tests `a_word_with_the_same_meaning_finds_the_result`, `a_catalog_row_adds_words_to_a_group`, `words_with_the_same_meaning_find_the_command`; `palette::words` tests; `i18n` test `search_rows_name_a_group_and_add_single_words`).
|
||||
The Command Palette ranks the commands listed in Recent Commands first among the results that match a query as well as they do, the most recent first, and below every result that matches it better: after a pick of Effect › Convert to Shape › Rectangle…, "rect" lists it above the Rectangle Tool, so Enter runs it again. A recent pick ranks after the whole-query match, the word grades and the matches through a typo, a description or a word with the same meaning, and before the kind of result and the name's length. The ranking uses the list Recent Commands shows. This is VectorCraft's own behavior (`palette::search` test `a_recent_pick_ranks_first_within_its_grades`; `palette` tests `a_recent_pick_ranks_first_among_results_that_match_as_well`, `the_kept_ranking_follows_the_recent_picks`).
|
||||
The Command Palette also counts how many times each command is picked and ranks the commands picked most often first among the results that match a query as well as they do, also after they leave Recent Commands, and below every result that matches it better. A pick is counted only when Recent Commands records it, so a refused pick and a pick of Search Commands… are not counted. Counts are compared in grades that double: grade 1 starts at 1 pick, grade 2 at 3, grade 3 at 7, and so on up to grade 9, and a command picked once ranks above the commands never picked. The grade ranks after the word grades and the typo, description and same-meaning matches, and before the place among the recent picks. The count is kept for at most 200 commands: a new command then removes, of the half of the commands picked longest ago, the one with the fewest picks, of those the one picked longest ago. When a count reaches 1,000, every count is halved and commands left at 0 are dropped. The counts are saved with the other interface settings (`command_uses` in `ui.json`); a count above 999 loads as 999 and an unreadable entry is dropped. The web build keeps them for the session. This is VectorCraft's own behavior (`palette::search` test `a_command_picked_often_ranks_first_within_its_grades`; `palette` tests `a_command_picked_often_ranks_first_among_results_that_match_as_well`, `the_kept_ranking_follows_the_pick_counts`, `a_count_does_not_pass_a_better_match`, `pick_counts_rank_in_grades_that_double`, `the_201st_command_removes_the_least_used_and_keeps_itself`, `new_commands_build_up_counts_when_every_counted_one_has_more_picks`, `counts_are_halved_at_one_thousand`, `saved_pick_counts_load_what_is_readable`, `only_a_pick_recorded_in_recent_commands_is_counted`).
|
||||
A Command Palette query word also finds a command by what the command's description says: "transparent background" lists Remove Background… among the first 3 results, and "png" lists it after every result with "png" in its name or menu path. The description is the command's params text (an engine or plug-in command's, a UI command's, or an effect's) without each `{…}` group that is not inside a `{`, `[` or `(` group, without each such `[…]` or `(…)` group just after a `→`, and without the `→` before a removed group, cut to its first 300 characters at the end of a word. The words of a schema ("corners" for Remove Background…) and of a result written as a group do not find the command; a result written as words after a `→` stays in the description. Words of 2 characters or fewer, words with no letter, and "the", "and", "ids", "true", "false" and "null" are left out. A query word that is a word of a description, shares an English base word with one, starts one or has the same meaning as one finds the result, and such a result ranks below every result that the query matches in its name, menu path or id, as text inside a word or through a typo. Descriptions are English only, and a typo does not match them. Tools, panels and filter plug-ins have no description (`palette::search` tests `a_description_leaves_out_the_schema_and_the_result`, `a_word_of_the_description_finds_the_result`, `a_description_match_ranks_below_a_typo`, `words_of_a_description_find_the_command`).
|
||||
`object.setProps` with `visible: false` or `locked: true` deselects every selected object that is then hidden or locked, the key object included, as the eye and lock columns do.
|
||||
Ctrl/Cmd+Alt-clicking an eye switches the other layers to Outline and the row's layer to Preview, or switches all layers back to Preview when the others are in Outline (`layer.outlineOthers`, `layer.previewAll`).
|
||||
Ctrl/Cmd+Alt-clicking New Layer adds a layer directly below the current layer, at its level (`layer.new {below: true}`), and Ctrl/Cmd+Alt-clicking New Sublayer adds a sublayer under the contents of the layer it goes into (`layer.newSublayer {bottom: true}`), each in one undo step. The reference app's [Default keyboard shortcuts](https://web.archive.org/web/20260726060015/https://helpx.adobe.com/illustrator/using/default-keyboard-shortcuts.html) page lists these clicks for placing a layer below the selected layer and a new sublayer at the bottom of the layer list.
|
||||
|
||||
Reference in new issue
Block a user