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 request: Alignment pins #21

Open
radobot opened this issue Aug 9, 2024 · 0 comments
Open

Feature request: Alignment pins #21

radobot opened this issue Aug 9, 2024 · 0 comments

Comments

@radobot
Copy link

radobot commented Aug 9, 2024

When opening big files that have large holes it is sometimes difficult to force the algorithm to pair up the correct bytes.

For example, I have a modified file that has the same header (~1 kB) at the beginning, then some extra bytes (~100 kB) and then the rest of the file (~8 MB) is mostly unchanged.

It would be really nice if I could tell biodiff that eg. byte at file1+0x31b should be aligned with byte at file2+0x31b and at the same time byte at file1+0x2124 should be aligned with byte at file2+0x24924.

I imagine this could also be helpful when the files contain repeating or recursive structures that get paired with incorrect index.

The way this feature would work is it would essentially split the files at the pins into multiple independent sections that then get processed separately.

The user would manually align the files and then press a hotkey to pin together the offsets at the current cursor positions. The align/unalign command would only work inside the current section as delimited by pins and start/end of file. The pinned bytes would have their own color (eg. purple).

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

No branches or pull requests

1 participant