this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add home and end keybinds for the TextInput widget

readline accepts these an analogs for ctrl+z and ctrl+e.

Signed-off-by: Tristan Partin <tristan@partin.io>

authored by

Tristan Partin and committed by
Tim Culverhouse
e44c5786 13860431

+2 -2
+2 -2
src/widgets/TextInput.zig
··· 55 55 if (self.cursor_idx > 0) self.cursor_idx -= 1; 56 56 } else if (key.matches(Key.right, .{}) or key.matches('f', .{ .ctrl = true })) { 57 57 if (self.cursor_idx < self.grapheme_count) self.cursor_idx += 1; 58 - } else if (key.matches('a', .{ .ctrl = true })) { 58 + } else if (key.matches('a', .{ .ctrl = true }) or key.matches(Key.home, .{})) { 59 59 self.cursor_idx = 0; 60 - } else if (key.matches('e', .{ .ctrl = true })) { 60 + } else if (key.matches('e', .{ .ctrl = true }) or key.matches(Key.end, .{})) { 61 61 self.cursor_idx = self.grapheme_count; 62 62 } else if (key.matches('k', .{ .ctrl = true })) { 63 63 try self.deleteToEnd();