Sébastien Helleu
51c3e0b9ec
api: add support of functions in hook_process
2016-04-23 13:59:20 +02:00
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
cf93e953b6
core: use ${info:term_width} instead of ${window.win_width} in /help weechat.bar.xxx.conditions ( closes #703 )
2016-03-17 21:00:16 +01:00
Sébastien Helleu
14e5fc6092
core: check that pointers received in arguments are not NULL in buffers and windows functions
2016-02-28 14:07:33 +01:00
Sébastien Helleu
64ef7e8621
core: fix truncation of buffer names in hotlist ( closes #668 )
2016-02-16 10:19:57 +01:00
Sébastien Helleu
0e6a6a0334
core: move irc bar item "away" and two options to core ( closes #692 )
...
Options moved:
* "irc.look.item_away_message" --> "weechat.look.item_away_message"
* "irc.color.item_away" --> "weechat.color.item_away".
2016-02-15 13:36:16 +01:00
Sébastien Helleu
c9a8f23cc7
core: fix update of window title under tmux ( closes #685 )
2016-02-07 14:07:51 +01:00
Sébastien Helleu
3330724574
core: update copyright dates
2016-01-01 11:09:53 +01:00
Sébastien Helleu
c4e3d66ba5
core: add a parent name in options ( closes #629 )
...
Inherited values are now displayed in /set output when the value is
null, if a parent option name is defined in option.
New option: weechat.color.chat_value_null
2015-12-24 07:53:37 +01:00
Sébastien Helleu
fab0d4e740
core: add option weechat.look.paste_auto_add_newline ( closes #543 )
2015-10-03 12:08:30 +02:00
Sébastien Helleu
8688c48e42
core: display a more explicit error when a filter fails to be added ( closes #522 )
2015-09-09 09:22:40 +02:00
Sébastien Helleu
e179a34a40
core: fix truncated messages after a word with a length of zero on screen (bug #40985 , issue #502 )
2015-08-23 09:50:36 +02:00
Sébastien Helleu
46a9d17ac3
api: add argument "length" in function utf8_is_valid()
2015-08-18 07:36:48 +02:00
Sébastien Helleu
5c5df1b068
core: factorize functions to search text in window
2015-07-26 19:49:35 +02:00
Sébastien Helleu
8e6f525b59
Merge remote-tracking branch 'origin/pr/393'
2015-07-26 11:30:03 +02:00
Sébastien Helleu
74f1592f21
core: add option weechat.look.key_grab_delay to set the default delay when grabbing a key with alt-k
2015-07-26 09:45:40 +02:00
Sébastien Helleu
7572fec261
core: flush stdout/stderr after sending text directly on them (fix corrupted data sent to hook_process() callback) ( closes #442 )
2015-07-25 09:16:08 +02:00
Sébastien Helleu
b99a630705
core: allow execution of command "/input return" on a buffer which is not displayed in a window
2015-07-25 08:20:18 +02:00
Simmo Saan
6e117a1caf
core: allow jump from current to previous buffer with default keys "alt-j NN"
2015-07-24 07:27:18 +02:00
Sébastien Helleu
3b2ee85b04
core: fix crash if a file descriptor used in hook_fd() is too high (> 1024 on Linux/BSD) ( closes #465 )
...
The calls to select() are replaced by poll(), which doesn't have limitation
on file descriptor number.
2015-07-18 20:03:34 +02:00
Sébastien Helleu
b2f0cc30ff
core: fix type of value returned by function gui_bar_window_content_get
2015-07-05 08:32:43 +02:00
Sébastien Helleu
0fb8ac9e7b
core: fix type of value returned by function gui_mouse_grab_event2input
2015-07-04 16:38:26 +02:00
Sébastien Helleu
0c79b2fda8
core: fix type of value returned by functions gui_chat_string_next_char, gui_chat_string_add_offset and gui_chat_string_add_offset_screen
2015-07-04 16:32:18 +02:00
Sébastien Helleu
4ecd8a505f
api: fix type of value returned by functions utf8_prev_char, utf8_next_char and utf8_add_offset
2015-07-04 08:39:55 +02: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
b13db0305d
api: fix type of value returned by function strcasestr
2015-07-03 19:45:51 +02:00
Sébastien Helleu
7fabe8c2a2
core: allow ctrl-C to exit WeeChat when the passphrase is asked on startup ( closes #452 )
2015-06-28 09:16:24 +02:00
Sébastien Helleu
ecc3a2aeb6
core: fix display of invalid UTF-8 chars in bars (issue #218 )
2015-06-27 17:31:30 +02:00
Sébastien Helleu
422958337b
core: fix bar item "scroll" after /buffer clear ( closes #448 )
2015-06-22 20:09:52 +02:00
Sébastien Helleu
60ec9d5d51
core: fix display of time in bare display when option weechat.look.buffer_time_format is set to empty string ( closes #441 )
...
This reverts commit 2498ff63db .
2015-06-14 14:11:15 +02:00
Sébastien Helleu
8d25cd5d34
core: fix compilation on Cygwin
...
The header sys/select.h is now required for select() function.
2015-05-01 09:54:07 +02:00
Sébastien Helleu
71dd64678c
core: add comments after some #endif
2015-04-30 21:15:30 +02:00
Sébastien Helleu
908bde8ac2
core: remove extra spaces in function gui_bar_item_default_mouse_status
2015-04-26 17:06:39 +02:00
Sébastien Helleu
d322389e04
core: add support of full color option name in command /eval and API function string_eval_expression()
2015-04-26 10:29:30 +02:00
Sébastien Helleu
0f333ee630
api: add support of full color option name in function color()
2015-04-26 10:29:22 +02:00
Sébastien Helleu
6c4c4a37fd
core: display the welcome message immediately after the startup message, move source code to weechat.c
2015-04-25 08:38:44 +02:00
Sébastien Helleu
60f2b50117
core: add options weechat.look.quote_{nick_prefix|nick_suffix|time_format} to customize quoted messages in cursor mode ( closes #403 )
2015-04-19 12:02:41 +02:00
Sébastien Helleu
df31147e16
api: add "_chat_line" (line pointer) in hashtable of hook_focus
2015-04-19 10:22:53 +02:00
Sébastien Helleu
32d165f1c4
core: add a welcome message on first WeeChat run ( closes #318 )
2015-04-17 07:57:31 +02:00
Simmo Saan
b87c52240b
core: add more intuitive buffer searching ( closes #76 )
2015-04-12 10:25:09 +03:00
Sébastien Helleu
b2a68af077
core: add options weechat.look.word_chars_{highlight|input} ( closes #55 , task #9459 )
2015-04-11 18:53:44 +02:00
Sébastien Helleu
efebc4d491
core: update comments on default keys
2015-03-08 07:50:34 +01:00
Sébastien Helleu
a6327bc6f2
core: fix random error when creating symbolic link weechat-curses on make install with cmake (bug #40313 )
2015-01-24 16:33:54 +01:00
Sébastien Helleu
ed9e146e46
core: fix crash when a root bar has conditions different from active/inactive/nicklist ( closes #317 )
2015-01-23 21:21:39 +01:00
Sébastien Helleu
ca5aa6695f
core: fix NULL pointer in free of bar window ( closes #293 ); add extra checks on bar window pointers
2015-01-03 19:18:09 +01:00
Sébastien Helleu
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +01:00
Sébastien Helleu
27431e234d
core: check bar conditions in root bars and on each update of a bar item
2014-12-28 11:42:57 +01:00
Sébastien Helleu
0b2be21f1f
core: fully evaluate commands bound to keys in cursor and mouse contexts
2014-12-20 08:07:13 +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