type-render
parent
8eeb02b636
commit
f267c12e5c
3 changed files with 110 additions and 58 deletions
@ -0,0 +1,48 @@ |
|||||||
|
use sdl2::keyboard::Keycode; |
||||||
|
|
||||||
|
mod keybinds { |
||||||
|
pub(super) enum Clipboard { |
||||||
|
CutSelection, |
||||||
|
CutLines, |
||||||
|
CopySelection, |
||||||
|
CopyLines, |
||||||
|
Paste, |
||||||
|
PasteOverwrite, |
||||||
|
} |
||||||
|
|
||||||
|
pub(super) enum Editing { |
||||||
|
Undo, |
||||||
|
Redo, |
||||||
|
NewLines, |
||||||
|
DeleteLines, |
||||||
|
} |
||||||
|
|
||||||
|
pub(super) enum Movement { |
||||||
|
DocBegin, |
||||||
|
DocEnd, |
||||||
|
LineBack, |
||||||
|
LineBegin, |
||||||
|
LineForward, |
||||||
|
LineEnd, |
||||||
|
CharBack, |
||||||
|
CharForward, |
||||||
|
WordBack, |
||||||
|
WordForward, |
||||||
|
ParaBack, |
||||||
|
ParaForward, |
||||||
|
} |
||||||
|
|
||||||
|
pub(super) enum Selection { |
||||||
|
CharBack, |
||||||
|
Forward, |
||||||
|
WordBack, |
||||||
|
WordForward, |
||||||
|
ParaBack, |
||||||
|
ParaForward, |
||||||
|
WholeLines, |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
fn input(buffer: &str, modifiers: crate::ModifierKeys, key: Keycode) { |
||||||
|
|
||||||
|
} |
||||||
Loading…
Reference in new issue