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?
to your account
While trying out counsel-find-file-occur on Windows I was getting this error:
sed: -e expression #1, char 0: no previous regular expression
After debugging a bit, the problem is with counsel-cmd-to-dired and its use of sed. If I replace the single quotes with escaped double-quotes then things work as expected:
(full-cmd (format "%s %s | sed -e \"s/^/ /\""
Perhaps this is something that can be made platform-specific.
The text was updated successfully, but these errors were encountered:
Ah, I also had to tweak the xargs delimiter in counsel-find-file-occur to get it working:
(format "ls | grep -i -E '%s' | xargs -d '\\n' ls"
Sorry, something went wrong.
Thanks for the pointers. Your changes work for me on Linux. Let me know if this change fixes your issue.
Yes, the changes work for me. Thanks!
Successfully merging a pull request may close this issue.