Tobias Stoeckmann
2fb346f25f
irc: fix parsing of DCC filename
2017-04-22 15:10:53 +02:00
Sébastien Helleu
90029f9abd
doc: fix translation of command "eval" in user's guide
2017-04-21 21:59:52 +02:00
Sébastien Helleu
5a8fb043ab
core: add link to function color (plugin API reference) in /help eval
2017-04-21 07:36:22 +02:00
Sébastien Helleu
669ca77c41
buflist: add example in /help buflist.look.display_conditions
2017-04-20 22:00:17 +02:00
Sébastien Helleu
c946b3e361
buflist: remove foreground color from default value of option buflist.format.buffer_current ( closes #954 )
...
The foreground is not needed because it is overriden by the hotlist color.
2017-04-20 21:50:25 +02:00
Sébastien Helleu
91c517bbf1
buflist: fix refresh of buflist bar item when the option buflist.look.display_conditions is reset
2017-04-20 21:46:24 +02:00
arza
442940942a
core: fix typo in /help buffer
2017-04-08 15:35:47 +03:00
Sébastien Helleu
45de475c74
Merge pull request #944 from arza-zara/duplicate_sigquit
...
core: remove duplicate util_catch_signal for SIGQUIT
2017-04-07 22:31:34 +02:00
Sébastien Helleu
a4dffb1915
irc: fix double decoding of IRC colors in messages sent/displayed by commands /msg and /query (issue #943 )
2017-04-07 22:28:48 +02:00
arza
e7edebfaee
core: remove duplicate util_catch_signal for SIGQUIT
2017-04-07 20:46:47 +03:00
Sébastien Helleu
fab7a8bdfd
core: add Curl options for versions 7.50.0 to 7.52.0
2017-04-06 07:23:52 +02:00
Sébastien Helleu
aae36f4641
buflist: move set of "nick_prefix" in hashtable
2017-04-04 07:13:50 +02:00
Sébastien Helleu
c652598ad7
api: fix memory leak in function string_dyn_free()
...
Bug was introduced by commit af138840b3 .
2017-04-02 08:39:29 +02:00
Sébastien Helleu
20bb762e28
buflist: add options buflist.look.nick_prefix and buflist.look.nick_prefix_empty
...
The option buflist.look.signals_refresh is not an extra list of signals for
refresh, so it is empty by default.
The default list of signals is handled directly by buflist and not visible to
the user.
2017-04-02 08:37:47 +02:00
Sébastien Helleu
b29f18d7ea
aspell: add options to control delimiters in suggestions ( closes #940 )
...
New options:
- aspell.color.suggestion_delimiter_dict
- aspell.color.suggestion_delimiter_word
- aspell.look.suggestion_delimiter_dict
- aspell.look.suggestion_delimiter_word
Option renamed:
- aspell.color.suggestions -> aspell.color.suggestion
2017-04-01 12:26:48 +02:00
Sébastien Helleu
af138840b3
api: return pointer to string in function string_dyn_free() if argument "free_string" is 0
2017-04-01 12:04:28 +02:00
Sébastien Helleu
2ab3015114
script: move default mouse keys for script plugin from core to script-mouse.c
2017-03-31 21:07:32 +02:00
Sébastien Helleu
92fc469247
buflist: add key "__quiet" in hashtable for function key_bind
2017-03-31 21:05:48 +02:00
Sébastien Helleu
36eb3ee343
api: add special key "__quiet" in function key_bind
2017-03-31 21:04:21 +02:00
Sébastien Helleu
bb00b6b8fb
core: add ${re:#} to get the index of last group captured in evaluation of expressions
2017-03-30 22:13:14 +02:00
Sébastien Helleu
f0c8da2f05
buflist: add mouse support
...
New options:
- buflist.look.mouse_jump_visited_buffer
- buflist.look.mouse_move_buffer
- buflist.look.mouse_wheel
New keys added by buflist plugin:
- @item(buflist):button1* => hsignal:buflist_mouse
- @item(buflist):button2* => hsignal:buflist_mouse
- @bar(buflist):ctrl-wheelup => hsignal:buflist_mouse
- @bar(buflist):ctrl-wheeldown => hsignal:buflist_mouse
2017-03-30 20:39:37 +02:00
Sébastien Helleu
467f482ea6
core: make "callback_cmp" optional in call to function arraylist_new()
...
If no callback is given, a default callback is used, which just compares
pointers.
2017-03-30 20:35:16 +02:00
Sébastien Helleu
0436fff31b
buflist: add option buflist.format.number
2017-03-29 20:00:36 +02:00
Sébastien Helleu
3045021430
core: fix cut of chars in "cutscr" of evaluated strings
...
This fixes two problems:
- stop before max char displayed with wide chars
- preserve combining chars in the output
Before the fix (wrong):
>> ${cutscr:3,+,こんにちは世界}
== [こん+]
>> ${cutscr:1,+,a${\u0308}}
== [a+]
After the fix (OK):
>> ${cutscr:3,+,こんにちは世界}
== [こ+]
>> ${cutscr:1,+,a${\u0308}}
== [ä]
2017-03-28 20:45:31 +02:00
Sébastien Helleu
f99c866f35
core: add cut of string with max chars displayed in evaluation of expressions
...
The syntax is: ${cutscr:max,suffix,string}.
The string is cut after max chars displayed on screen. If the string is cut,
the optional suffix is added after.
2017-03-27 21:14:51 +02:00
Sébastien Helleu
f37ecbfefd
Merge pull request #938 from arza-zara/buffer_get_localvar
...
core: support local variables in /buffer get
2017-03-26 15:31:59 +02:00
Sébastien Helleu
532216e760
relay: check buffer pointer received in "sync" and "desync" commands (weechat protocol) ( closes #936 )
2017-03-26 15:15:56 +02:00
Sébastien Helleu
7ceacabd46
relay: remove buffer from synchronized buffers when it is closed (fix memory leak)
2017-03-26 08:55:08 +02:00
arza
24fd69e42c
core: support local variables in /buffer get
2017-03-26 08:14:41 +03:00
Sébastien Helleu
9d0ae31fce
buflist: add option buflist.look.display_conditions
2017-03-25 22:14:32 +01:00
Sébastien Helleu
9816c8cbce
buflist: add option buflist.look.signals_refresh
2017-03-25 21:39:59 +01:00
Sébastien Helleu
fb66eeec79
core: update translations
2017-03-25 15:13:18 +01:00
Sébastien Helleu
98487253ca
buflist: add command /buflist
2017-03-25 15:13:13 +01:00
Sébastien Helleu
887362dfd9
buflist: add formats for hotlist
...
New options:
- buflist.format.hotlist
- buflist.format.hotlist_separator
2017-03-25 14:19:48 +01:00
Sébastien Helleu
6f46f65c73
irc: fix type of values for hashtable extra_vars in irc_server_get_default_msg
2017-03-25 14:19:48 +01:00
Sébastien Helleu
e113fe2440
core: fix type of values for hashtables extra_vars and options in gui_bar_check_conditions
2017-03-25 14:19:48 +01:00
Sébastien Helleu
7f69f88468
buflist: add option "buflist.format.lag" and variable "format_lag" for buffer line format
2017-03-25 14:19:48 +01:00
Sébastien Helleu
1963191700
core: prevent infinite loop in evaluation of expression with extra_vars_eval
...
When extra variables are evaluated, to prevent infinite loop if the evaluated
variable is calling itself, it is removed from hashtable "extra_vars" before
evaluation.
2017-03-25 14:19:48 +01:00
Sébastien Helleu
d31e4f1d9a
irc: send signal "irc_server_lag_changed", store lag in server buffer
...
The lag is stored in the local variable "lag" of the server buffer.
When there is no lag, the local variable does not exist.
2017-03-25 14:19:48 +01:00
Sébastien Helleu
9a8ec36cbd
core: add cut of string in evaluation of expressions
...
The syntax is: ${cut:max,suffix,string}.
The string is cut after max chars. If the string is cut, the optional suffix is
added after.
2017-03-25 14:19:48 +01:00
Sébastien Helleu
db0ecc07fe
buflist: use hotlist pointer in buffer hdata
2017-03-25 14:19:48 +01:00
Sébastien Helleu
a8bf5eb7ba
core: add hotlist pointer in buffer structure
2017-03-25 14:19:48 +01:00
Sébastien Helleu
4ef8e61ca5
buflist: add option buflist.look.sort
2017-03-25 14:18:19 +01:00
Sébastien Helleu
77af4e0a87
api: add arraylist functions
...
New functions:
- arraylist_new
- arraylist_size
- arraylist_get
- arraylist_search
- arraylist_insert
- arraylist_add
- arraylist_remove
- arraylist_clear
- arraylist_free
2017-03-25 14:18:19 +01:00
Sébastien Helleu
da0fea8a60
buflist: add hotlist format options (for color according to hotlist priority)
2017-03-25 14:18:19 +01:00
Sébastien Helleu
c18be9da21
buflist: load plugin after some other plugins by shifting plugins priority
2017-03-25 14:18:19 +01:00
Sébastien Helleu
edfeb60e32
buflist: new plugin "buflist" (bar with list of buffers)
2017-03-25 14:18:19 +01:00
Sébastien Helleu
83117f8d2a
core: add ternary operator (condition) in evaluation of expressions
2017-03-25 14:18:19 +01:00
Sébastien Helleu
07d16903f3
api: add dynamic string functions (string_dyn_*)
...
New functions:
- string_dyn_alloc
- string_dyn_copy
- string_dyn_concat
- string_dyn_free
2017-03-25 14:18:19 +01:00
Sébastien Helleu
a5b00ec979
trigger: check that regex pointers are not NULL in function "trigger_regex_free"
2017-03-25 14:09:01 +01:00