pub enum Surface {
CommitLog {
rows: Vec<LogRow>,
focus: Option<String>,
return_to: Option<JumpRecord>,
},
ChangedFiles {
sha: String,
files: PreparedFiles,
return_to: Option<JumpRecord>,
},
Diff {
hunks: PreparedDiff,
origin: Option<HunkOrigin>,
commit: Option<CommitFiles>,
sidebar_focus: bool,
return_to: Option<JumpRecord>,
},
}Variants§
CommitLog
Fields
ChangedFiles
Diff
A diff as a readonly buffer (0010 §2): the file’s delta at a
commit, or the Space g p hunk preview. The buffer’s rows mirror
the rendered layout — a stats row, then per hunk a @@ header
row and unprefixed content rows — so motions, / and yank see
exactly what’s on screen. origin names the working buffer a
hunk preview belongs to, so Space g u/g s act on the file;
commit carries the commit’s other files when this delta came
from the dive chain (the sidebar + ]f/[f, 0011 §4).
Fields
§
hunks: PreparedDiffWorker-prepared immutable content and its display/source projection.
§
commit: Option<CommitFiles>tuicr-style: Tab moves focus between the file sidebar and the diff content (j/k step files when the sidebar has focus).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Surface
impl RefUnwindSafe for Surface
impl Send for Surface
impl Sync for Surface
impl Unpin for Surface
impl UnsafeUnpin for Surface
impl UnwindSafe for Surface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more