diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-03-30 20:39:37 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-03-30 20:39:37 +0200 |
commit | f0c8da2f05a4b463cbc7d03341ee8a7a6db45f61 (patch) | |
tree | 956d53fc5887b18b917b4857b06bc3eaffd8585e /src/plugins/buflist/buflist.c | |
parent | 467f482ea6653127d49ea7b6c487f9d51929d232 (diff) | |
download | weechat-f0c8da2f05a4b463cbc7d03341ee8a7a6db45f61.zip |
buflist: add mouse support
New options:
- buflist.look.mouse_jump_visited_buffer
- buflist.look.mouse_move_buffer
- buflist.look.mouse_wheel
New keys added by buflist plugin:
- @item(buflist):button1* => hsignal:buflist_mouse
- @item(buflist):button2* => hsignal:buflist_mouse
- @bar(buflist):ctrl-wheelup => hsignal:buflist_mouse
- @bar(buflist):ctrl-wheeldown => hsignal:buflist_mouse
Diffstat (limited to 'src/plugins/buflist/buflist.c')
-rw-r--r-- | src/plugins/buflist/buflist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/buflist/buflist.c b/src/plugins/buflist/buflist.c index 4918d2917..08d2889ff 100644 --- a/src/plugins/buflist/buflist.c +++ b/src/plugins/buflist/buflist.c @@ -27,6 +27,7 @@ #include "buflist-bar-item.h" #include "buflist-command.h" #include "buflist-config.h" +#include "buflist-mouse.h" WEECHAT_PLUGIN_NAME(BUFLIST_PLUGIN_NAME); @@ -253,6 +254,8 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) weechat_bar_item_update (BUFLIST_BAR_ITEM_NAME); + buflist_mouse_init (); + return WEECHAT_RC_OK; } @@ -266,6 +269,8 @@ weechat_plugin_end (struct t_weechat_plugin *plugin) /* make C compiler happy */ (void) plugin; + buflist_mouse_end (); + buflist_bar_item_end (); buflist_config_write (); |