implemented open_with

This commit is contained in:
nova
2025-06-21 23:48:56 +02:00
parent f99035629a
commit e07ec0b413
5 changed files with 73 additions and 19 deletions

View File

@ -10,16 +10,17 @@ static mimetype mimetype_default_cmd[] = {
static binding key_binding[] = {
/*key action */
{ 'q', quit_program },
{ 'h', move_right },
{ 't', move_down },
{ 'n', move_up },
{ 's', move_left },
{ "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 */
{ 'g', jump_top },
{ 'G', jump_bottom },
{ "gg", jump_top },
{ "G", jump_bottom },
{ 'a', toggle_hidden_files },
{ "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);