mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
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:
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user