Sébastien Helleu
c98d12b4af
core: rename variables with creation time in hdata "hotlist"
...
Variables renamed:
- "creation_time.tv_sec" -> "time"
- "creation_time.tv_usec" -> "time_usec"
2024-03-15 21:32:37 +01:00
Sébastien Helleu
305b046370
core: add macro to define hdata variable with different field and name
2024-03-15 21:32:35 +01:00
Sébastien Helleu
080eecef2c
core: add missing hdata name "buffer" in hdata "hotlist"
2024-03-15 21:32:32 +01:00
Sébastien Helleu
fe01faa9ab
core: update ChangeLog (issue #2093 )
2024-03-13 13:51:22 +01:00
Trygve Aaberge
811390ebb1
core: make search_stop scroll to search start position
...
When you run /input search_stop it should scroll to the scroll position
the buffer was at before starting the search, rather than to the bottom
of the buffer.
Fixes a regression introduced in commit b83b428c5c
Fixes #2093
2024-03-13 13:50:04 +01:00
Sébastien Helleu
dd128dace8
core: update ChangeLog ( closes #1906 )
2024-03-13 13:14:40 +01:00
wfrsk
4d83adc7d8
lua: fix code style
2024-03-13 13:10:07 +01:00
wfrsk
fd541395f4
lua: do not depend on an init script + rework weechat_lua_output
2024-03-13 13:02:29 +01:00
wfrsk
97f87932fe
lua: do not load the debug library
2024-03-13 13:02:29 +01:00
wfrsk
b0581ac1f8
lua: do not depend on luaL_openlibs
2024-03-13 13:02:29 +01:00
Sébastien Helleu
3b9e2f480d
tests: reorder tests on core directory functions
2024-03-13 13:01:50 +01:00
Mario Campos
f76d236015
GUI: fix potential integer overflow bugs by casting to size_t
2024-03-13 09:09:29 +01:00
Mario Campos
1797fe18a3
fset: replace call to chmod() by fchmod() in the export function
2024-03-13 07:19:55 +01:00
Mario Campos
63733d81d8
core: open the file exclusively in compress file functions
...
This also removes the unnecessary call to access() function before the call to
fopen().
2024-03-13 07:17:02 +01:00
Mario Campos
23e0533ea1
core: remove unnecessary call to stat() in hash file function
...
The call to fopen() will fail anyway if the file doesn't exist.
2024-03-13 07:15:12 +01:00
Sébastien Helleu
24c4029c96
core: remove "wee-" prefix from source files in src/core and src/core/hook
2024-03-12 21:27:37 +01:00
Sébastien Helleu
bb346f8c6c
relay/api: replace "context" by "buffer_id" (issue #2081 )
2024-03-12 20:37:52 +01:00
Sébastien Helleu
48ca390f79
relay/api: add support of buffer id in POST /api/input (issue #2081 )
2024-03-12 20:37:51 +01:00
Sébastien Helleu
aa989767a1
relay/api: add support of buffer id in GET /api/buffers (issue #2081 )
2024-03-12 20:37:50 +01:00
Sébastien Helleu
7ad3c1979c
tests/relay/api: add buffer id in test of buffer to json function (issue #2081 )
2024-03-12 20:37:48 +01:00
Sébastien Helleu
99f0a2e002
tests/relay/api: add tests on API protocol
2024-03-12 20:37:48 +01:00
Sébastien Helleu
6325add517
tests/relay/irc: use port 9001 for server relay
2024-03-12 20:37:48 +01:00
Sébastien Helleu
e791535773
relay: add a fake send function in client
...
This will be used in unit tests to get the data that is sent to clients.
2024-03-12 20:37:48 +01:00
Sébastien Helleu
0ac377d306
relay/api: add a global variable to customize the command delay in POST /api/input
...
The user can not change this, the variable will be set to 0 in unit tests to
execute the command immediately.
2024-03-12 20:37:48 +01:00
Sébastien Helleu
59c977ddc9
relay/api: check that "request" field is a string in JSON received (websocket connection)
2024-03-12 20:37:48 +01:00
Sébastien Helleu
4f9bcc73ca
relay/api: allow POST /api/handshake without a body
2024-03-12 20:37:48 +01:00
Sébastien Helleu
8c5db76271
relay/api: fix error displayed when buffer is not found in POST /api/input
2024-03-12 20:37:48 +01:00
Sébastien Helleu
80709292d4
tests/relay/irc: fix comments
2024-03-12 20:37:48 +01:00
Sébastien Helleu
f2f6afb59c
tests/relay/irc: remove unused calls to record functions
2024-03-12 20:37:48 +01:00
Sébastien Helleu
3045322822
relay/weechat: add buffer id in signals sent to clients (issue #2081 )
2024-03-12 20:37:47 +01:00
Sébastien Helleu
29d4bc3102
relay/api: add buffer is in response to GET /api/buffers (issue #2081 )
2024-03-12 20:37:45 +01:00
Sébastien Helleu
f9e8c7faab
api: allow search by buffer id in function buffer_search (issue #2081 )
2024-03-12 20:37:44 +01:00
Sébastien Helleu
5af0415508
core: add function gui_buffer_search_by_id (issue #2081 )
2024-03-12 20:37:42 +01:00
Sébastien Helleu
c71e6a50eb
core: rename function gui_buffer_search_by_name to gui_buffer_search (issue #2081 )
2024-03-12 20:37:40 +01:00
Sébastien Helleu
4ffd62b206
core: add unique "id" in buffer (issue #2081 )
...
The id is a "long long" variable with the current time (microseconds
precision).
It is guaranteed to be unique for all buffers, and the same number is never
used again, during the lifetime of the process.
It persists and is unchanged after `/upgrade`.
2024-03-12 20:37:36 +01:00
Sébastien Helleu
afc4dff71b
core: use dynamic string in function infolist_fields
2024-03-12 20:37:36 +01:00
Sébastien Helleu
9e0dd18152
api: add function "hdata_longlong" (issue #2081 )
2024-03-12 20:37:11 +01:00
Nils Görs
c85b57b8b3
core: update German translations
2024-03-12 17:16:36 +01:00
Sébastien Helleu
34e99987bf
doc/user: clarify what is ${nick} in trigger IRC signal data
2024-03-11 07:20:38 +01:00
Sébastien Helleu
1ab62e37cb
api: add modifier "color_decode" to decode WeeChat colors with a replacement string
2024-03-10 09:31:32 +01:00
Sébastien Helleu
3f49b1b44a
core: use whole replacement string instead of first char in function gui_color_decode
2024-03-10 09:21:28 +01:00
Sébastien Helleu
431cf23a0c
exec: remove trailing space on buffers with free content when line numbers are not displayed
2024-03-08 08:19:20 +01:00
Sébastien Helleu
a6c509611a
exec: add missing exec tags in lines of buffers with free content ( closes #2086 )
2024-03-07 21:52:21 +01:00
Nils Görs
ec56a1103f
doc: update German documentation
2024-03-07 12:04:05 +01:00
Nils Görs
ccc5c75a03
core: update German translations
2024-03-07 11:52:22 +01:00
Sébastien Helleu
732887cef7
doc/plugin: add missing translation comments
2024-03-07 07:32:20 +01:00
Sébastien Helleu
cb6ecb6818
core: check if malloc.h is present, independently of function malloc_trim
2024-03-06 23:09:00 +01:00
Sébastien Helleu
70828a7dd1
irc: add option -all in command /allchan, do not execute command on parted channels by default ( closes #2085 )
2024-03-06 23:03:02 +01:00
Sébastien Helleu
ab2e29fb0f
core: include header malloc.h only if function malloc_trim is available
2024-03-06 22:52:43 +01:00
Sébastien Helleu
8c1df496ae
core: update translations
2024-03-06 22:41:42 +01:00