26 lines
607 B
C
26 lines
607 B
C
#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 },
|
|
{ '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);
|