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

Comments

Projects
None yet
2 participants
@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...).

@abo-abo abo-abo closed this in 70f8f4a Nov 27, 2017

@abo-abo

This comment has been minimized.

Owner

abo-abo commented Nov 27, 2017

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment