diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/imv.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -177,12 +177,6 @@ struct imv *imv_create(void) imv_command_register(imv->commands, "scaling_mode", &command_set_scaling_mode); imv_command_register(imv->commands, "slideshow_duration", &command_set_slideshow_duration); - imv_command_alias(imv->commands, "q", "quit"); - imv_command_alias(imv->commands, "next", "select_rel 1"); - imv_command_alias(imv->commands, "previous", "select_rel -1"); - imv_command_alias(imv->commands, "n", "select_rel 1"); - imv_command_alias(imv->commands, "p", "select_rel -1"); - add_bind(imv, "<q>", "quit"); add_bind(imv, "<Left>", "select_rel -1"); add_bind(imv, "<LeftSquareBracket>", "select_rel -1"); @@ -881,6 +875,11 @@ static int handle_ini_value(void *user, const char *section, const char *name, return 1; } + if (!strcmp(section, "aliases")) { + imv_command_alias(imv->commands, name, value); + return 1; + } + if (!strcmp(section, "options")) { if(!strcmp(name, "fullscreen")) { |