Skip to content

[Feature] stop command #228

@kbock-dev

Description

@kbock-dev

What feature would you like to see?

Stop at any point in an ImHex pattern.

How will this feature be useful to you and others?

During development of a pattern I'd like to stop the pattern from executing further and keep the currently created pattern data. It might also useful for file types that will change in the future and unknown data is encountered then.

Request Type

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

Additional context?

I've mostly completed an implementation but I'm not sure if it would be merged since it can usually be achieved by something like

$ = std::mem::size();

A stop control flow command would make the intention clearer in the pattern and works everywhere (i.e. functions), but might clutter tests due to the nature of the command as each case needs it's own test and one can usually use a workaround so missing this feature is not that important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions