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

counsel-find-file-occur can't handle directory names with spaces #1323

Closed
oantolin opened this issue Nov 27, 2017 · 1 comment
Closed

counsel-find-file-occur can't handle directory names with spaces #1323

oantolin opened this issue Nov 27, 2017 · 1 comment

Comments

@oantolin
Copy link

@oantolin oantolin commented Nov 27, 2017

It currently uses the command template "ls | grep -i -E '%s' | xargs ls"to generate the file list, but xargs by default uses arbitrary whitespace as the delimiter, so this breaks up file names with spaces. I suggest changing the last part to xargs -d '\n' ls, which will work better (it still doesn't protect you against file names with newlines in them...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.