From e0781f0390291e264e6dd9c17beae1342e87f9a2 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 26 Jul 2011 18:50:29 +0200 Subject: core: add mouse support (task #5435), free cursor movement, hook_focus, fix bugs with key "^" (bug #32072, bug #21381), fix bugs with bar windows, completion and /buffer New features and bugs fixed: - mouse support: new command /mouse, new option weechat.look.mouse, new key context "mouse" - free movement of cursor: new command /cursor, new key context "cursor" - new hook_focus (used by cursor and mouse) - info "cursor_mode" - bugs fixed with key "^" - allow plugin name in /buffer name - fix bugs with bar windows: do not create bar windows for hidden bars - fix completion bug when two words for completion are equal but with different case - automatic scroll direction in /bar scroll (x/y is now optional) --- src/core/wee-config.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core/wee-config.c') diff --git a/src/core/wee-config.c b/src/core/wee-config.c index da8de105b..92e552528 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -56,6 +56,7 @@ #include "../gui/gui-layout.h" #include "../gui/gui-line.h" #include "../gui/gui-main.h" +#include "../gui/gui-mouse.h" #include "../gui/gui-nicklist.h" #include "../gui/gui-window.h" #include "../plugins/plugin.h" @@ -108,6 +109,7 @@ struct t_config_option *config_look_input_undo_max; struct t_config_option *config_look_item_time_format; struct t_config_option *config_look_jump_current_to_previous_buffer; struct t_config_option *config_look_jump_previous_buffer_when_closing; +struct t_config_option *config_look_mouse; struct t_config_option *config_look_nickmode; struct t_config_option *config_look_nickmode_empty; struct t_config_option *config_look_paste_max_lines; @@ -1794,6 +1796,11 @@ config_weechat_init_options () N_("jump to previously visited buffer when closing a buffer (if " "disabled, then jump to buffer number - 1)"), NULL, 0, 0, "on", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); + config_look_mouse = config_file_new_option ( + weechat_config_file, ptr_section, + "mouse", "boolean", + N_("enable mouse support at startup (to enable it now, see /help mouse)"), + NULL, 0, 0, "off", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); config_look_nickmode = config_file_new_option ( weechat_config_file, ptr_section, "nickmode", "boolean", -- cgit v1.2.3