From 3dbb45dc76a28bf514b42c08f296b779bb1ee9cc Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 13 Nov 2011 19:51:47 +0100 Subject: Plugin doc for add_key and del_key --- doc/en/plugins.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'doc/en') diff --git a/doc/en/plugins.txt b/doc/en/plugins.txt index 87f09cb7..7bb3dbe3 100644 --- a/doc/en/plugins.txt +++ b/doc/en/plugins.txt @@ -61,10 +61,21 @@ Everything else is handled by that _auto_completion()_ method (checking what special completion for that command, just pass None (the default value). *del_command*:: +self+, +name+ + -This command removes a tab command added by your plugin. +This method removes a command added by your plugin. * _name_: (string) the name of the command you want to remove. +*add_key*:: +self+, +key+, +handler+ + +This method adds a global keyboard shortcut on _key_ that will call _handler_. +You can get the keys with _python3 src/keyboard.py_. + +* _key_: String representing the key press in curses. +* _handler_: Method called whenever _key_ is pressed. + +*del_key*:: +self+, +key+ + +This method deletes a keyboard shortcut previously added by your plugin. + +* _key_: String representing the key press in curses. *add_tab_command*:: +self+, +tab_type+, +name+, +handler+, +help+, +completion+ + This method adds a tab-custom command to poezio. For example you can add /dou -- cgit v1.2.3 From 68d25ec4ef81053b4770e3981f4ebe013a331c05 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 13 Nov 2011 19:52:44 +0100 Subject: Plugin doc for del_tab_command --- doc/en/plugins.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/en') diff --git a/doc/en/plugins.txt b/doc/en/plugins.txt index 7bb3dbe3..f55eda6d 100644 --- a/doc/en/plugins.txt +++ b/doc/en/plugins.txt @@ -106,6 +106,13 @@ Everything else is handled by that _auto_completion()_ method (checking what strings match, how to cycle between matches, etc). If you don’t want any special completion for that command, just pass None (the default value). +*del_tab_command*:: +self+, +tab_type+, +name+ +This method removes a tab command added by your plugin. + +* _name_: (string) the name of the command you want to remove. +* _name_: the type of tab (see help for _add_tab_command_) + + *add_event_handler**: +self+, +event_name+, +handler+ +position+ This methods adds a callback that will be called whenever the given event occurs. <> -- cgit v1.2.3 From dc6b6695bb682733c8ef2f1c257bae1275ca754d Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 13 Nov 2011 20:24:13 +0100 Subject: Documentation for add_tab_key --- doc/en/plugins.txt | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) (limited to 'doc/en') diff --git a/doc/en/plugins.txt b/doc/en/plugins.txt index f55eda6d..f31086dc 100644 --- a/doc/en/plugins.txt +++ b/doc/en/plugins.txt @@ -77,11 +77,31 @@ This method deletes a keyboard shortcut previously added by your plugin. * _key_: String representing the key press in curses. +*add_tab_key*:: +self+, +tab_type+, +key+, +handler+ + +This method adds a tab-custom command to poezio. For example you can add _^G_ +keybind that the user could call in a specific tab when the plugin is loaded. + +* _tab_type_: You have to _import tabs_ in order to get tabs types. The + following are possible: +** _tabs.MucTab_: The MultiUserChat tabs +** _tabs.PrivateTab_: The Private tabs +** _tabs.ConversationTab_: The Roster tab +** _tabs.RosterInfoTab_: The MultiUserChat, Private, and Conversation tabs +** _tabs.ChatTab_: The MultiUserChat, Private, and Conversation tabs +** _tabs.MucListTab_: The MultiUserChat list tabs +* _key_: (string) the curses representation of the keypress (see above). +* _handler_: (function) the handler to be called when the keypress is found. + +*del_tab_command*:: +self+, +tab_type+, +key+ +This method removes a tab command added by your plugin. + +* _key_: (string) the name of the keybind you want to remove. +* _tab_type_: the type of tab (see help for _add_key_command_) + *add_tab_command*:: +self+, +tab_type+, +name+, +handler+, +help+, +completion+ + -This method adds a tab-custom command to poezio. For example you can add /dou +This method adds a tab-custom command to poezio. For example you can add a /dou command that the user could call in a specific tab when the plugin is loaded. - * _tab_type_: You have to _import tabs_ in order to get tabs types. The following are possible: ** _tabs.MucTab_: The MultiUserChat tabs @@ -110,8 +130,7 @@ Everything else is handled by that _auto_completion()_ method (checking what This method removes a tab command added by your plugin. * _name_: (string) the name of the command you want to remove. -* _name_: the type of tab (see help for _add_tab_command_) - +* _tab_type_: the type of tab (see help for _add_tab_command_) *add_event_handler**: +self+, +event_name+, +handler+ +position+ This methods adds a callback that will be called whenever the given event -- cgit v1.2.3 From 805c7a73fd69912f8d42502241c58a76064f2d39 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 14 Nov 2011 00:46:30 +0100 Subject: Fix gpg doc accordingly --- doc/en/plugins/gpg.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/en') diff --git a/doc/en/plugins/gpg.txt b/doc/en/plugins/gpg.txt index 9e87b6c7..70a6fd15 100644 --- a/doc/en/plugins/gpg.txt +++ b/doc/en/plugins/gpg.txt @@ -35,7 +35,7 @@ default), and fill it like this: [source,python] --------------------------------------------------------------------- -[Poezio] +[gpg] keyid = 091F9C78 passphrase = your OPTIONAL passphrase -- cgit v1.2.3