WerWolv / ImHex

🔍 A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM.
https://imhex.werwolv.net
GNU General Public License v2.0
39.55k stars 1.74k forks source link

[Feature] [PL] Make [hidden] a conditional attribute #1711

Open Kein opened 1 month ago

Kein commented 1 month ago

What feature would you like to see?

[[hidden("true/false")]]

How will this feature be useful to you and others?

This will allow to conditionally hide some variables/pattern values depending on the parsing result

Request Type

Additional context?

No response

paxcut commented 1 month ago

Why only for [[hidden]]? Anyway, this has been asked already in a pattern language issue and partially addressed there.