-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
52 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Objective | ||
|
||
- Describe the objective or issue this PR addresses. | ||
- If you're fixing a specific issue, say "Fixes #X". | ||
|
||
## Solution | ||
|
||
- Describe the solution used to achieve the objective above. | ||
|
||
--- | ||
|
||
## Changelog | ||
|
||
> This section is optional. If this was a trivial fix, or has no externally-visible impact, you can delete this section. | ||
- What changed as a result of this PR? | ||
- If applicable, organize changes under "Added", "Changed", or "Fixed" sub-headings | ||
- Stick to one or two sentences. If more detail is needed for a particular change, consider adding it to the "Solution" section | ||
- If you can't summarize the work, your change may be unreasonably large / unrelated. Consider splitting your PR to make it easier to review and merge! | ||
|
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
pub mod state; | ||
pub mod undo; | ||
|
||
use std::{ | ||
fs::{File, OpenOptions}, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
use std::io::Result; | ||
use std::path::PathBuf; | ||
|
||
use either::Either; | ||
use helix_core::history::History; | ||
|
||
pub struct UndoFile<'a> { | ||
path: PathBuf, | ||
history: Either<History, &'a History>, | ||
} | ||
|
||
impl<'a> UndoFile<'a> { | ||
fn serialize(&self) -> Result<()> { | ||
todo!() | ||
} | ||
|
||
fn deserialize() -> Result<Self> { | ||
todo!() | ||
} | ||
|
||
fn serialize_transaction(&self) -> Result<()> { | ||
todo!() | ||
} | ||
|
||
fn deserialize_transaction(&self) -> Result<()> { | ||
todo!() | ||
} | ||
} |