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

Add support for long words #62

Open
duot opened this issue Feb 25, 2024 · 1 comment
Open

Add support for long words #62

duot opened this issue Feb 25, 2024 · 1 comment

Comments

@duot
Copy link

duot commented Feb 25, 2024

Hi there,

I want to address this issue and add support for long words.

It goes into an infinite loop when given a file with exclusively long words (length > 8). Link to line. This issue may also occur for files all filled with single chars or containing non-ASCII chars.

Replicate:

cat /usr/share/dict/words | awk 'length($0) >= 9' | head -n 5 > long-words
toipe -f long-words

At the least, it shouldn't hang. I don't know how best to handle this yet.

To support long words would you want to add a config (instead of this)? Or remove this check if the source is a custom word list file?

@duot duot changed the title Ass support for long words Add support for long words Feb 25, 2024
@Samyak2
Copy link
Owner

Samyak2 commented Feb 25, 2024

Or remove this check if the source is a custom word list file?

That sounds good. This check was only added because some OS wordlists have huge words that make typing harder.


Also, I'm working on a better word selector that should fix many long standing issues and will be more configurable (at least it shouldn't hang!)

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

2 participants