Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Ability to automatically load scripts into the pattern editor #1936

Open
1 task
fushihara opened this issue Oct 17, 2024 · 0 comments
Open
1 task

Comments

@fushihara
Copy link

What feature would you like to see?

It is a pain to specify loading of pattern editor definitions every time a file is opened.
https://docs.werwolv.net/pattern-language/core-language/preprocessor
Automatic loading with mimeType exists, but it is not user friendly because it requires mimeType to be set in the system.
I would like the ability to match by file name.

example

#pragma FILENAME *.any.bin

How will this feature be useful to you and others?

Improves the efficiency of parsing binary files that do not have a mimeType registered.
I used to parse 100 binary files with the same structure, and it was a pain to specify the pattern 100 times.
Moreover, I had to specify the pattern again when I reloaded the file.

Request Type

  • I can provide a PoC for this feature or am willing to work on it myself and submit a PR

Additional context?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant