jump relative to mark

This commit is contained in:
alice pellerin
2026-03-21 04:48:17 -05:00
parent 90090bab24
commit 823e186acd
4 changed files with 76 additions and 10 deletions
+8 -4
View File
@@ -26,10 +26,8 @@ const LINES_OF_PADDING: usize = 5;
const BYTES_OF_PADDING: usize = LINES_OF_PADDING * BYTES_PER_LINE;
// TODO:
// - zz/zt/zb
// - resizing can move the cursor off the screen
// - constant for 5 lines of padding
// - pad in clamp function, always
// - tab bar overflow
// - search
// - s/A-k/A-K
// - C-a/C-x
@@ -49,11 +47,13 @@ const BYTES_OF_PADDING: usize = LINES_OF_PADDING * BYTES_PER_LINE;
// - [/] to cycle view offset?
// - gj jump to entered offset
// - repeat X times (dec and hex)
// - jump relative to last marker?
// - from register??
// - extend to mark (tm?)
// future directions
// - 'views' for bytes (i8/16/etc u8/16/etc 20.12/8.4/etc)
// - how to fit??! `-128` longer than `80`
// - popup for different readings for the selected bytes
// - utf8?
// - diffing
@@ -79,6 +79,10 @@ fn main() {
// dbg!(app.edit_history);
for log in app.logs {
println!("{log}");
}
for log in app.buffers.iter().flat_map(|buffer| &buffer.logs) {
println!("{log}");
}