Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upSearches with "#" blow up #5
Comments
This comment has been minimized.
This comment has been minimized.
Can you tell me your operating system, version of ack/ack-grep, etc.? I can't recreate your issue. |
This comment has been minimized.
This comment has been minimized.
Sure, I'm using MacVim Snapshot 52 along with OSX 10.6.4. Ack version is 1.92 (perl 5.10). I'll try it with my Terminal vim instead, maybe its just a macvim bug |
This comment has been minimized.
This comment has been minimized.
Same issue in pure terminal vim (version 7.2.108) |
This comment has been minimized.
This comment has been minimized.
Here's all my config settings (http://github.com/railsjedi/vimconfig). Let me know if you can repro with this setup. Thanks! |
This comment has been minimized.
This comment has been minimized.
The issue at hand is that '#' will get replaced with the alternate file name. You have to escape it like this I do not know if there is anything ack.vim could do about this to make it simpler (i.e. not require any escaping. The same issue should apply to |
This comment has been minimized.
This comment has been minimized.
thank you. i thought i was going crazy (searching exactly for # and % strings...gah) |
This comment has been minimized.
This comment has been minimized.
Have encountered this issue too. Escaping with '#' works, but I've spent some time to find it out:). |
This comment has been minimized.
This comment has been minimized.
Done. |
Make necessary escapes as you can pass plain '#' or '%' now.
This comment has been minimized.
This comment has been minimized.
@blueyed, why the triple slash to escape |
This comment has been minimized.
This comment has been minimized.
I can confirm, triple is needed. |
This comment has been minimized.
This comment has been minimized.
Ok. Is this under Linux? Still so if |
This comment has been minimized.
This comment has been minimized.
@Konfekt This is under all platforms. |
This comment has been minimized.
This comment has been minimized.
Ok, thank you. Now that I know about |
This comment has been minimized.
This comment has been minimized.
Hi, guys. I have just tried that with my MacVim (version 7.4.622), and it seems that only one back slash is enough and when I input three, nothing will be found. |
I often need to search for strings that begin with "#" when finding id divs in haml/css
However Ack.vim explodes when using:
error:
ack -Q "#something"
works fine from the command line so something in ack.vim is screwing it up