1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 12:26:40 +02:00
Commit Graph

127 Commits

Author SHA1 Message Date
Sébastien Helleu fabd48cc6c core: move nick coloring from irc plugin to core (closes #262)
Options moved from irc.conf to weechat.conf:

* "irc.look.nick_color_force" moved to "weechat.look.nick_color_force"
* "irc.look.nick_color_hash" moved to "weechat.look.nick_color_hash"
* "irc.look.nick_color_stop_chars" moved to
  "weechat.look.nick_color_stop_chars"

New info (for API function "info_get"):

* "nick_color" (replaces "irc_nick_color")
* "nick_color_name" (replaced "irc_nick_color_name")

Info "irc_nick_color" and "irc_nick_color_name" are now deprecated.

And a bug has been fixed in nick coloring: stop chars are removed before
looking at a forced color.
2016-04-05 07:56:43 +02:00
Sébastien Helleu cf6aca1619 core: add pointer in some callbacks (closes #406)
This pointer is the first argument received by callbacks, and the
existing argument "data" is now automatically freed by WeeChat when the
object containing the callback is removed.

With this new pointer, the linked list of callbacks in scripts has been
removed. This will improve speed of scripts (using a lot of hooks),
reduce memory used by scripts and reduce time to unload scripts.

Following functions are affected in the C API:

* exec_on_files
* config_new
* config_new_section
* config_new_option
* hook_command
* hook_command_run
* hook_timer
* hook_fd
* hook_process
* hook_process_hashtable
* hook_connect
* hook_print
* hook_signal
* hook_hsignal
* hook_config
* hook_completion
* hook_modifier
* hook_info
* hook_info_hashtable
* hook_infolist
* hook_hdata
* hook_focus
* unhook_all_plugin
* buffer_new
* bar_item_new
* upgrade_new
* upgrade_read
2016-03-21 18:11:21 +01:00
Sébastien Helleu 3330724574 core: update copyright dates 2016-01-01 11:09:53 +01:00
Sébastien Helleu bd850398e8 core: add missing comments before functions when the result must be freed after use 2015-07-04 08:24:53 +02:00
Sébastien Helleu a020c28ea6 core: update copyright dates 2015-01-01 09:23:23 +01:00
Sébastien Helleu 72e6b3d703 core: split info/infolist callbacks 2014-12-05 07:49:45 +01:00
Sébastien Helleu 1ef3237b6b api: return value in function command(), remove WeeChat error after command callback if return code is WEECHAT_RC_ERROR 2014-11-22 08:14:29 +01:00
Sébastien Helleu f0aa0a21b2 core: optimize completion by using arraylists
With arraylist (vs weelist), the completion is about 50x faster.
It is visible on "/help [+tab]".
2014-09-01 11:51:04 +02:00
Sébastien Helleu d0fa44865c core: fix potential memory leak with infolists not freed in plugins (debian #751108)
The memory leak should not happen if infolists are properly freed by plugins,
and it happened only on unload of plugins (or exit).
2014-06-10 20:14:24 +02:00
Sébastien Helleu 34723d2acc api: allow wildcard "*" inside the mask in function string_match 2014-04-12 23:07:06 +02:00
Sebastien Helleu fff24d0a23 core: update translations 2014-03-15 15:08:49 +01:00
Sebastien Helleu e38f437ad7 core: add modifier and infos to decode ANSI colors
New modifier:
- color_decode_ansi: convert ANSI colors to WeeChat colors (or remove colors).

New infos:
- color_ansi_regex: regex used to parse ANSI colors in a string
- color_term2rgb: convert a terminal color (0-255) to RGB
- color_rgb2term: convert a RGB color to terminal color (0-255)
2014-03-15 11:06:30 +01:00
Sebastien Helleu 892aa79fb5 core: update copyright dates 2014-01-01 00:14:12 +01:00
Sebastien Helleu c8a479453d core: add missing access to hdata "buffer_visited" 2013-12-01 08:46:07 +01:00
Sebastien Helleu 18ff3064cf core: add infos "term_width" and "term_height" 2013-11-09 15:55:11 +01:00
Sebastien Helleu 0e4eb69d33 api: use pointer for infolist "hook" to return only one hook 2013-07-28 12:40:08 +02:00
Sebastien Helleu 21356d9909 core: add "proxy" infolist and hdata 2013-06-08 11:40:27 +02:00
Sebastien Helleu c7e8e6856d core: add infolist "layout" and hdata "layout", "layout_buffer" and "layout_window" (thanks to Nils Görs) 2013-05-14 21:11:58 +02:00
Sebastien Helleu f97598b4aa core: update copyright dates 2013-01-01 13:12:49 +01:00
Sebastien Helleu 2b78673aa9 core: add git version in build, display it in "weechat-curses --help" and /version 2012-12-16 23:07:33 +01:00
Sebastien Helleu 7eb5cc4b97 core: move comments with description of C file to top of files 2012-12-15 12:27:57 +01:00
Sebastien Helleu 7d34812f1c core: reformat comments for functions 2012-12-13 18:51:44 +01:00
Sebastien Helleu 641de51bdb api: allow creation of structure with hdata_update (allowed for hdata "history") 2012-12-08 23:54:07 +01:00
Sebastien Helleu 4a96c0ad8b api: add info "locale" for info_get (locale used to translate messages) 2012-08-16 12:05:47 +02:00
Sebastien Helleu f426446521 core: add hdata "hotlist" 2012-07-21 17:32:41 +02:00
Sebastien Helleu b91c231096 core: add URL transfer (using libcurl), add function hook_process_hashtable in plugin API, add support of URL in hook_process/hook_process_hashtable (task #10247) 2012-01-16 19:52:08 +01:00
Sebastien Helleu 47e4a03be6 core: update copyright dates 2012-01-08 18:59:50 +01:00
Sebastien Helleu 6f6e1569cd core: add "full_name" in buffer structure 2011-11-21 17:55:30 +01:00
Sebastien Helleu dfdf42e27b core: remove unneeded whitespace 2011-10-26 20:37:03 +02:00
Sebastien Helleu 893485ba5f core: remove compilation warnings about unused return values of functions 2011-09-22 16:16:41 +02:00
Sebastien Helleu 38fd5bfa51 core: use arguments for infolist "window" to return only one window by number 2011-08-08 11:32:31 +02:00
Sebastien Helleu 8d2c23209f core: save and restore layout for buffers and windows on /upgrade 2011-08-05 23:15:23 +02:00
Sebastien Helleu 217e9683d2 core: add info about position where mouse button is released in hook_focus (for mouse gestures) 2011-08-01 18:33:13 +02:00
Sebastien Helleu e0781f0390 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)
2011-07-26 18:50:29 +02:00
Sebastien Helleu cb4e0d0076 core: allow empty argument for infolist "key" (return context "default") 2011-07-10 23:07:33 +02:00
Sebastien Helleu 3bea55b2f0 core: add context "search" for keys (to define keys used during search in buffer with ctrl+"r") 2011-07-05 15:36:42 +02:00
Sebastien Helleu 19bc95b961 core: many improvements on hdata
New features:
- add optional hdata name for variables in hdata
- add plugin API functions: hdata_get_var_hdata
- use hashtable to store hdata (created by WeeChat and plugins)
- free hdata and infolists created by plugin on plugin unload
- free all hdata on exit
- add "free" option to command /debug hdata
- remove hdata for hooks
2011-06-26 18:15:42 +02:00
Sebastien Helleu 8046d91f5c core: update description for some hdata 2011-06-13 21:45:26 +02:00
Sebastien Helleu c8b2a6a084 core: add "hdata" (direct access to WeeChat/plugin data) 2011-06-13 12:32:27 +02:00
Sebastien Helleu 3fd2af8184 api: add new function config_set_desc_plugin (task #10925) 2011-04-26 17:47:49 +02:00
Sebastien Helleu 3b7bd01716 core: allow command mask for infolist_get on command hooks 2011-04-19 20:13:46 +02:00
Sebastien Helleu aeaa0dfb7c Add optional command name for infolist_get on command hooks 2011-02-25 23:16:45 +01:00
Sebastien Helleu d24f6e9e17 Update copyright dates 2011-01-01 18:06:29 +01:00
Sebastien Helleu 391ca47674 Add info "weechat_upgrading", signal "upgrade_ended", display duration of upgrade 2010-12-26 12:16:47 +01:00
Sebastien Helleu 6562d676fe Update licenses and copyrights, add missing author names in sources 2010-06-22 19:46:28 +02:00
Sebastien Helleu ba115ce113 Replace "joker" by "wildcard" 2010-04-18 23:52:32 +02:00
Sebastien Helleu 31bfcf96c7 Reformat and add comments for description of C sources 2010-04-08 18:15:00 +02:00
Sebastien Helleu 58d423319c Return absolute path for info_get of "weechat_dir" (bug #27936) 2010-03-08 11:21:03 +01:00
Sebastien Helleu 922e67cabd Add description of arguments for API functions hook_info and hook_infolist 2010-02-12 17:15:30 +01:00
Sebastien Helleu 8d25a75200 Use arguments for infolist "nicklist" to return only one nick or group
Format is: nick_xxx or group_xxx to return only nick/group called "xxx".
2010-02-12 12:50:16 +01:00