It doesn’t seem to be supported yet ![]()
I tried looking for it in a very crude way:
console.info(findKeysContaining(penpot, "token"));
function findKeysContaining(obj: any, keyword: string, depth: number = 5, prefix: string = "penpot") {
if (!obj || depth < 0 || typeof obj !== "object") return [];
let foundKeys: string[] = [];
for (const key of Object.keys(obj)) {
const fullPath = `${prefix}.${key}`;
if (key.toLowerCase().includes(keyword.toLowerCase())) {
foundKeys.push(fullPath);
}
try {
foundKeys.push(...findKeysContaining(obj[key], keyword, depth - 1, fullPath));
} catch (e) {
console.warn(`Could not access: ${fullPath}`);
}
}
return foundKeys;
}