Allows maxwidth to be dynamic such as calculating a percentage of the width of the editor.
Let me know if this is a change you like. I also know it's possible to just hack this together using the before function, but it's also nice to get built in support with the ellipsis_char and not having to duplicate truncation code.
Allows
maxwidth
to be dynamic such as calculating a percentage of the width of the editor.Let me know if this is a change you like. I also know it's possible to just hack this together using the
before
function, but it's also nice to get built in support with theellipsis_char
and not having to duplicate truncation code.