Mercurial > ~mikael > mcabber > hg
view mcabber/mcabber/caps.h @ 2304:fa8365fb6ac2
[PATCH 1/3] New option: vi_mode
If the new vi_mode option is set to 1, let MCabber's non-chat mode
accept a few commands loosely based on those available in vi(1)'s normal
mode, e.g.:
A Call "/roster unread_first".
a Call "/roster unread_next".
F Call "/roster group_prev".
f Call "/roster group_next".
G Call "/roster bottom".
gg Call "/roster top".
i Enter chat mode.
[<n>]j Call "/roster down [<n>]".
[<n>]k Call "/roster up [<n>]".
n Repeat the previous search (if any).
O Call "/roster unread_first" and open chat window.
o Call "/roster unread_next" and open chat window.
ZZ Call "/quit".
zM Call "/group fold" for all groups.
zR Call "/group unfold" for all groups.
<Space> Call "/group toggle" for the current group.
'' Call "/roster alternate".
! Toggle attention flag for current buddy.
# Toggle unread messages flag for current buddy.
/<str> Call "/roster search <str>".
:q Call "/quit".
:wq Call "/quit".
:x Call "/quit".
:<n> Jump to line <n> in the roster.
:<cmd> Call "/<cmd>" (unless <cmd> matches one of the above commands).
author | Holger Weiß <holger@zedat.fu-berlin.de> |
---|---|
date | Wed, 22 Jul 2015 19:25:22 +0200 |
parents | 51f032d5ca22 |
children |
line wrap: on
line source
#ifndef __MCABBER_CAPS_H__ #define __MCABBER_CAPS_H__ 1 #include <glib.h> void caps_init(void); void caps_free(void); void caps_add(const char *hash); void caps_remove(const char *hash); void caps_move_to_local(const char *hash, char *bjid); int caps_has_hash(const char *hash, const char *bjid); void caps_add_identity(const char *hash, const char *category, const char *name, const char *type, const char *lang); void caps_set_identity(char *hash, const char *category, const char *name, const char *type); void caps_add_dataform(const char *hash, const char *formtype); void caps_add_dataform_field(const char *hash, const char *formtype, const char *field, const char *value); void caps_add_feature(char *hash, const char *feature); int caps_has_feature(char *hash, char *feature, char *bjid); void caps_foreach_feature(const char *hash, GFunc func, gpointer user_data); char *caps_generate(void); gboolean caps_verify(const char *hash, char *function); void caps_copy_to_persistent(const char *hash, char *xml); gboolean caps_restore_from_persistent(const char *hash); #endif /* __MCABBER_CAPS_H__ */ /* vim: set expandtab cindent cinoptions=>2\:2(0 sw=2 ts=2: For Vim users... */