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

Tab completion does not handle spaces well #152

Open
justinlovinger opened this issue May 8, 2020 · 2 comments
Open

Tab completion does not handle spaces well #152

justinlovinger opened this issue May 8, 2020 · 2 comments

Comments

@justinlovinger
Copy link

justinlovinger commented May 8, 2020

If a file has spaces, tab completion does not escape the spaces or surround with quotes.

Additionally, if preview is enabled, fzf only shows files up to the first space. I believe this is related to with-nth=1. The preview also breaks when a file has a space. Up to the first space is passed as the first argument to __fzf_complete_preview, with everything after the first space passed as the 2nd, 3rd, etc. arguments.

@justinlovinger
Copy link
Author

It looks like FZF_ENABLE_OPEN_PREVIEW has similar issues with spaces in preview. I got fzf preview working with --preview-window=right:wrap --preview="__fzf_complete_preview {}".

@jswny
Copy link

jswny commented Jul 22, 2020

This is a known issue and unfortunately looks like it's a problem upstream with complete -C. See this issue for more: #122.

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

2 participants