feat: Add keyboard shortcuts to jump to the prev/next differences in diff view (#2445)

Adds keyboard shortcuts (currently `n` and `N`) in the diffing plugin
view to jump to the next/prev difference in the list.

IMPORTANT NOTE: Depends on changes made in a library submodule. [This
PR](https://github.com/WerWolv/libwolv/pull/34) must be accepted first.

---------

Co-authored-by: Nik <werwolv98@gmail.com>
This commit is contained in:
Zackary Newman
2025-09-21 04:39:37 -04:00
committed by GitHub
parent fedbce6f9e
commit 3c167c3306
5 changed files with 121 additions and 7 deletions

View File

@@ -36,6 +36,8 @@ namespace hex::plugin::diffing {
std::function<std::optional<color_t>(u64, const u8*, size_t)> createCompareFunction(size_t otherIndex) const;
void analyze(prv::Provider *providerA, prv::Provider *providerB);
void registerMenuItems();
void reset();
private:
@@ -45,6 +47,9 @@ namespace hex::plugin::diffing {
std::atomic<bool> m_analyzed = false;
std::atomic<bool> m_analysisInterrupted = false;
ContentRegistry::Diffing::Algorithm *m_algorithm = nullptr;
u64 m_selectedAddress = 0;
prv::Provider *m_selectedProvider = nullptr;
};
}
}