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);