1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

core: add hdata_count in /help eval

This commit is contained in:
Sébastien Helleu
2024-06-23 22:45:09 +02:00
parent 7cab57fba1
commit cb4aa8ea65
15 changed files with 119 additions and 15 deletions
+3
View File
@@ -8464,6 +8464,8 @@ command_init ()
N_(" - ${random:min,max}: a random integer number between \"min\" and \"max\" (inclusive)"),
N_(" - ${translate:string}: the translated string"),
N_(" - ${define:name,value}: declaration of a user variable (return an empty string)"),
N_(" - ${hdata_count:name[list]}: number of items in this hdata with list"),
N_(" - ${hdata_count:name[ptr]}: number of items in this hdata with pointer"),
N_(" - ${sec.data.xxx}: the value of the secured data \"xxx\""),
N_(" - ${file.section.option}: the value of the config option"),
N_(" - ${name}: the local variable in buffer"),
@@ -8527,6 +8529,7 @@ command_init ()
AI(" /eval -n ${window.buffer.number} ==> 1"),
AI(" /eval -n ${buffer.local_variables.keys_values()} ==> plugin:core,name:weechat"),
AI(" /eval -n ${buffer.local_variables.plugin} ==> core"),
AI(" /eval -n ${hdata_count:buffer[gui_buffers]} ==> 15"),
AI(" /eval -n ${\\t} ==> <tab>"),
AI(" /eval -n ${chars:digit} ==> 0123456789"),
AI(" /eval -n ${chars:J-T} ==> JKLMNOPQRST"),