1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00
Commit Graph

231 Commits

Author SHA1 Message Date
Sebastien Helleu 14cf7bd20f core: fix auto-apply of window layout in current window when option irc.look.buffer_switch_autojoin is on 2013-10-27 11:07:33 +01: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 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 c95f3d84d0 api: add property "completion_freeze" for function buffer_set: do not stop completion when command line is updated 2013-04-18 20:24:35 +02:00
Sebastien Helleu 3e1d811761 core: fix refresh of item "completion" (bug #38214) (patch from Nils Görs)
The item is now cleared after any action that is changing content of command
line and after switch of buffer.
2013-03-17 19:44:39 +01:00
Sebastien Helleu 149c77decd core: fix typos in many comments and some strings 2013-03-17 12:55:20 +01:00
Sebastien Helleu 30e6acb00d core: add support of multiple layouts (task #11274) 2013-03-17 08:28:41 +01:00
Sebastien Helleu 8b925baa3c core: add count for groups, nicks, and total in nicklist 2013-03-03 11:30:58 +01:00
Sebastien Helleu d4b1b50311 core: fix structures before buffer data when a buffer is closed
This was causing a bug in relay plugin (weechat protocol): when a buffer was
closed, local variables were removed after buffer name, and when signal is sent
to client, the buffer name was wrong (already freed).
2013-02-07 22:11:25 +01:00
Sebastien Helleu 25eaec3864 core: use size of 32 for hashtables (instead of 4, 8 or 16)
A size of 32 will use a little more memory but will reduce collisions in key
hashs, and then length of linked lists inside hash structure (faster search in
hashtable).
2013-01-26 19:26:43 +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 93d3198b70 core: fix display of zoomed/merged buffer (with number >= 2) after switching to it (bug #37593) 2012-10-18 10:25:34 +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
Nils Görs ee74131f69 core: add option "swap" for command /buffer (task #11373) 2012-07-29 20:08:52 +02:00
Sebastien Helleu eab0110732 core: add support of arrays in hdata variables 2012-07-20 18:12:07 +02:00
Sebastien Helleu d66555f387 core: add callback "nickcmp" for nick comparison in buffers 2012-06-14 20:06:42 +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 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 39787d483a api: add list "gui_buffer_last_displayed" in hdata "buffer" 2012-03-05 08:02:55 +01:00
Sebastien Helleu 205a869598 core: fix memory leak when closing buffer 2012-02-19 19:15:14 +01:00
Sebastien Helleu 5f6df8021b core: add support of flags in regular expressions and highlight options, add irc options to customize/disable default nick highlight (task #11128)
New functions in C plugin API:
- string_regex_flags
- string_regcomp

New irc options:
- irc.look.highlight_server
- irc.look.highlight_channel
- irc.look.highlight_pv

Regex flags are supported in following options/commands:
- option weechat.look.highlight
- option weechat.look.highlight_regex
- options irc.look.highlight_{server|channel|pv}
- option relay.network.allowed_ips
- core command /filter
- irc command /list
- irc command /ignore
- rmodifier command /rmodifier
2012-01-22 13:48:42 +01:00
Sebastien Helleu 47e4a03be6 core: update copyright dates 2012-01-08 18:59:50 +01:00
Sebastien Helleu 6f3fd239be core: add type "hashtable" for hdata, new api functions: hdata_hashtable and hashtable_map_string 2011-12-19 22:39:24 +01:00
Sebastien Helleu 6f6e1569cd core: add "full_name" in buffer structure 2011-11-21 17:55:30 +01:00
Sebastien Helleu 2c6d525045 core: add option "jump_last_buffer_displayed" for command /input (key: alt+"/") (task #11553) 2011-11-08 18:51:15 +01:00
Sebastien Helleu dfdf42e27b core: remove unneeded whitespace 2011-10-26 20:37:03 +02:00
Sebastien Helleu f843f904bc core: fix bugs with calls to realloc 2011-08-28 15:25:30 +02:00
Sebastien Helleu 44f2b7caf4 core: add functions "key_bind" and "key_unbind" in plugin API 2011-08-20 10:52:27 +02:00
Sebastien Helleu aa948c76a3 core: remove some compilation warnings under Cygwin 2011-08-18 11:09:46 +02:00
Sebastien Helleu 5073cd3476 core: add buffer property "short_name_is_set", return name if short name is not set (in buffer infolist or property) 2011-08-14 16:04:12 +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 6b4416042b core: add "layout_number_merge_order" in buffer properties that can be read 2011-08-06 23:05:43 +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 982db541ec core: fix unwanted merge of buffers when no layout number is assigned to buffer 2011-08-05 13:23:43 +02:00
Sebastien Helleu d27c459c1d core: fix bugs with automatic layout (bug #26110), add support of merged buffers in layout (task #10893) 2011-08-05 13:18:03 +02:00
Sebastien Helleu 6442302f3f core: add option -all for command /buffer unmerge 2011-08-04 17:24:53 +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 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 97de735761 core: remove unused variables 2011-05-01 10:55:10 +02:00
Sebastien Helleu d6e4b2cc87 core: add date and date_printed of each line in dump of buffers 2011-04-24 18:07:56 +02:00
Sebastien Helleu 175a4e2fa5 core: recalculate buffer_max_length when buffer short name is changed (patch #7441) 2011-04-24 10:25:45 +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
Sebastien Helleu 176454afa1 core: add prefix in addition of message in output of /debug buffer 2011-04-07 14:56:29 +02:00