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

fix: remove default item_width #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

medanisjbara
Copy link

I'm not sure if you'd be interested in this change.

I have noticed that non-selected items seem to be showing in a separate line from the prefix.

image

This only seems to be the case for unselected items.

image

At first, this sounded like a terminal specific problem. But i have tried a bunch of terminal emulators (mainly foot and xfce4-terminal) and the problem seems to persist.

Note that the problem does not seem to depend on the value of item_width (I have tried values as big as 5000 and the problem still persisted).

I believe making item_width an option that is only passed to gum when set is a good solution for this problem. I am not sure if the problem used to exist with gum or not, and I think sending them a PR is a better fix than making a PR here (since it'd fix the problem at it's root). But I figured (since I'm already using this) that you might be interested in merging this until gum is fixed.

Verified

This commit was signed with the committer’s verified signature.
weblate Weblate (bot)
This commit edits gum_chooser so that item_width is only passed when a
value is provided.

Removing default item_width seems to fix `[ ]` and the actual entry
being in separate lines.
@medanisjbara
Copy link
Author

I might try fixing gum or git-bisecting it .. but no promises.

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

Successfully merging this pull request may close these issues.

None yet

1 participant