add no wrap in buffer
Closed this issue · 10 comments
Then some text might be invisible. Are you suggesting to also add hotkey to navigate around the preview window?
it's a preview window so it doesn't really matter, does it?
This might not matter so much for finding files (e.g. FuzzyFiles), but it does matter for finding in files (e.g. FuzzyGrep), so, IMHO anyway, it would not make sense to disable wrap for all preview windows.
It might make sense as a window layout option though, allowing wrap to be set to false for the preview window if desired.
I've disabled it in the file search only, but I'm not sure if adding this option is really useful anymore :)
I've disabled it in the file search only, but I'm not sure if adding this option is really useful anymore :)
How have you disabled it in the file search only? By modifying the code or adding your own :FuzzyFiles command?
Making your own :FuzzyFiles command should be quite easy if that's not what you've done, add a function that calls files.start(), capture the return value, a dict of window ids, use that to modify the properties of the preview popup. It would, of course, be subject to breaking change as this isn't really a public api, but...
I have modify the code, but maybe I'll go code my fuzzyfile for sort and remove .o and other folder directly in Selector
RE removing files or folders from the results, see g:fuzzyy_exclude_file and g:fuzzyy_exclude_dir, should do the trick :-)
yes but it work only with ripgrep but in my school we have only grep by default
Are you sure git-grep isn't being invoked here rather than grep? g:fuzzyy_exclude_file and g:fuzzyy_exclude_dir should work fine with grep, but if you are in a git repo, git-grep is normally used instead for performance reasons, and git-grep does not support custom excludes supplied as command line arguments (but it will obviously respect .gitignore).
You can disable the fallback to git-grep by setting g:fuzzyy_respect_gitignore to false/0.
@nda-cunh better late than never... g:fuzzbox_preview_wrap is now an option, I did toy with not adding it at all, and only adding g:fuzzbox_wrap and apply it to the menu, but added g:fuzzbox_menu_wrap and g:fuzzbox_preview_wrap in the end to allow people to disable wrap in the preview if they really don't like it.
menu_wrap and preview_wrap are also valid in opts passed to selector.Start() (the global vars override the defaults)
