Sébastien Helleu
e5e3a9d2da
api: add function buffer_new_props ( closes #1759 )
2022-03-13 10:35:29 +01:00
Trygve Aaberge
197a7a01e4
scripts: allow null values in config_new_option
...
The plugin API function config_new_option accepts null as the
default_value and/or value however the scripting APIs (except for lua)
didn't allow sending null as a parameter value, so it was impossible to
use it this way. This allows sending a null value for these parameters.
Lua already supported sending in nil for these parameters and it works
as expected, so nothing is changed for this plugin.
For Guile you can now send in #nil, for JavaScript null or undefined,
for Perl undef, for PHP NULL, for Python None, for Ruby nil and for Tcl
$::weechat::WEECHAT_NULL.
In all of these languages except Tcl this is the special value
indicating a missing value. However Tcl only has one type, string, so it
doesn't have a null value. Therefore I created a constant with the value
`\uFFFF\uFFFF\uFFFFWEECHAT_NULL\uFFFF\uFFFF\uFFFF` which is used
instead. This is very unlikely to appear unintentionally. Using the
unicode code point \uFFFF was suggested on
https://wiki.tcl-lang.org/page/null .
I tested this with these scripts:
https://gist.github.com/trygveaa/f91977dde5d2876d502bf55fbf9b50cc
2022-03-12 16:00:38 +01:00
Trygve Aaberge
d359e8135e
doc/api: Add missing parameter to python prototype for config_new_section
2022-02-20 16:49:04 +01:00
Sébastien Helleu
a2bb57bf82
doc/api: add missing type for argument "count" in Python prototype of function ngettext
2022-02-14 07:25:22 +01:00
Sébastien Helleu
9259442dbf
core: add support of date and tags in messages displayed in buffers with free content, add function printf_y_date_tags ( closes #1746 )
2022-01-30 11:41:06 +01:00
Sébastien Helleu
bf3241208b
doc/api: fix type of parameter "date" in script prototype of function prnt_date_tags
2022-01-30 11:01:17 +01:00
Sébastien Helleu
05eb897771
doc/api: merge examples and results in same column (function string_eval_expression)
2022-01-27 21:15:34 +01:00
Sébastien Helleu
113f93e5db
doc/api: add column "Min WeeChat" in string_eval_expression tables
2022-01-27 20:01:46 +01:00
Sébastien Helleu
c775242a4c
doc: remove useless comparison with empty string in Python examples (plugin API reference)
2022-01-16 10:15:55 +01:00
Sébastien Helleu
f8915129bf
core: rename argument "length" to "bytes" in function string_strndup
2022-01-14 21:41:25 +01:00
Sébastien Helleu
286338f627
doc: add missing macro WEECHAT_PLUGIN_AUTHOR (plugin API reference)
2022-01-08 17:05:51 +01:00
Sébastien Helleu
c8776b14f6
doc: switch from prettify to pygments for syntax highlighting
2021-11-27 16:05:28 +01:00
Sébastien Helleu
b3cf7658f7
doc: replace ${name} by ${server_name} in example of function hdata_search (plugin API reference)
2021-11-06 16:03:40 +01:00
Sébastien Helleu
2da2172593
api: add parameters pointers, extra_vars and options in function hdata_search
2021-11-06 15:59:18 +01:00
Sébastien Helleu
5e08f9876a
core: fix access to integer/long/time arrays in hdata, add support of static arrays in hdata
2021-11-04 23:55:02 +01:00
Sébastien Helleu
c4b4d80936
irc: parse and return command parameters in message parser
2021-10-17 21:28:30 +02:00
Sébastien Helleu
a6826af796
core: add creation of user variables in evaluated expressions with ${define:name,value}
2021-09-20 21:15:28 +02:00
Sébastien Helleu
5b3929b321
api: add split of string and shell arguments in evaluation of expressions
...
Split of string: ${split:number,separators,flags,xxx}
Split of shell arguments: ${split_shell:number,xxx}
2021-09-06 13:32:04 +02:00
Sébastien Helleu
2de272ee6c
api: add "${re:repl_index}" to get the index of replacement in function string_eval_expression
2021-08-29 10:40:52 +02:00
Sébastien Helleu
d89c4f559c
api: add random integer number in evaluation of expressions with "random:min,max"
2021-08-03 19:46:41 +02:00
Sébastien Helleu
5b87e0c544
api: add function string_cut
2021-07-04 13:27:33 +02:00
Sébastien Helleu
09d871deb4
doc: add column for min WeeChat version in function buffer_set (plugin API reference)
2021-07-04 13:27:33 +02:00
Sébastien Helleu
503a3cb755
doc: add column for min WeeChat version in function hook_set (plugin API reference)
2021-07-04 13:27:33 +02:00
Sébastien Helleu
c127d1693a
doc: add column for min WeeChat version in function hook_modifier_exec (plugin API reference)
2021-07-04 13:27:33 +02:00
Sébastien Helleu
134f4374f8
doc: add column for min WeeChat version in function hook_modifier (plugin API reference)
2021-07-04 13:27:33 +02:00
Sébastien Helleu
ab916d3d90
doc: add column for min WeeChat version in function hook_hsignal (plugin API reference)
2021-07-04 13:27:33 +02:00
Sébastien Helleu
3d54365d67
doc: add column for min WeeChat version in function hook_process_hashtable (plugin API reference)
2021-07-04 13:27:33 +02:00
Sébastien Helleu
3c920f9a80
doc: add typing signals in plugin API reference
2021-07-04 13:27:33 +02:00
Sébastien Helleu
8a11a18dc5
api: add function file_copy (issue #1667 )
2021-07-03 16:04:50 +02:00
Sébastien Helleu
253598d83c
doc: mention WeeChat version for WEECHAT_RC_OK_EAT in signals "irc_raw_in" and "irc_in" (plugin API reference) (issue #1657 )
2021-06-27 09:56:45 +02:00
Simon Ser
ff8beb1918
irc: allow signals "irc_raw_in" and "irc_in" to eat messages (issue #1657 )
...
This is useful to implement IRC protocol extensions which introduce
new commands.
2021-06-27 09:48:16 +02:00
Sébastien Helleu
a48a615613
api: remember insertion order in hashtables
2021-06-26 21:37:02 +02:00
Sébastien Helleu
b1cf12700d
irc: add keys/values with tags in output of irc_message_parse_to_hashtable (issue #1654 )
...
Key is "tag_xxx" (where "xxx" is the name of tag) and value is the unescaped
tag value.
2021-06-24 21:02:03 +02:00
Sébastien Helleu
23c46c3f2b
irc: escape/unescape IRC message tags values (issue #1654 )
...
Spec: https://ircv3.net/specs/extensions/message-tags#escaping-values
2021-06-24 20:59:21 +02:00
Sébastien Helleu
5cffb7179f
api: add function crypto_hmac (issue #1628 )
2021-06-01 20:39:04 +02:00
Filip H.F. "FiXato" Slagter
ddc5d56a65
Typo fix
...
Zomming -> Zooming
2021-05-26 19:53:11 +02:00
Sébastien Helleu
dfdd5b1c50
core: add signals "cursor_start" and "cursor_end"
2021-05-26 08:53:31 +02:00
Sébastien Helleu
14c5e656f2
doc: replace freenode by libera in plugin API reference
2021-05-25 07:13:44 +02:00
Sébastien Helleu
5bce484c01
api: add translated string in evaluation of expressions with "translate:xxx" (issue #1622 )
2021-05-16 10:01:03 +02:00
Sébastien Helleu
fafe2c9d2e
doc: add type annotations in Python prototypes (plugin API reference) (issue #1377 )
2021-05-13 20:24:59 +02:00
Sébastien Helleu
70cdf21681
doc: add XDG directories support in docs (issue #1285 )
2021-05-11 21:07:30 +02:00
Sébastien Helleu
8ee7d46605
api: add support of pointer names in function string_eval_expression (direct 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-17 21:57:16 +01:00
Sébastien Helleu
a93e598c35
core: add raw string in evaluation of expressions with "raw:xxx" ( closes #1611 )
2021-02-05 20:07:16 +01:00
Sébastien Helleu
943374f789
doc: add note about call to "regfree" after call to "string_regcomp" (plugin API reference)
2021-01-01 18:10:47 +01:00
Sébastien Helleu
2ad3da03a2
core: display more verbose debug with two "-d" in command /eval
...
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-31 20:37:43 +01:00
Sébastien Helleu
1526f58d7a
doc: replace "core" by "weechat" in table with extra info for bar item "buffer_nicklist" (plugin API reference)
2020-12-19 15:00:02 +01:00
Sébastien Helleu
b626df72fb
core: add evaluation of conditions in evaluation of expressions with "eval_cond:" ( closes #1582 )
2020-11-14 09:28:46 +01:00
Sébastien Helleu
cfd221014c
api: add argument "bytes" in function string_dyn_concat
2020-08-23 23:27:57 +02:00
Sébastien Helleu
268aa631c6
api: add function string_color_code_size (issue #1547 )
2020-08-22 08:55:16 +02:00
Sébastien Helleu
c002c5f77f
doc: add "irc_nick" in hashtable sent to hook_focus callback (plugin API reference) (issue #1538 )
2020-07-21 08:28:01 +02:00