additions to the config
This commit is contained in:
10
config.h
10
config.h
@@ -15,13 +15,18 @@ static const mimetype mimetype_default_cmd[] = {
|
||||
{ "gif", "mpv --loop-file=\"inf\"" },
|
||||
{ "image", "feh" },
|
||||
{ "video", "mpv" },
|
||||
{ "audio", "mpv" }
|
||||
{ "audio", "mpv" },
|
||||
{ "pdf", "zathura" },
|
||||
};
|
||||
static const extension file_extension_default_cmd[] = {
|
||||
/* extension shell command
|
||||
* similar to mimetype_default_cmd, however it searches for exact string matches
|
||||
* and is checked before mimetype_default_cmd */
|
||||
{ ".exe", "wine"},
|
||||
{ ".cbz", "mcomix"},
|
||||
{ ".cbr", "mcomix"},
|
||||
{ ".json", "$EDITOR"},
|
||||
{ ".csv", "$EDITOR"},
|
||||
};
|
||||
static const binding key_binding[] = {
|
||||
/*key action blackmagic comment*/
|
||||
@@ -42,7 +47,7 @@ static const binding key_binding[] = {
|
||||
|
||||
{ "\n", open_with, NULL, "open \"open with\" dialog" }, /* opens the hovered file with an arbitrary command */
|
||||
{ "r", rename_hovered, NULL, "rename hovered file" }, /* renames currently hovered file/directory */
|
||||
{ "d", delete, NULL, "delete file" }, /* deletes currently hovered OR selected file/directory
|
||||
{ "dD", delete, NULL, "delete file" }, /* deletes currently hovered OR selected file/directory
|
||||
* this means that it does not delete the hovered files if files are already selected */
|
||||
|
||||
{ "G", jump_bottom, NULL, "jump to last file in dir" },
|
||||
@@ -75,6 +80,7 @@ static const binding key_binding[] = {
|
||||
{ "mf", makefile, NULL, "create file" },
|
||||
|
||||
{ "a", toggle_hidden_files, NULL, "toggle hidden files" },
|
||||
{ "\x7F", toggle_hidden_files, NULL, "toggle hidden files" }, /* backspace/delete key */
|
||||
};
|
||||
static const unsigned long binding_count = sizeof(key_binding) / sizeof(binding);
|
||||
static const unsigned long mimetype_default_count = sizeof(mimetype_default_cmd) / sizeof(mimetype);
|
||||
|
Reference in New Issue
Block a user