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

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
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants