summaryrefslogtreecommitdiff
path: root/tests/unit/core
AgeCommit message (Collapse)Author
2024-04-26plugins: remove check of NULL pointers before calling ↵Sébastien Helleu
weechat_arraylist_free() (issue #865)
2024-04-12core: add support for $XDG_STATE_HOME90
2024-04-07api: add function "asprintf"Sébastien Helleu
2024-04-07buffer: add property `input_get_any_user_data` in buffer (issue #2066)Sébastien Helleu
This allows buffers to get any user input, including commands, that are sent to the buffer callback instead of being executed on the buffer.
2024-04-01core: fix print of pointer valuesSébastien Helleu
2024-03-24core: fix tests on function strftimeval on AlpineSébastien Helleu
2024-03-15tests: add hdata tests with struct timevalSébastien Helleu
2024-03-13tests: reorder tests on core directory functionsSébastien Helleu
2024-03-12core: remove "wee-" prefix from source files in src/core and src/core/hookSébastien Helleu
2024-03-12api: add function "hdata_longlong" (issue #2081)Sébastien Helleu
2024-03-05api: add functions config_{boolean|integer|string|color|enum}_inherited in ↵Sébastien Helleu
scripting API
2024-03-05tests: add tests on functions that read values of config optionsSébastien Helleu
2024-02-10tests: fix compiler warning on empty snprintf formatSébastien Helleu
This fixes the following warning: test-core-dir.cpp:178:36: warning: zero-length gnu_printf format string [-Wformat-zero-length]
2024-02-10core: remove trailing directory separators in home directories (closes #2070)Sébastien Helleu
2024-02-01core: add support of base64url in encode/decode functions (issue #2066)Sébastien Helleu
2024-01-27core: use function util_strftimeval in evaluation of expression `date:xxx`Sébastien Helleu
2024-01-27api: add support of specifier `%!` for timestamp in function util_strftimevalSébastien Helleu
2024-01-22irc: fix random date displayed when a received message contains tags but no ↵Sébastien Helleu
"time" (closes #2064)
2024-01-05api: add function util_parse_time (issue #649)Sébastien Helleu
2024-01-01core: update copyright datesSébastien Helleu
2023-12-26core: store microseconds in buffer lines (closes #649)Sébastien Helleu
2023-12-02tests: remove unneeded constant TOTP_SECRETSébastien Helleu
2023-11-24tests: add eval tests on "raw" and "raw_hl" with escaped prefixSébastien Helleu
2023-11-23tests: fix tests on function string_replace_with_callbackSébastien Helleu
2023-11-23core: evaluate expressions even when the suffix is missing (issue #2042, ↵Sébastien Helleu
issue #1714)
2023-11-23core: add syntax highlighting in evaluation of expressions, add option ↵Sébastien Helleu
weechat.color.eval_syntax_colors (issue #2042) Syntax highlighting (raw string without evaluation): `${raw_hl:xxx}` Syntax highlighting: `${hl:xxx}`
2023-10-30tests: check that environment variable "HOME" is set before using itSébastien Helleu
2023-10-17api: add support of format/translation of command arguments description line ↵Sébastien Helleu
by line (issue #2005)
2023-10-17api: add function string_concat (issue #2005)Sébastien Helleu
2023-09-25tests: cast infolist time variable value to the correct data typeLuK1337
2023-09-20tests: fix condition on libgcrypt version for algorithms `sha512-224` and ↵Sébastien Helleu
`sha512-256` (issue #2008)
2023-09-13core: add algorithms `sha512-224`, `sha512-256`, `sha3-*`, blake2b-*` and ↵Sébastien Helleu
`blake2s-*` in option sec.crypt.hash_algo (closes #2008)
2023-09-13api: add algorithms `sha512-224`, `sha512-256`, blake2b-*` and `blake2s-*` ↵Sébastien Helleu
in hash functions (issue #2008)
2023-08-29api: add support of path to variable and hashtable comparison in function ↵Sébastien Helleu
hdata_compare (closes #1066)
2023-08-28core: add command `/sys` to show resource limits and usageSébastien Helleu
2023-08-25core: add function util_get_microseconds_stringSébastien Helleu
2023-08-25core: add microseconds precision in function util_parse_delaySébastien Helleu
2023-08-24api: add infos "nick_color_ignore_case" and "nick_color_name_ignore_case" ↵Sébastien Helleu
(issue #194)
2023-08-23tests: add tests on string comparison functions with range of 29 charsSébastien Helleu
2023-08-16tests: add tests on eval ternary operator with extra colon in valueSébastien Helleu
2023-07-08core: add option type "enum" (closes #1973)Sébastien Helleu
The type "enum" replaces type "integer" when used with string values. For compatibility, any option created with type "integer" and string values is automatically created to "enum" on creation, with no error.
2023-07-01tests: fix hdata tests failure on Alpine 3.18Sébastien Helleu
2023-06-27core: check for newline characters in string_is_whitespace_charTrygve Aaberge
This fixes a bug where if you had multiple lines in the input and pressed ctrl-w when the cursor was after the first word of any line but the first, it would delete both the word before the cursor and the last word on the preceding line.
2023-05-23tests: check tags in messages displayed by IRC pluginSébastien Helleu
2023-05-22tests: separate prefix from message in recorded messagesSébastien Helleu
The record functions are moved to tests-record.cpp.
2023-05-14tests: reverse arguments in calls to STRCMP_EQUALSébastien Helleu
2023-05-05core: fix execution of multiple commands separated by newline when there are ↵Sébastien Helleu
no spaces For example typing this on core buffer: /t1 /t2 was not executing the two commands but sent the text to the buffer instead. This is because WeeChat thinks it's a path, and the newline should indicate it's not (like a space before the next slash: "/t1 /t2" is a command, not a path, but "/t1/t2" is considered a path).
2023-05-04api: don't split on newline by default in functions `command` and ↵Sébastien Helleu
`command_options` when input_multiline is set to 0 The API functions `command` and `command_options` (when `split_newline` = 0, which is the default value) don't split on newline and then the first line is executed and the subsequent lines (after "\n") are ignored. There are no changes when the input has multiple lines filled by the user: the split is done and multiple commands are executed (for example if the user is pasting multiple commands to execute).
2023-03-28core: check that infolist is not NULL in next/prev/reset_item_cursor functionsSébastien Helleu
2023-03-26core: Implement commands for operating on a single input lineTrygve Aaberge
This changes the commands delete_beginning_of_line, delete_end_of_line, delete_line, move_beginning_of_line and move_end_of_line to operate on the current line instead of the whole input. The commands delete_beginning_of_input, delete_end_of_input, delete_input, move_beginning_of_input and move_end_of_input are added with the previous implementations that the line commands had. Additionally, the commands move_previous_line and move_next_line are added which moves the cursor to the previous/next line and keeps the horizontal position in the line. The meta-r key is changed from delete_line to delete_input to keep the behavior, and because you probably want to delete the whole input more often than the line. The meta-R key is added for delete_line. The home, end, ctrl-u and ctrl-k keys are kept to the same commands, which means that they change behaviour. This is because having them operate on the line is consistent with other applications (vim, zsh), and I also think it's more practical. These new bindings are added: shift-home: /input move_beginning_of_input shift-end: /input move_end_of_input shift-up: /input move_previous_line shift-down: /input move_next_line meta-R: /input delete_line meta-ctrl-u: /input delete_beginning_of_input meta-ctrl-k: /input delete_end_of_input Relates to #1498