summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2021-04-06trigger: add variables "${tg_shell_argc}" and "${tg_shell_argvN}" in command ↵Sébastien Helleu
trigger evaluated strings (closes #1624)
2021-04-04core: evaluate left/right part of comparison after split on the comparison ↵Sébastien Helleu
operator in ${if:xxx} (closes #1627) To force evaluation of the expression before doing the comparison (less safe), the "${eval_cond:xxx}" can be used. With the old behavior we had: >> ${if:a==b} == [0] >> ${if:${raw:a==b}} == [0] >> ${if:${eval_cond:${raw:a==b}}} == [0] And with the new behavior, we have: >> ${if:a==b} == [0] >> ${if:${raw:a==b}} == [1] >> ${if:${eval_cond:${raw:a==b}}} == [0]
2021-03-21buflist: improve help on option buflist.look.sortSébastien Helleu
2021-03-21buflist: Fix wrong pointers being used in hdata_compareTrygve Aaberge
This used pointer1 and pointer2 which are pointers to the buffers, but it should use ptr_hotlist1 and ptr_hotlist1 which are pointers to the hotlists it is trying to compare.
2021-03-20core: Prevent switching to start of visited buffers when jumping to nextTrygve Aaberge
If you run /input jump_next_visited_buffer right after switching to a buffer, weechat changes to the first buffer in the visited buffers list. That is, it wraps around and goes to the buffer you visited the longest ago. This patch fixes that. The reason it happens is that when you switch to a buffer (normally, i.e. in another way than using jump_previously_visited_buffer/ jump_next_visited_buffer) gui_buffers_visited_index is set to -1 (in gui_buffer_visited_add). This makes gui_buffer_visited_get_index_next return 0 because it returns gui_buffers_visited_index + 1, which makes gui_input_jump_next_visited_buffer jump to the first buffer in the list of visited buffers. Fixes #1591
2021-03-18core: add pointer name in description of function eval_replace_vars_cbSébastien Helleu
2021-03-17api: add support of pointer names in function string_eval_expression (direct ↵Sébastien Helleu
and in hdata) These two formats are now supported, if "pointer_name" is present in the "pointers" hashtable: * "${pointer_name}": value of pointer (example: "0x1234abcd") * ${buffer[pointer_name].full_name}: use of a pointer name instead of pointer value or list name
2021-03-16core: add options to customize commands on system signals, quit by default ↵Sébastien Helleu
on SIGHUP when not running headless (closes #1595) New options to customize behavior on signals received, with the default behavior: - weechat.signal.sighup: quit in normal mode, reload config in headless - weechat.signal.sigquit: quit - weechat.signal.sigterm: quit - weechat.signal.sigusr1: no command executed by default - weechat.signal.sigusr2: no command executed by default The signals SIGUSR1 and SIGUSR2 are introduced by this commit, so it's now possible to run commands when they are received. The SIGHUP signal makes now WeeChat quit, it was the behavior before version 2.9 of WeeChat (see commit de1e61f7cd50cbd1a99777fe6611642a51abf5f6).
2021-03-14api: add info "weechat_daemon"Sébastien Helleu
2021-03-14doc: use full path /usr/bin/pass in example for option ↵Sébastien Helleu
sec.crypt.passphrase_command
2021-03-14core: mention /fset command in header comment of configuration filesSébastien Helleu
2021-03-14fset: add fset bar on configuration reload (issue #1618)Sébastien Helleu
2021-03-14buflist: always add buflist bar when plugin is loaded, hide bar by default ↵Sébastien Helleu
if buflist is disabled (issue #1618)
2021-03-14buflist: add buflist bar on configuration reload (issue #1618)Sébastien Helleu
2021-03-07core: add missing include of sys/time.h in C headersSébastien Helleu
2021-03-07core: fix compilation of tests on FreeBSDSébastien Helleu
2021-02-28core: fix quoted line in cursor mode (closes #1602)Sébastien Helleu
Regression was introduced in version 2.7 by commit 93d2dbf3e1ef30e676a6edd56ab2b9bd2ddd70d9.
2021-02-27irc: add bar item "irc_nick_prefix"Sébastien Helleu
2021-02-27irc: fix separator between nick and host in bar item "irc_nick_host"Sébastien Helleu
Use "!" instead of "@" to separate nick from host, like it is done in IRC protocol. The nick and host is now displayed as "nick!user@host" instead of "nick@user@host".
2021-02-27fset: fix description of function fset_bar_item_fset_cbSébastien Helleu
2021-02-25core: add info_hashtable "secured_data"Sébastien Helleu
2021-02-09buflist: add option buflist.look.use_items to speed up display of buflist ↵Sébastien Helleu
(closes #1613)
2021-02-08core: fix wrong size of the new window after vertical split (closes #1612)Sébastien Helleu
2021-02-08core: update help on option sec.crypt.passphrase_command, update translationsSébastien Helleu
2021-02-07core: add options weechat.look.hotlist_update_on_buffer_switch and ↵Kevin Pulo
weechat.look.read_marker_update_on_buffer_switch Both default to "on" (no change to previous behavior). If hotlist_update_on_buffer_switch is "off", then when switching away from a buffer, the hotlist is not cleared. If read_marker_update_on_buffer_switch is "off", then when switching away from a buffer, the read marker is not set to the end of the buffer. This allows users to choose to have fully manual control over when hotlist counts and buffer read markers are reset. Fixes #992.
2021-02-06core: replace option sec.crypt.passphrase_file by ↵Sébastien Helleu
sec.crypt.passphrase_command (closes #141) The command is used to read the passphrase on startup, for example using your favorite password manager. Note: only the passphrase is read from the program, the secured data is still stored encrypted in sec.conf and handled by WeeChat itself.
2021-02-05core: add raw string in evaluation of expressions with "raw:xxx" (closes #1611)Sébastien Helleu
2021-02-03irc: add info "irc_is_message_ignored"Sébastien Helleu
2021-01-30irc: add function irc_server_get_chantypesSébastien Helleu
2021-01-30irc: use server option "default_chantypes" as fallback in function ↵Sébastien Helleu
irc_nick_is_nick
2021-01-30irc: use server option "default_chantypes" as fallback when automatically ↵Sébastien Helleu
adding channel type on join
2021-01-30irc: improve help on server option "default_chantypes"Sébastien Helleu
2021-01-30irc: fix name of option "default_chantypes" in list of server optionsSébastien Helleu
2021-01-30irc: simplify code in function irc_channel_is_channelSébastien Helleu
2021-01-30irc: make default chantypes configurableMatti Virkkunen
2021-01-02core: update copyright datesSébastien Helleu
2021-01-02irc: remove obsolete comment on translationSébastien Helleu
2021-01-02irc: fix ambiguity on translation of word "server"Sébastien Helleu
This fixes the following warning: /usr/bin/xgettext: warning: msgid 'server' is used without plural and with plural. ./src/plugins/irc/irc-bar-item.c:136: Here is the occurrence without plural. ./src/plugins/irc/irc.c:154: Here is the occurrence with plural. Workaround: If the msgid is a sentence, change the wording of the sentence; otherwise, use contexts for disambiguation.
2021-01-02core: move debug_id assignation in macro EVAL_DEBUG_MSGSébastien Helleu
2021-01-01doc: add note about call to "regfree" after call to "string_regcomp" (plugin ↵Sébastien Helleu
API reference)
2021-01-01core: add indentation and colors in /eval debug outputSébastien Helleu
2020-12-31core: display more verbose debug with two "-d" in command /evalSébastien Helleu
Now a single -d in command /eval shows less debug messages than previous versions. To get the same debug messages than previous versions, two -d must be used.
2020-12-30core: fix typo in commentSébastien Helleu
2020-12-25core: do not remove quotes in arguments of command /eval (closes #1601)Sébastien Helleu
Now, /eval -n -c "a" == "a" returns True instead of False. When quotes were removed, the condition evaluated was: a" == "a (which is False).
2020-12-19core: add options "setvar" and "delvar" in command /buffer, rename option ↵Sébastien Helleu
"localvar" to "listvar" The option "localvar" (introduced long time ago, in WeeChat 0.3.0) is still recognized by WeeChat, to stay compatible with any extension/script calling it (or referencing it in the documentation). It is deprecated and will be removed in a future release.
2020-12-19core: add buffer local variable "completion_default_template" (evaluated) ↵Sébastien Helleu
(closes #1600) When this local variable is set, it overrides the value of option "weechat.completion.default_template". It is evaluated, that means the global default template can be used to append some custom completion. For example: /buffer set localvar_set_completion_default_template ${weechat.completion.default_template}|%(my_completion)
2020-12-18core: remove unneeded return of WEECHAT_RC_OK in filter commandSébastien Helleu
2020-12-18core: add option "recreate" in command /filterSébastien Helleu
2020-12-15script: add status of scripts in output of command /script list in /help scriptSébastien Helleu
2020-12-06irc: fix completion of commands /halfop and /dehalfopSébastien Helleu