-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
long-line wrap on preview window #756
Comments
Usually I would suggest the approach but I can understand the pain in this case. It's not easy to know the exact width of the preview window from the script. I think we can consider extending |
Thanks. nowrap option sounds good. I would actually even consider doing the opposite, i.e. make nowrap the default and add a wrap behavior. I am willing to bet most people that use fzf are looking at source code, and for source code preview line wrapping is almost always NOT what you want. Do you want a PR for this feature, or do you already have an idea of how to implement this. |
I'll look into it when I get some time. Thanks. I'll also think about changing the default. |
Pushed to master. Now, one has to add Hmm, I need to fix linux build. |
I'm using the current version of fzf and on Linux lines are still wrapped in the preview window. Is that a known issue? |
defintely not a known issue: preview wrap works well and is even enabled by default. I just confirmed it by running the following:
Please try running If your problem indeed persist, I would suggest checking the COLUMNS and LINES environment variable, as well as reporting the terminal emulator that you are using. |
Sorry, my fault, I was running fzf 0.15.9. On my system, fzf is updated by my vim plugin manager and since I made some changes to |
fzf performs line wrap on long lines on its preview window. Sometimes this is not desirable, while I can try to fix this using cut and other bash utilities, it makes all the scripts unnecessarily complicated.
It would be great if fzf supported an option to truncate long lines on the preview window.
The text was updated successfully, but these errors were encountered: