summaryrefslogtreecommitdiff
path: root/src/core/wee-config-file.c
AgeCommit message (Collapse)Author
2023-01-28core, plugins: replace calls to strcmp by string_strcmp when difference ↵Sébastien Helleu
matters (issue #1872)
2023-01-28core, plugins: replace calls to string_str(n)cmp by str(n)cmp (issue #1872)Sébastien Helleu
2023-01-28core: make get/set object properties case sensitive (issue #1872)Sébastien Helleu
2023-01-28core: make configuration files, sections and options case sensitive (issue ↵Sébastien Helleu
#1872)
2023-01-28core: add function config_file_get_configs_by_priority (issue #1872)Sébastien Helleu
2023-01-28core: simplify code in config functions (issue #1872)Sébastien Helleu
2023-01-28core: sort configuration files by name, reload them by priority (issue #1872)Sébastien Helleu
2023-01-28core: add priority in config file (issue #1872)Sébastien Helleu
Priority is now allowed in function config_file_new, parameter `name`, with the same format as hooks: "priority|name" (for example: "2000|test"). If not specified, the default priority is 1000.
2023-01-01core: update copyright datesSébastien Helleu
2022-10-23core: Prevent use of uninitialized memory when setting invalid colorTrygve Aaberge
If a color option value is null and is tried being set to an invalid color, the value was set to uninitialized memory which can lead to a segfault. Can be reproduced with this script: https://gist.github.com/trygveaa/6ddb3a52f525a7fd8e0908bafa83e07c The option doesn't have to be set from a script, it also happens with the /set command.
2022-07-20api: add arguments "index_start" and "index_end" in function ↵Sébastien Helleu
string_rebuild_split_string
2022-07-20api: rename function string_build_with_split_string to ↵Sébastien Helleu
string_rebuild_split_string
2022-06-18core: add trailing slashes in URLsSébastien Helleu
2022-01-17core: update copyright datesSébastien Helleu
2021-11-04core: fix access to integer/long/time arrays in hdata, add support of static ↵Sébastien Helleu
arrays in hdata
2021-10-01core: add command /toggleSébastien Helleu
2021-09-27core: check that option is not NULL in function ↵Sébastien Helleu
config_file_option_value_to_string
2021-09-27core: fix search of option when the section is not givenSébastien Helleu
2021-09-27core: check that option_name is not NULL in config file functionsSébastien Helleu
2021-05-11core: split WeeChat home in 4 directories, use XDG directories by default ↵Sébastien Helleu
(issue #1285) The 4 directories (which can be the same): - config: configuration files, certificates - data: log/upgrade files, local plugins, scripts, xfer files - cache: script repository, scripts downloaded (temporary location) - runtime: FIFO pipe, relay UNIX sockets
2021-03-14core: mention /fset command in header comment of configuration filesSébastien Helleu
2021-01-02core: update copyright datesSébastien Helleu
2020-11-17core: fix and normalize error messagesSébastien Helleu
2020-01-04core: update copyright datesSébastien Helleu
2019-10-23core: optimize search of options in configuration sectionsSébastien Helleu
Since options are sorted in sections, it is faster to search from the last option to the first one. For configuration files with many options in a single section (like plugins.conf), the load of configuration file is about 2 to 3x faster.
2019-06-15api: add argument "strip_items" in function string_splitSébastien Helleu
2019-03-10core: replace argument "keep_eol" by "flags" in function string_split ↵Sébastien Helleu
(closes #1322)
2019-01-01core: update copyright datesSébastien Helleu
2018-11-29core: use https for links to GNU GPL licenseSébastien Helleu
2018-01-07core: fix some stylesSébastien Helleu
2018-01-05core: update copyright datesSébastien Helleu
2017-10-14core: add option weechat.look.save_config_with_fsync (closes #1083)Sébastien Helleu
This makes the save of all configuration files about 20 to 200x slower (according to the storage device speed); so this is disabled by default.
2017-07-08core: call the config hook when options are renamedSébastien Helleu
2017-07-08core: call the config hook when options are removedSébastien Helleu
2017-06-25fset: add ${file}, ${section}, ${option}, add color optionsSébastien Helleu
2017-06-10core, plugins: fix conditions to insert elements in linked listsSébastien Helleu
This removes scan-build warnings about dereference of last_xxx null pointers.
2017-06-09core: remove unused functions config_file_config_insert and ↵Sébastien Helleu
config_file_section_insert_in_config (issue #1012)
2017-05-30api: add function config_option_get_string in plugin APISébastien Helleu
2017-01-01core: update copyright datesSébastien Helleu
2016-11-21core: add a warning in header of configuration files to not edit by hand ↵Sébastien Helleu
(closes #851)
2016-07-09core: rename function string_iconv_fprintf to string_fprintfSébastien Helleu
2016-03-21core: add pointer in some callbacks (closes #406)Sébastien Helleu
This pointer is the first argument received by callbacks, and the existing argument "data" is now automatically freed by WeeChat when the object containing the callback is removed. With this new pointer, the linked list of callbacks in scripts has been removed. This will improve speed of scripts (using a lot of hooks), reduce memory used by scripts and reduce time to unload scripts. Following functions are affected in the C API: * exec_on_files * config_new * config_new_section * config_new_option * hook_command * hook_command_run * hook_timer * hook_fd * hook_process * hook_process_hashtable * hook_connect * hook_print * hook_signal * hook_hsignal * hook_config * hook_completion * hook_modifier * hook_info * hook_info_hashtable * hook_infolist * hook_hdata * hook_focus * unhook_all_plugin * buffer_new * bar_item_new * upgrade_new * upgrade_read
2016-01-01core: update copyright datesSébastien Helleu
2015-12-24core: add a parent name in options (closes #629)Sébastien Helleu
Inherited values are now displayed in /set output when the value is null, if a parent option name is defined in option. New option: weechat.color.chat_value_null
2015-07-04core: add missing comments before functions when the result must be freed ↵Sébastien Helleu
after use
2015-04-22core: remove WeeChat version from config files (closes #407)Sébastien Helleu
2015-04-17core: add a welcome message on first WeeChat run (closes #318)Sébastien Helleu
2015-01-01core: update copyright datesSébastien Helleu
2014-10-23api: fix crash when reading config options with NULL value (closes #238)Sébastien Helleu
2014-09-29core: remove sort on configuration files and sectionsSébastien Helleu
The sort was causing bugs because some options were missing while reading other options, so the order of sections is important, they must not be sorted. This is a partial revert of commit 56f099bec647ef79542e3e65e847e24d1bdcaa61.