edenzik / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

Cmd-f writes "\V\c"' to find pasteboard. #215

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Hit cmd-f, enter some text, hit enter. Then go to safari (or textedit or…) 
and hit cmd-f.

What is the expected output? What do you see instead?

Safari's find box should contain the text I entered in the find dialog. 
Instead, it contains "\V\ctext" (probably because that's added to the search 
for vim).

What version of MacVim and OS X are you using (see "MacVim->About 
MacVim"
and  "Apple Menu->About This Mac" menu items, e.g. "Snapshot 40, 
10.5.6
Intel")?

Snap 49, 10.5.8 Intel.

Please provide any additional information below.

Original issue reported on code.google.com by thakis@chromium.org on 14 Sep 2009 at 3:47

GoogleCodeExporter commented 9 years ago
Yes, this is annoying.  A similar problem occurs if you hit "*" on top of a 
word, then Cmd-f in Safari (the search 
box contains \<word\>).

I'm not sure how to go about fixing this?  I could strip all backslash escaped 
chars before adding them to the find 
pasteboard, but then Cmd-g won't work properly in MacVim (it uses whatever's on 
the find pasteboard, if I 
remember correctly).

I'll have to give it some thought.

Original comment by bjorn.winckler@gmail.com on 14 Sep 2009 at 10:28

GoogleCodeExporter commented 9 years ago
I've partially fixed this issue now (and the fix will be in snap 52).

Other apps will receive search pattern which is stripped of some common 
backslash escape patterns (currently: 
\<, \>, \V, \c, \C).  MacVim will still see the full search pattern though, so 
searching in one MacVim window and 
then pulling the search over to another MacVim window will not loose any 
information in the search pattern.

Original comment by bjorn.winckler@gmail.com on 28 Nov 2009 at 6:16