Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tab bar does not scroll horizontally #4

Open
dead10ck opened this issue Apr 7, 2021 · 8 comments
Open

tab bar does not scroll horizontally #4

dead10ck opened this issue Apr 7, 2021 · 8 comments

Comments

@dead10ck
Copy link

dead10ck commented Apr 7, 2021

When there are more buffers open than can fit into the bar, the ellipsis just stays at the beginning, and does not attempt to move so that you can see the current buffer highlighted. It should probably instead move which section of the bar is hidden with ellipses, so that when you are looking at a buffer near the beginning of the list, the ellipses are shown at the end, and if you are in the middle of a long list, ellipses should be shown at both left and right ends.

@enricozb
Copy link
Owner

enricozb commented Apr 7, 2021

This is a known problem. I've thought a lot about how to implement this but I'm unsure what the best way is. I'll try see if I can implement a fix for this over the weekend. Thanks for raising this.

@enricozb
Copy link
Owner

enricozb commented Apr 14, 2021

Ok, I've tried implementing something to solve this. Please have a look at the readme under the Overflow and Reserving Space for Tabs sections of the readme, and update to this commit (f9396b2) implements the behavior you want with the scroll mode.

Note that the scroll mode depends on luar, so please plug that as well.

@dead10ck
Copy link
Author

Hi @enricozb thanks so much for working on this! I tried out the latest master, and it looks like scroll mode is not working. I have this config:

plug "gustavo-hms/luar" %{
    require-module luar
}

plug "enricozb/tabs.kak" %{
  set-option global modelinefmt_tabs '%val{cursor_line}:%val{cursor_char_column} {{context_info}} {{mode_info}}'
  set-option global tabs_overflow "scroll"
  map global user t ': enter-user-mode tabs<ret>' -docstring 'tabs'
  map global user T ': enter-user-mode -lock tabs<ret>' -docstring 'tabs (lock)'
}

and it looks like it is still shrinking instead of scrolling.

@enricozb
Copy link
Owner

Thanks for trying this out! Can you send a screenshot of the behavior?

@dead10ck
Copy link
Author

dead10ck commented Apr 16, 2021

Sure, here's one. We can see all the names are cut off on the left.

image

@skarekrow
Copy link

@enricozb Seems this got removed when you did the clean slate commit. Any plans on it coming back?

@enricozb
Copy link
Owner

enricozb commented Oct 9, 2024

@skarekrow Which branch/commit are you using?

@skarekrow
Copy link

@enricozb I'm using the latest on main: 88ad99561f48efaed36713f59c7f217f50be719b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants