Skip to content

Conversation

vds2212
Copy link
Contributor

@vds2212 vds2212 commented Feb 11, 2025

To solve #346 and allow backslash in pattern searching.

@dyng
Copy link
Owner

dyng commented Apr 15, 2025

I think escaping itself is required for building a valid command, but for your issue you could find out which escaping is right. (especially on Windows)

Please refer to below issue, it seems related to your problem:

#164

@vds2212
Copy link
Contributor Author

vds2212 commented Apr 15, 2025

Thanks!

I'll have a second look and propose a solution that work for both: my use case and the error reported.

On Windows "\\" lead to \\ being received by the process
The string need to be escaped differently:
On Linux both \ and " need to be escaped
On Windows only " need to be escaped with another " ("")
@dyng dyng merged commit 50186c5 into dyng:master Apr 21, 2025
@dyng
Copy link
Owner

dyng commented Apr 21, 2025

Merged. Thanks for your contribution!

derbroti pushed a commit to derbroti/ctrlsf.vim that referenced this pull request Jul 6, 2025
Don't escape backslash in patterns to allow backslash in patterns
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

Successfully merging this pull request may close these issues.

2 participants