I have 2 files open. I'm trying to find a couple of words in file 2 by selecting using Cmd-E those words in file 1. The first find (say the word is "Dumpty") using Cmd-G works as expected and the "Dumpty" is selected in file 2. But if the second word (say "Humpty") exists before the first word in file 2 then I get 'No more occurrences of Humpty' but the word "Humpty" doesn't get selected, selection stays on the "Dumpty". It looks like find doesn't wrap to the beginning.
If I do the find in reverse, find "Humpty" then "Dumpty", this works as expected.
Cheers, Ed Wong
On 12/01/2012, at 02.27, Ed Wong wrote:
[…] It looks like find doesn't wrap to the beginning.
Wrap around can be toggled in the find dialog.
When disabled, TextMate always searches from current position (caret/selection) and to end of file. I.e. ⌘G is “next” compared to where you are now and not “first match”.
On 2012-01-15, at 9:56 pm, Allan Odgaard wrote:
On 12/01/2012, at 02.27, Ed Wong wrote:
[…] It looks like find doesn't wrap to the beginning.
Wrap around can be toggled in the find dialog.
When disabled, TextMate always searches from current position (caret/selection) and to end of file. I.e. ⌘G is “next” compared to where you are now and not “first match”.
Doh, ok, I haven't used the Find dialog yet. I guess wrap is disabled by default.
I think the thing that threw me off was that the previous selection was still selected when the warning came up.
Thanks, Ed