Sébastien Helleu
330d7d50d2
core: set notify_level to 3 in case of highlight in gui_line_hook_update only if tag "notify_none" is not in the line (issue #1529 )
2020-08-16 12:40:01 +02:00
Sébastien Helleu
786072806b
core: set notify_level to 3 in case of highlight only if tag "notify_none" is not in the line (issue #1529 )
2020-08-16 08:27:00 +02:00
Sébastien Helleu
d15db0ecbb
core: set "notify_level" to 3 if there is a highlight in the line ( closes #1529 )
2020-08-15 14:02:40 +02:00
Sébastien Helleu
1054cdf1e9
fset: add option fset.look.auto_refresh ( closes #1553 )
2020-08-09 10:56:03 +02:00
Sébastien Helleu
0cc5df6649
irc: send all channels in a single JOIN command when reconnecting to the server ( closes #1551 )
2020-08-05 20:05:36 +02:00
Sébastien Helleu
0ab44c02a4
core: check that line is not NULL in functions gui_line_is_displayed and gui_line_get_nick_tag
2020-08-04 23:12:18 +02:00
Sébastien Helleu
6704825d7b
core: check that line_data is not NULL in functions gui_line_tags_alloc and gui_line_has_tag_no_filter
2020-08-04 22:56:02 +02:00
Sébastien Helleu
ec898732a1
core: rename functions to allocate/free lines
2020-08-04 22:42:59 +02:00
Sébastien Helleu
7412f5815c
trigger: fix recursive calls to triggers using regex ( closes #1546 )
2020-07-31 20:50:33 +02:00
Simmo Saan
b69e47d0a2
irc: add pointer "irc_nick" in hashtable sent to hook focus callback ( closes #1535 )
2020-07-21 08:18:43 +02:00
Sébastien Helleu
84e30438d4
irc: allow to send text on buffers with commands /allchan, /allpv and /allserv
2020-07-20 22:39:28 +02:00
Sébastien Helleu
ee3a4a1fc0
irc: evaluate command executed by commands /allchan, /allpv and /allserv ( closes #1536 )
...
The extra variables are now replaced (in addition to `$server`, `$channel` and
`$nick`):
- `${irc_server.xxx}`: variable xxx in server
- `${irc_channel.xxx}`: variable xxx in channel
2020-07-20 22:20:22 +02:00
Sébastien Helleu
e0e905ca7f
trigger: check that tag "notify_none" is not present in message to run command of default trigger beep (issue #1529 )
2020-07-20 21:08:59 +02:00
Sébastien Helleu
2b16036f08
core: do not add line with highlight and tag "notify_none" to hotlist ( closes #1529 )
2020-07-20 09:26:36 +02:00
Marco Sirabella
ab7104e34c
Add $weechat_sharedir/python for global python package import
...
Related: #1461
Some scripts (eg weechat-matrix) ship directories that need to be
imported from the script.
Rather than globally installing the python packages to python's
`site-packages` the directories can be installed alongside the script in
`WEECHAT_SHAREDIR/python`.
This change adds that directory to the `$PYTHONPATH` to import
successfully.
2020-07-07 20:26:17 +02:00
Sébastien Helleu
b17e1bcf89
api: add pointer "_bar_window" in hashtable sent to hook focus callback ( closes #1450 )
2020-06-30 20:16:19 +02:00
Sébastien Helleu
acfb5a7638
relay: add missing field "notify_level" in message "_buffer_line_added" (issue #1529 )
2020-06-26 08:03:15 +02:00
Sébastien Helleu
b0ecbdbf1d
core: add bar option "color_bg_inactive" (issue #732 )
2020-06-21 18:59:54 +02:00
Sébastien Helleu
5b151d1639
irc: check that the first nick char is not a prefix char or chantype in function irc_nick_is_nick
2020-06-21 10:22:37 +02:00
Sébastien Helleu
4a42cda3a5
irc: change default chantypes from "#&+!" to "#&"
...
The default chantypes was conflicting with
irc_server_prefix_chars_default ("@+").
2020-06-21 10:22:04 +02:00
Sébastien Helleu
12051a506d
irc: add support of UTF8MAPPING, add support of optional server in info "irc_is_nick" ( closes #1528 )
2020-06-20 17:28:28 +02:00
Sébastien Helleu
2a60a25443
irc: return NULL in info "irc_is_channel" if arguments is NULL or empty string
2020-06-20 10:04:40 +02:00
Sébastien Helleu
eba9c31da0
irc: fix display of ACCOUNT message when the account name is ":*" ( closes #1526 )
2020-06-15 23:03:58 +02:00
Sébastien Helleu
d0ae0fea49
irc: skip semicolon before account name in ACCOUNT message
2020-06-15 07:12:06 +02:00
Sébastien Helleu
99a324b76f
buflist: add "window" pointer in bar item evaluation only if it's not NULL (if bar type is "window")
2020-06-10 20:39:07 +02:00
Sébastien Helleu
08a00739f2
guile: fix compiler warning (issue #1514 )
2020-06-07 11:07:48 +02:00
Joram Schrijver
297a140bea
guile: fix memory leak in output port
2020-06-07 11:07:03 +02:00
Joram Schrijver
cb5d90dcc7
guile: re-enable "/guile eval" (issue #1098 )
...
With the output port now properly implemented for Guile >= 2.2, this
command works again.
2020-06-07 11:07:03 +02:00
Joram Schrijver
cac45aab46
guile: fix printing of output to buffer (issue #1098 )
...
The support for Guile 2.2 did not implement the custom port correctly,
and did not configure it to be the default output port. This caused
output from Guile to be printed straight to the TTY, breaking the
WeeChat interface.
Note that the port is unbuffered, so that code like
(display "test")
immediately results in output, without an explicit call to force-output.
2020-06-07 11:07:03 +02:00
Sébastien Helleu
e784a994b5
api: fix use of pointer after free in function key_unbind
2020-06-07 09:11:24 +02:00
Sébastien Helleu
196a4e28aa
irc: fix add of ignore with flags in regex, display full ignore mask in list of ignores ( closes #1518 )
2020-06-04 08:05:57 +02:00
Max Teufel
0027c23b7e
irc: display account messages in buffers
2020-06-03 07:59:04 +02:00
Christian Duerr
c35e31cad2
Add Alacritty title escape sequence support
2020-06-02 23:27:51 +02:00
Sébastien Helleu
66d4590dab
core: add base 16/32/64 encoding/decoding in evaluation of expressions
2020-05-21 09:36:35 +02:00
Sébastien Helleu
1994d5641d
core: move functions string_base_encode and string_base_decode from plugin-api.c to wee-string.c
2020-05-21 00:02:24 +02:00
Sébastien Helleu
0ac936a5cf
core: return -1 in case of error in functions string_base16_decode and string_base64_decode
2020-05-21 00:01:35 +02:00
Sébastien Helleu
8f308ea918
core: split function eval_replace_vars_cb into multiple functions
2020-05-20 00:04:45 +02:00
Sébastien Helleu
4a67c4a1ab
irc: do not remove spaces at the end of users messages received ( closes #1513 )
...
The regression was introduced in version 2.5 by commit
2b70d71aa1 .
2020-05-19 20:12:27 +02:00
Sébastien Helleu
0aa9f7de64
trigger: add (void) before calls to trigger_callback_execute when the returned value is ignored
2020-05-17 09:48:07 +02:00
Simmo Saan
b14cf0ac3d
trigger: only return trigger's return code when condition evaluates to true
2020-05-17 09:46:10 +02:00
Trygve Aaberge
40b5cf7ab0
Fix /window scroll_beyond_end when buffer has fewer lines than terminal height
2020-05-16 19:56:27 +02:00
Sébastien Helleu
f500c972dd
core: update translations ( closes #1245 , closes #1257 )
2020-05-16 14:40:19 +02:00
Sébastien Helleu
aa86d82796
core: rename info_hashtable "gui_focus_info" to "focus_info" (issue #1257 )
2020-05-16 14:23:18 +02:00
Sébastien Helleu
a3747fefcd
core: move creation of info_hashtable from gui-focus.c to plugin-api-info.c (issue #1257 )
2020-05-16 14:23:09 +02:00
Simmo Saan
a5b851826e
gui: make key optional in gui_focus_to_hashtable
2020-05-16 14:23:09 +02:00
Simmo Saan
3f0c6ac96b
gui: add gui_focus_info hashtable info ( #1245 )
2020-05-16 14:23:09 +02:00
Sébastien Helleu
dba94f0c5d
core: add color in /buffer output for notification level, update translations (issue #1505 )
2020-05-16 13:40:08 +02:00
Trygve Aaberge
d2f49755c7
core: Allow displaying notify level with /buffer notify
2020-05-16 13:35:36 +02:00
Sébastien Helleu
1d357533b9
core: add bar items with nicklist groups and nicks/groups ( closes #1506 )
...
The bar item "buffer_nicklist_count" is now the number of displayed nicks
only (not groups).
New bar items:
- "buffer_nicklist_count_groups": number of groups displayed
- "buffer_nicklist_count_all": number of nicks and groups displayed
2020-05-16 11:27:41 +02:00
Sébastien Helleu
40a14b4574
core: force buffer property "time_for_each_line" to 0 for buffers with free content ( closes #1485 )
2020-05-14 18:21:42 +02:00