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
Sebastien Helleu
f211a839f6
core: rename options weechat.history.{max_lines|max_minutes} to weechat.history.{max_buffer_lines_number|max_buffer_lines_minutes}
2011-11-05 12:53:29 +01:00
Sebastien Helleu
d16d11b392
core: add option weechat.history.max_minutes: maximum number of minutes in history per buffer (task #10900 ) (patch from Quentin Pradet)
2011-11-01 19:30:30 +01:00
Sebastien Helleu
dfdf42e27b
core: remove unneeded whitespace
2011-10-26 20:37:03 +02:00
Sebastien Helleu
be137ba3fc
core: add missing assignment of buffer pointer in line structure
2011-09-20 17:15:03 +02:00
Sebastien Helleu
cc3a4834d0
core: allow empty short name on buffers (name is used if not set)
2011-08-14 13:20:03 +02:00
Sebastien Helleu
1cb7c6a6c5
core: return info about line/word for chat area in focus hashtable, add keys m/q/Q to quote line in cursor mode, sort mouse keys by priority
2011-08-14 11:30:08 +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
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
52d7770ff1
core: add local variable "highlight_regex" in buffers
2011-06-15 17:43:46 +02:00
Sebastien Helleu
c8b2a6a084
core: add "hdata" (direct access to WeeChat/plugin data)
2011-06-13 12:32:27 +02:00
Sebastien Helleu
70b0f12469
core: add buffer to hotlist if away is set on buffer (even if buffer is displayed) (task #10948 ), do not update hotlist during upgrade
2011-04-23 17:23:17 +02:00
Sebastien Helleu
9d128cad22
core: add messages counts in hotlist for each buffer, option weechat.look.hotlist_buffer_separator and tag "notify_none"
...
New options:
- weechat.look.hotlist_buffer_separator
- weechat.look.hotlist_count_max
- weechat.look.hotlist_count_min_msg
- weechat.color.status_count_msg
- weechat.color.status_count_private
- weechat.color.status_count_highlight
- weechat.color.status_count_other
2011-04-11 13:57:00 +02:00