Sébastien Helleu
6e19e9d8b2
core: remove use of arraylist in function gui_buffer_merge
2024-11-04 18:39:54 +01:00
Sébastien Helleu
9f6caa4e03
core: send signal "buffer_moved" only when the buffer number changes (issue #2097 )
2024-11-04 18:00:59 +01:00
Sébastien Helleu
74cc16ef07
core: fix too many sorts of hotlist when buffers are moved (issue #2097 )
...
A performance issue was happening when buffers are moved to another position
and when the hotlist contains a lot of buffers: each time a signal
"buffer_moved" is sent, the hotlist is sorted again.
This fix delays the resort of hotlist after all the moves are done using a
timer with a very small delay (one millisecond).
2024-11-03 23:42:57 +01:00
Sébastien Helleu
1fc8c551d8
core: add property hotlist_conditions in completion for /buffer set
2024-11-03 22:47:37 +01:00
Sébastien Helleu
2dea224a38
api: add property hotlist_conditions in function buffer_set
2024-10-31 22:08:13 +01:00
Emil Velikov
fec71ae30c
cmake: use pkg_check_modules() for cURL
...
The cURL project has provided a pkg-config file for well over a decade
now. Just use that instead of the cmake one, since the latter also
checks for misc curl components, unusual library names (libcurl_imp)
which is not something we need.
In addition, this will make enforcing minimum version much easier.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
2024-10-13 13:33:47 +02:00
Sébastien Helleu
8223da0fe6
core: always send the signal "buffer_switch", even when the buffer is opening ( closes #2198 )
2024-10-06 20:57:54 +02:00
Emil Velikov
d42d837924
build: remove CMake variable "STATIC_LIBS"
...
With the circular dependency resolved, we no longer need this variable.
Add the respective objects directly, in the same order as seen in the
tests.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
2024-09-29 10:01:10 +02:00
Emil Velikov
fc7b00562c
build: require CMake 3.12, resolve circular dependency
...
In order to resolve the circular dependency, we need to annotate the
respective static libraries as "object" libraries.
This requires cmake 3.12, where Debian 10 (old old stable) and Ubuntu
20.04 have 3.13 and 3.16 respectively.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
2024-09-29 10:00:50 +02:00
Josh Soref
7415eaa1f1
spelling: starting
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2024-09-28 21:22:56 +02:00
Josh Soref
c28696e602
spelling: case-sensitive
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2024-09-28 18:22:41 +02:00
Josh Soref
0505a0ff76
spelling: case-insensitive
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2024-09-28 18:22:41 +02:00
Josh Soref
4ef3011ea9
spelling: cannot
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2024-09-28 18:22:02 +02:00
Josh Soref
ef107fd66d
spelling: anymore
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2024-09-28 18:20:02 +02:00
Josh Soref
d3ceabf5de
spelling: an
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2024-09-28 17:34:04 +02:00
Sébastien Helleu
5564baf424
core: fix integer overflow in loops (issue #2178 )
2024-09-07 08:39:37 +02:00
Sébastien Helleu
143f694fe2
core, plugins: add missing parentheses when dereferencing a pointer with an array index
2024-09-05 20:57:29 +02:00
Sébastien Helleu
c8dffad56c
core: add signals "layout_buffers_applied" and "layout_windows_applied" ( closes #2167 )
2024-08-16 12:36:31 +02:00
Sébastien Helleu
0182153511
core: send signal "buffer_moved" for all buffers affected by merge/unmerge
2024-08-15 21:35:38 +02:00
Sébastien Helleu
aeac9f02f9
core: add signal "buffer_time_for_each_line_changed"
2024-08-10 14:27:53 +02:00
Sébastien Helleu
24734c4fe0
relay/api: add field "tmie_displayed" in GET /api/buffers
2024-08-10 13:58:58 +02:00
Sébastien Helleu
e9d46b41a1
api: send new signal "buffer_line_data_changed" when a line is updated in a buffer via hdata
2024-06-27 20:55:42 +02:00
Sébastien Helleu
f076db4767
api: add function line_search_by_id
2024-06-27 20:55:42 +02:00
Sébastien Helleu
c6a4ffb1a7
core: fix crash when deleting a bar that has no items ( closes #2138 )
2024-06-27 18:52:12 +02:00
Sébastien Helleu
bdfa1bd51c
core, plugins: return "0x0" instead of "(nil)" for pointers formatted in strings
...
This is a partial revert of the commit
965beb37de .
2024-06-22 08:54:08 +02:00
Sébastien Helleu
0d8e3a48ee
core: apply buffer properties (options weechat.buffer.*) when a buffer name is changed
2024-06-19 21:42:38 +02:00
Sébastien Helleu
1fcf5ac5b3
core, plugins: force "short_name" in buffers to non-empty value (name by default), remove buffer property "short_name_is_set"
2024-06-18 20:34:58 +02:00
Sébastien Helleu
e64ab3c675
core, plugins: replace "%lx" by "%p" in calls to sscanf
2024-06-14 17:59:02 +02:00
Sébastien Helleu
24e023d467
core: fix id of core buffer in hashtable gui_buffer_by_id after /upgrade
2024-06-11 08:13:20 +02:00
Sébastien Helleu
9b356733a9
core: allow buffer id in commands /buffer and /print, in addition to number and name
2024-06-11 08:03:09 +02:00
Sébastien Helleu
8366c32b0a
core: add hashtable to quickly find buffers by id
2024-06-10 23:55:34 +02:00
Sébastien Helleu
26c01e30c3
core, plugins: remove unneeded break after return
2024-06-10 15:10:25 +02:00
Sébastien Helleu
023a3b90fa
core: fix refresh of bar item "scroll" in root bar after /buffer clear ( closes #590 )
2024-06-10 14:29:29 +02:00
Sébastien Helleu
5c79933faa
core: add bar item "lag"
...
This bar item is overridden by the irc bar item with the same name, but it used
on relay remote buffers, so that the lag is visible as well.
2024-05-16 07:58:52 +02:00
Sébastien Helleu
761d2dec12
core: send signal "buffer_localvar_{added|changed}" only if local variable has been added or changed
2024-05-16 07:16:11 +02:00
Sébastien Helleu
dcb8fcb6ed
irc: rename option irc.color.item_channel_modes to weechat.color.status_modes
2024-05-12 12:46:32 +02:00
Sébastien Helleu
e7b2d98b6e
core: add buffer property "modes"
2024-05-12 09:26:10 +02:00
Sébastien Helleu
464b019929
core: restore buffer input prompt on /upgrade
2024-05-12 01:31:54 +02:00
Sébastien Helleu
1a0b9427e0
core: fix conversion of WeeChat bar colors to ANSI colors
2024-05-11 14:05:52 +02:00
Sébastien Helleu
32b01a606c
core: fix conversion of WeeChat "default" color to ANSI color
2024-05-11 14:05:52 +02:00
Sébastien Helleu
7634774327
core: add buffer property "input_prompt"
2024-05-10 08:54:03 +02:00
Sébastien Helleu
1a8c40826e
core: refresh buffer only if nicklist_display_groups has changed
2024-05-08 13:29:12 +02:00
Sébastien Helleu
d14bc12282
core: refresh buffer only if nicklist has changed
2024-05-08 13:28:47 +02:00
Sébastien Helleu
0c9bbb5d4f
core: refresh buffer only if time_for_each_line has changed
2024-05-08 13:28:24 +02:00
Sébastien Helleu
df52b57c33
core: add function gui_buffer_set_filter
2024-05-08 13:23:50 +02:00
Sébastien Helleu
7addd1bf00
core: add function gui_buffer_set_input
2024-05-08 13:19:40 +02:00
Sébastien Helleu
1050ba851f
core: fix buffer title comparison in function gui_buffer_set_title
2024-05-08 12:50:08 +02:00
Sébastien Helleu
103684b15e
core: merge conditions in function gui_buffer_set_type
2024-05-08 12:49:17 +02:00
Sébastien Helleu
7546ee08ca
core: fix buffer short name comparison in function gui_buffer_set_short_name
2024-05-08 12:48:21 +02:00
Sébastien Helleu
1aeea38355
core: fix buffer name comparison in function gui_buffer_set_name
2024-05-08 12:09:26 +02:00