Sébastien Helleu
6ab7af705e
tests: fix tests on dynamic strings
2017-04-01 12:16:12 +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
f855b6b0f3
core: update ChangeLog
2017-03-31 21:11:17 +02:00
Sébastien Helleu
d61dfac5b5
core: replace python dependency by python2-devel for Cygwin
2017-03-31 21:08:02 +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
85bb23f8cb
core: update ChangeLog
2017-03-30 22:15:16 +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
454a4b14b2
doc: remove "translation missing" tag in French user's guide
2017-03-29 19:59:59 +02:00
Sébastien Helleu
eb2d0ac58a
tests: add tests on combining characters in cut/cutscr (evaluation of expression)
2017-03-28 22:09:11 +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
ee82ba7461
doc: fix note about libncursesw5-dev dependency in user's guide
2017-03-27 21:40:02 +02:00
Sébastien Helleu
0fbca41d88
doc: rewrite note about libncursesw5-dev dependency in user's guide
2017-03-27 21:32:01 +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
7d47652c99
doc: update Japanese auto-generated files
2017-03-26 15:31:30 +02:00
Sébastien Helleu
86128bdc87
Merge pull request #939 from l/master/translation/ja_JP
...
core: update Japanese translations
2017-03-26 15:28:11 +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
Sébastien Helleu
df833d9ba8
doc: fix some translations of "library" in French
2017-03-26 08:20:20 +02:00
Sébastien Helleu
d4618e45cb
core: fix typo librairies -> libraries
2017-03-26 08:19:26 +02:00
arza
24fd69e42c
core: support local variables in /buffer get
2017-03-26 08:14:41 +03:00
AYANOKOUZI, Ryuunosuke
5ce678bf75
core: update Japanese translations
2017-03-26 09:00:00 +09: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
370fbeb5a3
doc: add command /buflist in user's guide
2017-03-25 15:20:31 +01:00
Sébastien Helleu
fb66eeec79
core: update translations
2017-03-25 15:13:18 +01:00
Sébastien Helleu
f54ed11f1d
core: update ChangeLog
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
6b8c5381d4
doc: add buflist plugin in FAQ
2017-03-25 14:19:48 +01:00
Sébastien Helleu
64a8c6d2ae
doc: add buflist plugin in developer's guide
2017-03-25 14:19:48 +01:00
Sébastien Helleu
b77e0a2c6f
doc: add buflist plugin in user's guide
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
ce5dafa6dc
doc: add buflist options in documentation generator
2017-03-25 14:18:19 +01:00