Skip to content

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

@oantolin

Description

@oantolin

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...).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions