-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
No max length limit of --query or multiple line layout support #1312
Comments
I don't think it's worth the effort. What would be the point of allowing exceptionally long query strings? Also, the time complexity of the search algorithm of fzf is proportional to the length of the query, so having some limit makes sense in that regard as well. |
this is my scenario, I'm using cmux (https://github.com/kakao/cmux) to operation a huge cluster, which filter the node by fzf. |
Interesting, thanks for the clarification. I think I'm going to make the query prompt horizontally scrollable, so that longer queries can be typed in. But I'm still going to put some limit on the maximum length of a query. How long do you think your query will grow? Is 300-char limit enough? |
@junegunn can we just provide a switch to set the maximum length of a query, 300 char works at most of times, but it should have the ability to work at 3000 or 30000. |
Can you describe what you're trying to achieve with such a long query on cmux in detail? Typing in tens or hundreds of hostnames doesn't sound like an elegant solution. I happen to be one of the maintainers of cmux, so if your use case sounds valid, I can consider adding features to cmux that might allow you to achieve the same more efficiently. |
@junegunn My case is rolling restart hundreds or thousands roles(like datanode, nodemanager). I just add a switch for rolling restart just like
Then I can restart these roles without typing and choosing, and the query contains a lot hostnames which are not easy to describe by regex. The query are generated by a script. |
I see. I'll discuss the issue with the main author of cmux. |
I came up against the query length limit just now; I'm using fzf to get a live preview of an ffmpeg filtergraph, using my fzfrepl script. I was unable to enter this 307 chars long example:
(obtained from here: https://video.stackexchange.com/questions/22769/ffmpeg-filter-complex-says-filter-not-connected-to-source/34531#34531). |
It seems that the --query switch can pass a very long content, but it will be truncated.
The interactive query length also limited by the terminal/window size.
So if it can be a solution with multiple line layout support for the query?
The text was updated successfully, but these errors were encountered: