Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kirawi committed Jan 20, 2023
1 parent 060c4d6 commit 47a3ea2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 45 deletions.
20 changes: 0 additions & 20 deletions .github/PULL_REQUEST_TEMPLATE/enhancement.md

This file was deleted.

Empty file.
8 changes: 0 additions & 8 deletions helix-view/src/session/state.rs

This file was deleted.

35 changes: 18 additions & 17 deletions helix-view/src/session/undo.rs
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
use std::io::Result;
use std::path::PathBuf;

use either::Either;
use helix_core::history::History;
use helix_core::Transaction;

pub struct UndoFile<'a> {
path: PathBuf,
history: Either<History, &'a History>,
pub fn serialize(session: &mut Session, editor: &Editor) -> Result<()> {
todo!()
}

impl<'a> UndoFile<'a> {
fn serialize(&self) -> Result<()> {
todo!()
}
pub fn deserialize(session: &Session, editor: &mut Editor) -> Result<()> {
todo!()
}

fn deserialize() -> Result<Self> {
todo!()
}
fn serialize_history(history: &History) -> Result<()> {
todo!()
}

fn serialize_transaction(&self) -> Result<()> {
todo!()
}
fn deserialize_history() -> Result<History> {
todo!()
}

fn serialize_transaction(transaction: &Transaction) -> Result<()> {
todo!()
}

fn deserialize_transaction(&self) -> Result<()> {
todo!()
}
fn deserialize_transaction() -> Result<Transaction> {
todo!()
}

0 comments on commit 47a3ea2

Please sign in to comment.