From c6b50cbdcbb39d28e5092414d9fd452f45a33c84 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Thu, 3 Sep 2020 22:51:10 +0200 Subject: [PATCH] Add :save and :save! aliases for :write and :write! (fixes #182) --- zathura/config.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zathura/config.c b/zathura/config.c index 2a5d7b4..20ab09d 100644 --- a/zathura/config.c +++ b/zathura/config.c @@ -493,6 +493,8 @@ config_load_default(zathura_t* zathura) girara_inputbar_command_add(gsession, "open", "o", cmd_open, cc_open, _("Open document")); girara_inputbar_command_add(gsession, "quit", "q", cmd_quit, NULL, _("Close zathura")); girara_inputbar_command_add(gsession, "print", NULL, cmd_print, NULL, _("Print document")); + girara_inputbar_command_add(gsession, "save", NULL, cmd_save, cc_write, _("Alias for :write")); + girara_inputbar_command_add(gsession, "save!", NULL, cmd_savef, cc_write, _("Alias for :write!")); girara_inputbar_command_add(gsession, "write", NULL, cmd_save, cc_write, _("Save document")); girara_inputbar_command_add(gsession, "write!", NULL, cmd_savef, cc_write, _("Save document (and force overwriting)")); girara_inputbar_command_add(gsession, "export", NULL, cmd_export, cc_export, _("Save attachments"));