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

Dynamically Size Treble Entry Display #18

Open
ryanoneill opened this issue Jun 4, 2023 · 1 comment
Open

Dynamically Size Treble Entry Display #18

ryanoneill opened this issue Jun 4, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@ryanoneill
Copy link
Owner

The code for the 3 column widths (buffer number, icon, and buffer name) are currently statically sized at 5, 5, and 40 respectively. This was done to make initial development of the plugin easier and to remove unnecessary complexity at the time.

The downside to this is that the spacing between columns is wonky and buffer names can be unceremoniously cut off when there is space remaining to display them.

The widths should be adjusted dynamically based on the size of the elements and the size of the display (if feasible).

buffer-name-cutoff

@ryanoneill ryanoneill added the bug Something isn't working label Jun 4, 2023
@ryanoneill
Copy link
Owner Author

Widths are currently hardcoded via the following functions:

local function icon_width()
  return 5
end

local function buffer_number_width()
  return 5
end

local function buffer_name_width()
  return 40
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant