Closed edshamis closed 1 year ago
Oh, yes, I think this is a necessary improvement. Recently I read the doc. Nvim/Vim has a truncate point to control where to truncate the tabline. But I didn't use it before, I must do some tests and trials.
For now, "tabby.nvim" use the nvim native tabline option to render the tabline. Since that the priority field has seemed hard to implement, depending on the behavior of "truncate point",
Nice. Is it possible for now at least disable windows list completely if and when width isn't sufficient?
On Thu, Nov 17, 2022, 08:01 crows @.***> wrote:
Oh, yes, I think this is a necessary improvement. Recently I read the doc. Nvim/Vim has a truncate point to control where to truncate the tabline. But I didn't use it before, I must do some tests and trials.
For now, "tabby.nvim" use the nvim native tabline option to render the tabline. Since that the priority field has seemed hard to implement, depending on the behavior of "truncate point",
— Reply to this email directly, view it on GitHub https://github.com/nanozuki/tabby.nvim/issues/93#issuecomment-1318127671, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALNR4FWSSB36FRAD2IZGLRDWIXC2RANCNFSM6AAAAAASCU5QTE . You are receiving this because you authored the thread.Message ID: @.***>
If you use presets config, you can choose the tab_only
presets.
I add a function line.truncate_point() to add a truncate point. You can add it before the window labels, such as:
line.spacer(),
line.truncate_point(),
line.wins_in_tab(line.api.get_current_tab()).foreach(function(win)
return {
-- window label
}
end),
When the width becomes less, characters will be disappeared at that point.
Thanks!. I ended up with tabs only, I like this simple look.
On Wed, 30 Nov 2022 at 10:25, crows @.***> wrote:
I add a function line.truncate_point() https://github.com/nanozuki/tabby.nvim/blob/main/doc/tabby.txt#L292 to add a truncate point. You can add it before the window labels, such as:
line.spacer(), line.truncate_point(), line.wins_in_tab(line.api.get_current_tab()).foreach(function(win) return { -- window label } end),
— Reply to this email directly, view it on GitHub https://github.com/nanozuki/tabby.nvim/issues/93#issuecomment-1331796757, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALNR4FVHUZNRW4FAOTIALBDWK4FQXANCNFSM6AAAAAASCU5QTE . You are receiving this because you authored the thread.Message ID: @.***>
Thanks for the great plugin, really enjoy it.
Currently when the screen width is too short the tabline is truncated on the left side, hiding the tabs. I would prefer to truncate the windows list instead. Is it possible? If not, can it be added? A more global solutions, I'm thinking about, would be giving each tabline chunk some truncation priority field. What do you think?