4675 Commits

Author SHA1 Message Date
Sébastien Helleu
df00926d35 core: add option weechat.completion.nick_case_sensitive (closes #981) 2017-05-06 10:18:44 +02:00
Sébastien Helleu
90a9a1fb96 buflist: add option buflist.look.enabled 2017-05-05 23:24:02 +02:00
Sébastien Helleu
07b7be0357 core: fix memory leak in display of mouse event debug info 2017-05-04 07:29:24 +02:00
Sébastien Helleu
b9d4fc7e18 buflist: add all buffer hdata in focus callback 2017-05-03 20:40:33 +02:00
Sébastien Helleu
d73b54758c irc: add option "open" in command /server (closes #966) 2017-05-02 07:38:45 +02:00
Sébastien Helleu
90752a0458 buflist: fix sort of merged and inactive buffers 2017-04-30 09:59:44 +02:00
Sébastien Helleu
1fc06ba0ac core: improve translation of /help eval 2017-04-29 17:39:50 +02:00
Simmo Saan
1329dfb57a core: add wildcard matching operators to eval (closes #608) 2017-04-29 17:04:44 +02:00
Tobias Stoeckmann
b297c2d56e irc: fix crash in case of invalid server reply during SASL authentication with dh-blowfish or dh-aes mechanism
These mechanisms are not recommended anyway because they are considered as
insecure.
2017-04-27 21:20:29 +02:00
Sébastien Helleu
a21a31e3ca buflist: add support of hdata "irc_server" and "irc_channel" in sort option (closes #968) 2017-04-26 20:22:06 +02:00
Sébastien Helleu
8edca0dd75 buflist: add pointers to IRC server and channel
New pointers in evaluated formats:

- irc_server: IRC server
- irc_channel: IRC channel
2017-04-25 21:07:15 +02:00
Sébastien Helleu
a10b2bc36a buflist: add option buflist.format.nick_prefix 2017-04-25 20:31:08 +02:00
Sébastien Helleu
49cdbaab38 core: fix check of condition in ${if:...} (evaluated strings) 2017-04-25 19:41:49 +02:00
Sébastien Helleu
2a43f45947 core: fix command /cursor stop (do not toggle cursor mode) (closes #964) 2017-04-25 07:20:34 +02:00
Sébastien Helleu
a96d27f236 core: add new cut formats in function comment 2017-04-25 07:19:02 +02:00
Sébastien Helleu
112bebcddf core: add a way to count the suffix length in max chars displayed in cut of string ("cut:" and "cutscr:") (closes #963)
The format to use is one of:

- ${cut:+max,suffix,string}
- ${cutscr:+max,suffix,string}

With the "+" before max, WeeChat ensures there are at most "max" chars in
output, including the length of suffix string.
2017-04-24 22:37:49 +02:00
Sébastien Helleu
671c216eb3 buflist: add option buflist.format.indent 2017-04-23 14:49:04 +02:00
Sébastien Helleu
2606b8a5a3 script: remove option script.scripts.url_force_https, use HTTPS by default in option script.scripts.url (issue #253) 2017-04-23 14:11:27 +02:00
Sébastien Helleu
94355e2e38 core: ensure length is not negative in function string_strndup 2017-04-22 15:15:54 +02:00
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 af138840b3484e106d247c4a6a18a28e8225f5bb.
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