From c1f2f7602a21a07d9b453d1eac60435e35482848 Mon Sep 17 00:00:00 2001 From: nova Date: Sun, 15 Jun 2025 20:17:11 +0200 Subject: [PATCH] updated config.h, see previous commit --- config.h | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/config.h b/config.h index 58321bf..616ce14 100644 --- a/config.h +++ b/config.h @@ -1,7 +1,23 @@ #include "defines.h" +#include "interactions.h" - -static file_preview file_previews[] = { - { "c", "&a" }, - { ".c", "&ueberzug" }, +static mimetype mimetype_default_cmd[] = { + /* mimetype shell command */ + { "text", "$EDITOR" } }; + +static binding key_binding[] = { + /*key action */ + { 'q', quit_program }, + { 'h', move_right }, + { 't', move_down }, + { 'n', move_up }, + { 's', move_left }, + + { 'g', jump_top }, + { 'G', jump_bottom }, + + { 'a', toggle_hidden_files }, +}; +static unsigned long binding_count = sizeof(key_binding) / sizeof(binding); +static unsigned long mimetype_default_count = sizeof(mimetype_default_cmd) / sizeof(mimetype);