mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 11:16:00 +01:00
add cmd_help skeleton
This commit is contained in:
parent
87aa9b9a46
commit
bb466fc891
4 changed files with 16 additions and 1 deletions
|
@ -44,6 +44,12 @@ cmd_info(girara_session_t* session, girara_list_t* argument_list)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
cmd_help(girara_session_t* session, girara_list_t* argument_list)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
cmd_open(girara_session_t* session, girara_list_t* argument_list)
|
cmd_open(girara_session_t* session, girara_list_t* argument_list)
|
||||||
{
|
{
|
||||||
|
|
|
@ -51,6 +51,15 @@ bool cmd_close(girara_session_t* session, girara_list_t* argument_list);
|
||||||
*/
|
*/
|
||||||
bool cmd_info(girara_session_t* session, girara_list_t* argument_list);
|
bool cmd_info(girara_session_t* session, girara_list_t* argument_list);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display help
|
||||||
|
*
|
||||||
|
* @param session The used girara session
|
||||||
|
* @param argument_list List of passed arguments
|
||||||
|
* @return true if no error occured
|
||||||
|
*/
|
||||||
|
bool cmd_help(girara_session_t* session, girara_list_t* argument_list);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens a document file
|
* Opens a document file
|
||||||
*
|
*
|
||||||
|
|
1
config.c
1
config.c
|
@ -112,6 +112,7 @@ config_load_default(zathura_t* zathura)
|
||||||
girara_inputbar_command_add(gsession, "blist", NULL, cmd_bookmark_open, NULL, "List all bookmarks");
|
girara_inputbar_command_add(gsession, "blist", NULL, cmd_bookmark_open, NULL, "List all bookmarks");
|
||||||
girara_inputbar_command_add(gsession, "close", NULL, cmd_close, NULL, "Close current file");
|
girara_inputbar_command_add(gsession, "close", NULL, cmd_close, NULL, "Close current file");
|
||||||
girara_inputbar_command_add(gsession, "info", NULL, cmd_info, NULL, "Show file information");
|
girara_inputbar_command_add(gsession, "info", NULL, cmd_info, NULL, "Show file information");
|
||||||
|
girara_inputbar_command_add(gsession, "help", NULL, cmd_help, NULL, "Show help");
|
||||||
girara_inputbar_command_add(gsession, "open", "o", cmd_open, cc_open, "Open document");
|
girara_inputbar_command_add(gsession, "open", "o", cmd_open, cc_open, "Open document");
|
||||||
girara_inputbar_command_add(gsession, "print", NULL, cmd_print, NULL, "Print document");
|
girara_inputbar_command_add(gsession, "print", NULL, cmd_print, NULL, "Print document");
|
||||||
girara_inputbar_command_add(gsession, "write", NULL, cmd_save, NULL, "Save document");
|
girara_inputbar_command_add(gsession, "write", NULL, cmd_save, NULL, "Save document");
|
||||||
|
|
|
@ -125,7 +125,6 @@ bool document_open(zathura_t* zathura, const char* path, const char* password);
|
||||||
*/
|
*/
|
||||||
bool document_save(zathura_t* zathura, const char* path, bool overwrite);
|
bool document_save(zathura_t* zathura, const char* path, bool overwrite);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Closes the current opened document
|
* Closes the current opened document
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue