summaryrefslogtreecommitdiff
path: root/src/gui/gui-buffer.c
AgeCommit message (Collapse)Author
2013-12-14core: add logical "and" between tags in filters, weechat.look.highlight_tags ↵Sebastien Helleu
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-11Merge branch 'buffer-auto-renumber'Sebastien Helleu
2013-12-08core: add signal "buffer_cleared"Sebastien Helleu
2013-12-07core: use first gap for new buffer only if the buffer has no layout numberSebastien Helleu
2013-12-07core: add option weechat.look.buffer_positionSebastien Helleu
The value of option can be: - "end": buffer is added after the end of list (number = last number + 1) - "first_gap": buffer is added at first number available in the list (after the end of list if no number is available)
2013-12-04core: add buffer property "day_change" to hide messages for the day change ↵Sebastien Helleu
in specific buffers
2013-12-01core: fix random crash when closing a bufferSebastien Helleu
The problem happened because we used a pointer to a "struct t_gui_buffer_visited" for the switch to another buffer, when the buffer is closed. This is executed in all windows displaying the buffer, but on each switch to buffer, the visited buffers are updated and therefore the address can change. The pointer becomes invalid, and WeeChat still uses it on next windows for the buffer switch. It happened rarely because the visited buffer is freed and allocated immediately after, so the address is often the same in memory. Thanks to silverd for the tests on OS X to track the problem.
2013-11-30core: add limits for buffers (max 10000 buffers opened, number of a buffer: ↵Sebastien Helleu
between 1 and INT_MAX - 10000)
2013-11-30core: fix crash when moving buffer with only one buffer (core buffer)Sebastien Helleu
2013-11-30core: add variable "gui_buffers_count", use it in bar item "buffer_count"Sebastien Helleu
Now the bar item "buffer_count" displays the number of opened buffers (each merged buffer counts 1).
2013-11-30core: add option weechat.look.buffer_auto_renumberSebastien Helleu
New option: weechat.look.buffer_auto_renumber, boolean which is on by default, so the behavior is the same: no gap is allowed in numbers, they start at number 1 and they are auto-renumbered after each command like /buffer move, /buffer merge, ... A new option "renumber" has been added in command /buffer, to renumber a range of buffers (or all). Changes when the option weechat.look.buffer_auto_renumber is off: - command "/buffer move": - the current number will be left free for use, and the target number can be any number >= 1 (possibly higher than the current last buffer number) - the value can be "-" (which moves the buffer to number 1) or "+" (which moves the buffer to the end, ie last number + 1) - command "/buffer swap": - now the buffers are swapped in the list without being "moved" - comand "/buffer [+/-]N": - it is now working with gaps in buffer numbers - command "/buffer merge": - it can now merge a group of merged buffers into another buffer (or buffers merged themselves) - layout can restore buffer numbers with gaps in numbers
2013-11-28core: revert check of layout when switching to a buffer using value "auto" ↵Sebastien Helleu
in buffer_set This reverts commits 14cf7bd20fb3f00b18343464c175a0c4e3556149 and 262dff4b87ebf14a11fe83899fe168bc5a72ffe6. The initial fix was for a problem with irc autojoin and layout: the current window has not appropriate buffer (as defined in layout) if it is not the latest channel in "autojoin" option. So the way to fix this problem is to set the value of option irc.look.buffer_switch_autojoin to off.
2013-10-27core: fix auto-apply of window layout in current window when option ↵Sebastien Helleu
irc.look.buffer_switch_autojoin is on
2013-08-17core: add search of regular expression in buffer, don't reset search type on ↵Sebastien Helleu
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-10core: optimize the removal of lines in buffers (a lot faster to clear/close ↵Sebastien Helleu
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-04-18api: add property "completion_freeze" for function buffer_set: do not stop ↵Sebastien Helleu
completion when command line is updated
2013-03-17core: fix refresh of item "completion" (bug #38214) (patch from Nils Görs)Sebastien Helleu
The item is now cleared after any action that is changing content of command line and after switch of buffer.
2013-03-17core: fix typos in many comments and some stringsSebastien Helleu
2013-03-17core: add support of multiple layouts (task #11274)Sebastien Helleu
2013-03-03core: add count for groups, nicks, and total in nicklistSebastien Helleu
2013-02-07core: fix structures before buffer data when a buffer is closedSebastien Helleu
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-01-26core: use size of 32 for hashtables (instead of 4, 8 or 16)Sebastien Helleu
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-01core: update copyright datesSebastien Helleu
2012-12-15core: move comments with description of C file to top of filesSebastien Helleu
2012-12-13core: reformat comments for functionsSebastien Helleu
2012-12-08api: allow creation of structure with hdata_update (allowed for hdata "history")Sebastien Helleu
2012-10-18core: fix display of zoomed/merged buffer (with number >= 2) after switching ↵Sebastien Helleu
to it (bug #37593)
2012-08-30core: add default key alt+"x" (zoom on merged buffer) (task #11029)Sebastien Helleu
2012-08-27api: allow update for some variables of hdata, add new functions ↵Sebastien Helleu
hdata_update and hdata_set
2012-07-29core: add option "swap" for command /buffer (task #11373)Nils Görs
2012-07-20core: add support of arrays in hdata variablesSebastien Helleu
2012-06-14core: add callback "nickcmp" for nick comparison in buffersSebastien Helleu
2012-04-03core: fix bugs with option weechat.look.prefix_same_nick, use nick color for ↵Sebastien Helleu
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-03-28core: add option weechat.look.prefix_same_nick (hide or change prefix on ↵Sebastien Helleu
messages whose nick is the same as previous message) (task #11965)
2012-03-05api: add list "gui_buffer_last_displayed" in hdata "buffer"Sebastien Helleu
2012-02-19core: fix memory leak when closing bufferSebastien Helleu
2012-01-22core: add support of flags in regular expressions and highlight options, add ↵Sebastien Helleu
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-08core: update copyright datesSebastien Helleu
2011-12-19core: add type "hashtable" for hdata, new api functions: hdata_hashtable and ↵Sebastien Helleu
hashtable_map_string
2011-11-21core: add "full_name" in buffer structureSebastien Helleu
2011-11-08core: add option "jump_last_buffer_displayed" for command /input (key: ↵Sebastien Helleu
alt+"/") (task #11553)
2011-10-26core: remove unneeded whitespaceSebastien Helleu
2011-08-28core: fix bugs with calls to reallocSebastien Helleu
2011-08-20core: add functions "key_bind" and "key_unbind" in plugin APISebastien Helleu
2011-08-18core: remove some compilation warnings under CygwinSebastien Helleu
2011-08-14core: add buffer property "short_name_is_set", return name if short name is ↵Sebastien Helleu
not set (in buffer infolist or property)
2011-08-14core: allow empty short name on buffers (name is used if not set)Sebastien Helleu
2011-08-06core: add "layout_number_merge_order" in buffer properties that can be readSebastien Helleu
2011-08-05core: save and restore layout for buffers and windows on /upgradeSebastien Helleu
2011-08-05core: fix unwanted merge of buffers when no layout number is assigned to bufferSebastien Helleu