-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: simple decorators Applies custom css styles on data cells by specifying a decorator style and its offset range. * refactor: move parseQuery to its own util file * feat: compareSelected command Opens two selected files into hex diff view. Works with any file extension by changing the file scheme. * synchronizes hex documents creation for diffing * feat: basic Myers diff Introduces the O(d^2) space version and its decorators. With this diff algorithm, the diffs should be more insightful compared to using a simple per-offset comparison. * Adds alignment in original file Inserted bytes are show in the original file by a stripe data cell. * fix: negative k-index and wrong alignment * optimize: use binary search for page decorators Finds the lower and upper bound of the decorators that fit in the page, instead of using .filter(). In addition to that, it also removes the need to re-initialize the decorator's ranges. * Makes diff read-only Done to simplify diff, because recomputing diffs after a file change is too complex to tackle at the moment. * refactor: use diff package for myers diff Although still O(d^2), it improves memory usage in other ways, provides some optimization for edge cases and has some useful built-in options to exit on large diffs. * fix: diff failing to open in web * perf: moved myers diff into a web-only worker * adds node js worker * adds worker transferable objects * Use binary search in data row content * removes web-only code * fix: decorator's binary search gives wrong index * Adds lazy init & better diff lifecycle
- Loading branch information
Showing
24 changed files
with
809 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.