enhancement: allow max length for label, prevent label from covering up buffer content
unphased opened this issue · 2 comments
unphased commented
luckasRanarison commented
There's already the label_fmt
option, you could do something like this:
{
sings = {
label_fmt = function(actions)
local title = actions[1].title
return #title < 20 and title or title:sub(1, 20) .. "..." -- truncating
end
}
}
unphased commented
Fantastic.