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

How to change the size of floating-big-letter? #69

Closed
inyutin opened this issue Sep 21, 2023 · 1 comment · Fixed by #74 or #76
Closed

How to change the size of floating-big-letter? #69

inyutin opened this issue Sep 21, 2023 · 1 comment · Fixed by #74 or #76

Comments

@inyutin
Copy link

inyutin commented Sep 21, 2023

Hello!

Thank you for your work, that's a wonderful plugin, very useful!
I have only one question: how to change the size of floating-big-letter? Can I make it smaller or maybe I can make it size depend on window size?

I use this plugin for closing windows without changing focus to them. Usually I need to close LSP references at the bottom. With floating letter it start to look like this:
image

The letter on the bottom is "D", it got cropped and became unreadable. So with smaller sizes this could be solved

lamchau added a commit to lamchau/nvim-window-picker that referenced this issue Oct 15, 2023
Instead of calculating width based on 2nd index of a line, we calculate
it based on the longest length instead. Without it, we have rendering
issues on "wide" characters being forcibly wrapped.

This enables future support of custom fonts via `figlet` or `toilet`.

Fixes: s1n7ax#69
@s1n7ax
Copy link
Owner

s1n7ax commented Dec 16, 2023

It's a floating window. It shouldn't shrink like that.

image

Unfortunately, this is just faking big letters using various characters. So, only way to do this creating a new set of characters that's smaller. I used this application to create letters.

https://patorjk.com/software/taag/

s1n7ax pushed a commit that referenced this issue Dec 16, 2023
Instead of calculating width based on 2nd index of a line, we calculate
it based on the longest length instead. Without it, we have rendering
issues on "wide" characters being forcibly wrapped.

This enables future support of custom fonts via `figlet` or `toilet`.

Fixes: #69
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants