ReviewOS

also looking at this

den-shell/den

feat(line-editor): add Ctrl+P / Ctrl+N history navigation

#53
Merged chris wants to merge feat/line-editor-keybindings into main
1 file +8 -0
src/utils/terminal/line_editor.zigmodified+8-0
Changes to src/utils/terminal/line_editor.zig
@@ -796,6 +796,14 @@ pub const LineEditor = struct {
796796 self.clearCompletionState();
797797 try self.yank(); // Ctrl+Y - yank (paste from kill ring)
798798 },
799 0x10 => {
800 self.clearCompletionState();
801 try self.historyPrevious(); // Ctrl+P - previous history (like Up arrow)
802 },
803 0x0E => {
804 self.clearCompletionState();
805 try self.historyNext(); // Ctrl+N - next history (like Down arrow)
806 },
799807 0x1F => {
800808 self.clearCompletionState();
801809 try self.undo(); // Ctrl+_ (undo)