implemented open_with
This commit is contained in:
17
config.h
17
config.h
@ -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);
|
||||
|
Reference in New Issue
Block a user