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 no wrap in buffer #47

Open
nda-cunh opened this issue Oct 30, 2024 · 9 comments
Open

add no wrap in buffer #47

nda-cunh opened this issue Oct 30, 2024 · 9 comments

Comments

@nda-cunh
Copy link

image

with FuzzyFiles , print files content with set nowrap

@Donaldttt
Copy link
Owner

Then some text might be invisible. Are you suggesting to also add hotkey to navigate around the preview window?

@nda-cunh
Copy link
Author

nda-cunh commented Dec 3, 2024

it's a preview window so it doesn't really matter, does it?

@mmrwoods
Copy link
Collaborator

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.

@nda-cunh
Copy link
Author

I've disabled it in the file search only, but I'm not sure if adding this option is really useful anymore :)

@mmrwoods
Copy link
Collaborator

mmrwoods commented Feb 18, 2025

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...

@nda-cunh
Copy link
Author

I have modify the code, but maybe I'll go code my fuzzyfile for sort and remove .o and other folder directly in Selector

@mmrwoods
Copy link
Collaborator

RE removing files or folders from the results, see g:fuzzyy_exclude_file and g:fuzzyy_exclude_dir, should do the trick :-)

@nda-cunh
Copy link
Author

yes but it work only with ripgrep but in my school we have only grep by default

@mmrwoods
Copy link
Collaborator

mmrwoods commented Feb 24, 2025

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.

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

3 participants