diff options
| author | 2022-01-02 00:17:47 +0200 | |
|---|---|---|
| committer | 2022-01-02 00:17:47 +0200 | |
| commit | bd3101517b7b2d0d81f2014eb3c2613e82b25def (patch) | |
| tree | 72cffbbcdc2be0f22987e1a4cb20892fbc3db052 /src/key_state.zig | |
| parent | changes (diff) | |
| download | es-bd3101517b7b2d0d81f2014eb3c2613e82b25def.tar.gz es-bd3101517b7b2d0d81f2014eb3c2613e82b25def.tar.xz es-bd3101517b7b2d0d81f2014eb3c2613e82b25def.zip | |
hierarchy changes
Diffstat (limited to 'src/key_state.zig')
| -rw-r--r-- | src/key_state.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/key_state.zig b/src/key_state.zig index f1880ae..ce20071 100644 --- a/src/key_state.zig +++ b/src/key_state.zig | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | const es = @import("root"); | ||
| 1 | const std = @import("std"); | 2 | const std = @import("std"); |
| 2 | 3 | ||
| 3 | const Buffer = @import("Buffer.zig"); | 4 | const Buffer = es.Buffer; |
| 4 | const Editor = @import("Editor.zig"); | 5 | const Editor = es.Editor; |
| 5 | const Key = @import("key.zig").Key; | 6 | const Key = es.Key; |
| 6 | const search = @import("search.zig").search; | ||
| 7 | 7 | ||
| 8 | pub const Error = error{ | 8 | pub const Error = error{ |
| 9 | MalformedConfig, | 9 | MalformedConfig, |
| @@ -93,7 +93,7 @@ pub fn defaultState(editor: *Editor, buf: *Buffer, key: Key) Error!void { | |||
| 93 | Key.ctrl('m') => try buf.insertNewline(), | 93 | Key.ctrl('m') => try buf.insertNewline(), |
| 94 | Key.ctrl('n'), Key.down => buf.nextLine(), | 94 | Key.ctrl('n'), Key.down => buf.nextLine(), |
| 95 | Key.ctrl('p'), Key.up => buf.previousLine(), | 95 | Key.ctrl('p'), Key.up => buf.previousLine(), |
| 96 | Key.ctrl('s') => try search(editor, buf), | 96 | Key.ctrl('s') => try es.search(editor, buf), |
| 97 | 97 | ||
| 98 | // TODO: C-q quotedInsert | 98 | // TODO: C-q quotedInsert |
| 99 | 99 | ||