... which feels quite janky (using exactly 50 ?) and also only highlights the part not beyond 50 characters:
The docs do not really elaborate on what can be used aside the globbing pattern in the example. I tested regex in ZSH_HIGHLIGHT_PATTERNS which does not work.
[^1]: Essentially, I am looking for something like this regex: /(?<=git commit -m .{50,}).+/
Not sure whether something like that is already possible – the docs on custom highlight patterns are rather brief – but is it possible to use more advanced pattern matching than globbing, i.e. regex?
So I want to highlight part of the buffer when a git commit messages goes beyond 50 characters.[^1] The best I could come up with is
... which feels quite janky (using exactly 50
?
) and also only highlights the part not beyond 50 characters:The docs do not really elaborate on what can be used aside the globbing pattern in the example. I tested regex in
ZSH_HIGHLIGHT_PATTERNS
which does not work.[^1]: Essentially, I am looking for something like this regex:
/(?<=git commit -m .{50,}).+/