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

Disable preview for tab completion #264

Open
daephx opened this issue Mar 25, 2024 · 3 comments
Open

Disable preview for tab completion #264

daephx opened this issue Mar 25, 2024 · 3 comments

Comments

@daephx
Copy link

daephx commented Mar 25, 2024

With my setup the preview window for tab completion is too vertically narrow to be of any real use and I am not a fan of it being enabled by default.

Looking around the docs and code It's not clear to me if this is even possible with the current implementation.
If this is in-fact possible, I would appreciate some pointers. Otherwise I think this is a issue.

@yanghanlin
Copy link

Same issue here. The preview window causes some lag on my machine, but I can't find any option to disable it.

@marco9446
Copy link

You can achieve that by setting an option for fzf itself.
In my powershell profile i have

[Environment]::SetEnvironmentVariable("FZF_DEFAULT_OPTS", "--preview-window=hidden")

@daephx
Copy link
Author

daephx commented Jan 14, 2025

That works if you just want to remove it completely and your config is fairly simple.
But that would have consequences for my setup, on Windows I want it disabled, on Linux I have zsh setup with a zstyle to enable the preview. By setting preview-window=hidden I would make it hidden by default on both systems because I use the FZF_DEFAULT_OPTS_FILE environment variable.

Edit: whoops, miss clicked the close issue button.

@daephx daephx closed this as completed Jan 14, 2025
@daephx daephx reopened this Jan 14, 2025
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