mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-26 21:46:02 +01:00
Added blank map function
This commit is contained in:
parent
5ac14daf6b
commit
de7131a811
2 changed files with 13 additions and 2 deletions
|
@ -146,18 +146,19 @@ MouseScrollEvent mouse_scroll_events[] = {
|
|||
/* commands */
|
||||
Command commands[] = {
|
||||
/* command, abbreviation, function, completion, description */
|
||||
{"bmark", "b", cmd_bookmark, 0, "Bookmark current page" },
|
||||
{"blist", 0, cmd_open_bookmark, cc_bookmark, "List and open bookmark" },
|
||||
{"bmark", "b", cmd_bookmark, 0, "Bookmark current page" },
|
||||
{"close", "c", cmd_close, 0, "Close current file" },
|
||||
{"coffset", 0, cmd_correct_offset, 0, "Correct page offset" },
|
||||
{"delbmark", 0, cmd_delete_bookmark, cc_bookmark, "Bookmark current page" },
|
||||
{"export", "e", cmd_export, cc_export, "Export images or attached files" },
|
||||
{"info", "i", cmd_info, 0, "Show information about the document" },
|
||||
{"map", "m", cmd_map, 0, "Map keybinding to a function" },
|
||||
{"open", "o", cmd_open, cc_open, "Open a file" },
|
||||
{"print", "p", cmd_print, cc_print, "Print the document" },
|
||||
{"quit", "q", cmd_quit, 0, "Quit zathura" },
|
||||
{"rotate", "r", cmd_rotate, 0, "Rotate the page" },
|
||||
{"set", "s", cmd_set, cc_set, "Set an option" },
|
||||
{"quit", "q", cmd_quit, 0, "Quit zathura" },
|
||||
{"write", "w", cmd_save, 0, "Save the document" },
|
||||
};
|
||||
|
||||
|
|
10
zathura.c
10
zathura.c
|
@ -346,6 +346,7 @@ gboolean cmd_correct_offset(int, char**);
|
|||
gboolean cmd_delete_bookmark(int, char**);
|
||||
gboolean cmd_export(int, char**);
|
||||
gboolean cmd_info(int, char**);
|
||||
gboolean cmd_map(int, char**);
|
||||
gboolean cmd_open(int, char**);
|
||||
gboolean cmd_print(int, char**);
|
||||
gboolean cmd_rotate(int, char**);
|
||||
|
@ -2680,6 +2681,15 @@ cmd_info(int argc, char** argv)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
cmd_map(int argc, char** argv)
|
||||
{
|
||||
if(argc < 2)
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
cmd_open(int argc, char** argv)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue