From ff36205a34ffead7208106084837d50a8f5c26d1 Mon Sep 17 00:00:00 2001 From: dzaima Date: Sun, 6 Nov 2022 00:17:47 +0200 Subject: [PATCH] bind ctrl+n & ctrl+p --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index 1a061caf..43c08002 100644 --- a/src/main.c +++ b/src/main.c @@ -762,6 +762,8 @@ int main(int argc, char* argv[]) { replxx_enable_bracketed_paste(replxx); replxx_bind_key(replxx, '\\', backslash_replxx, NULL); replxx_set_modify_callback(replxx, modified_replxx, NULL); + replxx_bind_key_internal(replxx, REPLXX_KEY_CONTROL('N'), "history_next"); + replxx_bind_key_internal(replxx, REPLXX_KEY_CONTROL('P'), "history_previous"); while(true) { const char* ln = replxx_input(replxx, " ");