#include "defines.h" #include "interactions.h" static mimetype mimetype_default_cmd[] = { /* mimetype shell command */ { "text", "$EDITOR" }, { "image", "feh" }, { "video", "mpv" } }; static binding key_binding[] = { /*key action */ { "q", quit_program }, { "h", move_right }, /* moves one dir up */ { "t", move_down }, { "n", move_up }, { "s", move_left }, /* if a dir is hovered, cd into it, if a file is selected, see mimetype_default_cmd */ { "\n", open_with }, /* enter/return/new line/whatever you call it */ { "gg", 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);