Sébastien Helleu
705d86e684
core: update copyright dates
2017-01-01 11:32:04 +01: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
8e6f525b59
Merge remote-tracking branch 'origin/pr/393'
2015-07-26 11:30:03 +02:00
Sébastien Helleu
422958337b
core: fix bar item "scroll" after /buffer clear ( closes #448 )
2015-06-22 20:09:52 +02:00
Simmo Saan
b87c52240b
core: add more intuitive buffer searching ( closes #76 )
2015-04-12 10:25:09 +03:00
Sébastien Helleu
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +01:00
Sébastien Helleu
24c4c04741
core: fix buffer property "lines_hidden" when merging buffers or when a line is removed from a buffer ( closes #226 )
2014-11-01 10:23:33 +01:00
Sébastien Helleu
1a20ef41c0
core: fix highlight of IRC action messages when option irc.look.nick_mode is set to "action" or "both" ( closes #206 )
2014-09-21 11:52:58 +02:00
Sébastien Helleu
37200b46e8
core: add parentheses around tests in conditions
2014-05-08 10:51:26 +02:00
stfn
cc03a85744
core: add support for negated tags in filters ( closes #72 )
2014-05-07 13:07:59 +02:00
Sebastien Helleu
5c1e5988f9
core: fix alignment of lines in merged buffers ( closes #43 )
...
The bug happened when options weechat.look.prefix_align and
weechat.look.prefix_buffer_align are set to "none".
2014-03-29 20:26:49 +01:00
Sebastien Helleu
437767c0ca
api: add integer return code for functions hook_{signal|hsignal}_send
2014-02-10 17:42:53 +01:00
Sebastien Helleu
b91378fedc
core: use structure itself for sizeof in two malloc
2014-02-04 08:34:05 +01:00
Sebastien Helleu
846dde00aa
core: fix crash with hdata_update on shared strings, add hdata type "shared_string" (bug #41104 )
2014-01-05 14:37:27 +01:00
Sebastien Helleu
892aa79fb5
core: update copyright dates
2014-01-01 00:14:12 +01:00
Sebastien Helleu
d52d214448
core: add buffer property "highlight_tags_restrict", rename option irc.look.highlight_tags to irc.look.highlight_tags_restrict
...
The buffer property "highlight_tags" is renamed to "highlight_tags_restrict".
New behavior for buffer property "highlight_tags": force highlight on tags.
Option irc.look.highlight_tags is renamed to irc.look.highlight_tags_restrict.
2013-12-15 13:45:40 +01:00
Sebastien Helleu
811b68991e
core: add logical "and" between tags in filters, weechat.look.highlight_tags and buffer property "highlight_tags"
...
The logical "and" is made with the separator "+".
Example: "irc_notice+nick_toto,nick_test"
will match a notice from nick "toto" or any message from nick "test".
2013-12-14 11:26:03 +01:00
Sebastien Helleu
e2605cf77b
core: fix highlight on action messages: skip the nick at beginning to prevent highlight on it (bug #40516 )
2013-11-08 18:22:36 +01:00
Sebastien Helleu
0409faee7f
Merge branch 'shared-strings'
2013-09-02 15:24:20 +02:00
Sebastien Helleu
af12457a13
core: use shared strings for prefix on lines
...
It can reduce by about 10% the memory used for lines in a buffer.
2013-08-17 17:47:38 +02:00
Sebastien Helleu
600ee3ddf3
core: add search of regular expression in buffer, don't reset search type on a new search, select where to search (messages/prefixes)
...
Key changed in search context:
- ctrl+"r": switch search type: string/regex
New keys in search context:
- alt+"c": case (in)sensitive search
- tab: search in messages/prefixes/both
2013-08-17 11:51:50 +02:00
Sebastien Helleu
674403f734
core: use shared strings for tags on lines
...
It can reduce by about 30% the memory used for lines in a buffer.
2013-08-10 18:20:49 +02:00
Sebastien Helleu
6714d6fc82
core: optimize the removal of lines in buffers (a lot faster to clear/close buffers with lot of lines)
...
The update of variables "buffer_max_length" and "prefix_max_length" in struct
t_gui_lines is now delayed and made during the main refresh (in main loop).
For a buffer with 50K lines, it is up to 3300 times faster to clear/close it.
For a buffer with 4096 lines (default limit), it is up to 120 times faster.
2013-08-10 17:18:12 +02:00
Sebastien Helleu
c070481d0b
core: fix random crash on mouse actions (bug #39094 )
2013-05-30 20:14:41 +02:00
Sebastien Helleu
2e43bac479
core: fix line alignment when option weechat.look.buffer_time_format is set to empty string
...
A regression was introduced by commit 305175fb8c
2013-05-21 11:07:15 +02:00
Sebastien Helleu
305175fb8c
core: fix display of long lines without time (message beginning with two tabs)
...
The long lines without time were not properly aligned: the second and subsequent
lines should start at column 0 of chat area.
2013-05-01 16:46:54 +02:00
Sebastien Helleu
16cc0b6088
core: make nick prefix/suffix dynamic (move options from irc plugin to core, add logger options) (bug #37531 )
2013-04-29 18:30:59 +02:00
Sebastien Helleu
149c77decd
core: fix typos in many comments and some strings
2013-03-17 12:55:20 +01:00
Sebastien Helleu
1cdbc27abf
core: fix refresh of line after changes with hdata_update (update flag "displayed" according to filters)
2013-02-04 08:29:57 +01:00
Sebastien Helleu
f97598b4aa
core: update copyright dates
2013-01-01 13:12:49 +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
f42b3d382f
core: fix display problem when option weechat.look.prefix_same_nick is set (problem with nick displayed in first line of screen) (bug #37556 )
...
To fix this bug, a feature has been removed: the first message with a nick has
the prefix forced (to not display the value of weechat.look.prefix_same_nick on
top of screen), commit was: 04e98c3f29
This feature may be reintroduced in a future commit.
2012-10-17 16:34:21 +02:00
Sebastien Helleu
e1a54d49eb
core: add default key alt+"x" (zoom on merged buffer) (task #11029 )
2012-08-30 10:46:42 +02:00
Sebastien Helleu
df80aa5fc9
api: allow update for some variables of hdata, add new functions hdata_update and hdata_set
2012-08-27 09:47:46 +02:00
Sebastien Helleu
bfabcd68c8
core: fix use of unitialized value (line->data->display) when adding a line in buffer
2012-08-14 10:08:16 +02:00
Sebastien Helleu
eab0110732
core: add support of arrays in hdata variables
2012-07-20 18:12:07 +02:00
Sebastien Helleu
44acc36e7d
core: fix typo in comment
2012-07-17 22:36:11 +02:00
Sebastien Helleu
d8c9013aff
core: fix color of nicks in buffers without nicklist when option weechat.look.color_nick_offline is on
2012-06-09 11:31:06 +02:00
Sebastien Helleu
200652836b
core: add options to use different color for offline nicks in prefix (patch from Nei) (task #11109 )
...
New options:
- weechat.look.color_nick_offline: boolean to enable feature (off by default)
- weechat.color.chat_nick_offline: color for offline nicks (displayed in prefix)
2012-06-09 08:53:50 +02:00
Sebastien Helleu
04e98c3f29
core: force display of prefix on first line displayed in window (even if it should be hidden by option weechat.look.prefix_same_nick)
2012-05-22 07:59:59 +02:00
Sebastien Helleu
5459e6595a
core: fix bugs with option weechat.look.prefix_same_nick, use nick color for string used as replacement
...
Bugs fixed:
- hide/replace prefix only if prefix is a nick (do not do it for join/part/quit or action messages)
- hide/replace prefix only when displaying messages (do not cache value in lines)
The nick color used in replacement string comes from tag "prefix_nick_ccc", where "ccc" is the color of nick.
2012-04-03 21:22:53 +02:00
Sebastien Helleu
7038630b6d
core: fix bug with option weechat.look.prefix_same_nick and filtered lines
2012-04-01 08:39:11 +02:00
Sebastien Helleu
67115edf3d
core: add option weechat.look.prefix_same_nick (hide or change prefix on messages whose nick is the same as previous message) (task #11965 )
2012-03-28 18:07:15 +02:00
Sebastien Helleu
47e4a03be6
core: update copyright dates
2012-01-08 18:59:50 +01:00
Sebastien Helleu
f0b8181395
core: add signal "buffer_line_added"
2011-12-17 17:34:45 +01:00
Sebastien Helleu
c40a281ce4
core: fix type of variables in hdata "line_data" (type integer -> char)
2011-11-25 15:23:28 +01:00
Sebastien Helleu
6f6e1569cd
core: add "full_name" in buffer structure
2011-11-21 17:55:30 +01:00