You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to have syntax highlighting for eval. It would be available in two ways
using /eval -h
using ${highlighting:...}
the highlighting variable would have the second top priority (so just after raw). Nothing would be evaluated inside highlighting (exactly like raw does).
So if the cut variable is green and the rev variable is red, both
/eval -h ${cut:1,,${rev:hello}}
and
/eval -n ${highlighting:${cut:1,,${rev:hello}}}
will print
We could also have an option similar to weechat.color.chat_nick_colors which contains a list of colors and an option similar to weechat.look.nick_color_hash taking an algorithm so the color will be choosed automatically
All ${info:...} would be colored the same way no matter the info name, same for ${modifier:...} OR different color not sure what is the best here
the ${define:...} is interesting since it priority allow it to redefine variable so for example what the color the following ${info:version} should be
Feature description
It would be useful to have syntax highlighting for eval. It would be available in two ways
the highlighting variable would have the second top priority (so just after raw). Nothing would be evaluated inside highlighting (exactly like raw does).
So if the cut variable is green and the rev variable is red, both
/eval -h ${cut:1,,${rev:hello}}
and
/eval -n ${highlighting:${cut:1,,${rev:hello}}}
will print
We could also have an option similar to weechat.color.chat_nick_colors which contains a list of colors and an option similar to weechat.look.nick_color_hash taking an algorithm so the color will be choosed automatically
All ${info:...} would be colored the same way no matter the info name, same for ${modifier:...} OR different color not sure what is the best here
the ${define:...} is interesting since it priority allow it to redefine variable so for example what the color the following ${info:version} should be
/eval -h ${define:info:version,hello}${info:version}
the color for info or the color for custom variables ?
This feature is useful in many scenario, for example
/eval ${modifier:irc_color_decode_ansi,1,${modifier:color_encode_ansi,,${highlighting:${cut:1,,${rev:hello}}}}}
The text was updated successfully, but these errors were encountered: