aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-08-07 19:33:57 +0100
committerHarry Jeffery <harry@exec64.co.uk>2019-08-07 19:33:57 +0100
commitd38bb5e4392af963f9257cfb39706e21d1493aa3 (patch)
tree966271db72be73369dbc637d5a29fbdd3633e692
parent11276aaefb7d68a4cbc01e8abc9a3855114ad680 (diff)
downloadimv-d38bb5e4392af963f9257cfb39706e21d1493aa3.tar.gz
Rename some commands, and add some aliases
-rw-r--r--src/imv.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/imv.c b/src/imv.c
index a9b2461..d9d54c0 100644
--- a/src/imv.c
+++ b/src/imv.c
@@ -509,12 +509,18 @@ struct imv *imv_create(void)
);
imv_command_register(imv->commands, "quit", &command_quit);
+ imv_command_register(imv->commands, "q", &command_quit);
imv_command_register(imv->commands, "pan", &command_pan);
imv_command_register(imv->commands, "next", &command_next);
+ imv_command_register(imv->commands, "n", &command_next);
imv_command_register(imv->commands, "prev", &command_prev);
+ imv_command_register(imv->commands, "p", &command_prev);
imv_command_register(imv->commands, "goto", &command_goto);
+ imv_command_register(imv->commands, "g", &command_goto);
imv_command_register(imv->commands, "zoom", &command_zoom);
+ imv_command_register(imv->commands, "z", &command_zoom);
imv_command_register(imv->commands, "open", &command_open);
+ imv_command_register(imv->commands, "o", &command_open);
imv_command_register(imv->commands, "close", &command_close);
imv_command_register(imv->commands, "fullscreen", &command_fullscreen);
imv_command_register(imv->commands, "overlay", &command_overlay);
@@ -523,8 +529,8 @@ struct imv *imv_create(void)
imv_command_register(imv->commands, "reset", &command_reset);
imv_command_register(imv->commands, "next_frame", &command_next_frame);
imv_command_register(imv->commands, "toggle_playing", &command_toggle_playing);
- imv_command_register(imv->commands, "scaling_mode", &command_set_scaling_mode);
- imv_command_register(imv->commands, "slideshow_duration", &command_set_slideshow_duration);
+ imv_command_register(imv->commands, "scaling", &command_set_scaling_mode);
+ imv_command_register(imv->commands, "slideshow", &command_set_slideshow_duration);
add_bind(imv, "q", "quit");
add_bind(imv, "<Left>", "prev");