[TxMt] Guaranteeing Wrap in a "Find" Macro?

Charles Turner vze26m98 at optonline.net
Tue Sep 14 15:27:46 UTC 2010


Hi all-

I'm writing a macro:

selectBlock:
copySelectionToFindPboard:
findWithOptions:

All I'm doing is getting some text between square brackets, pasting it into the find dialog, and hoping to search with "wrap" enabled.

Trouble is, the findWithOptions: wants to hardwire my find selection:

{
  action = findNext;
  findInProjectIgnoreCase = 0;
  findInProjectRegularExpression = 0;
  findString = "[^f100914110843]";
  ignoreCase = 0;
  regularExpression = 0;
  replaceAllScope = document;
  wrapAround = 1;
}

I tried removing the findString property, but then I lose the wrapAround for some reason. That is, the property is in the macro text, but wrap doesn't work when the macro is executed.

Any idea what I'm doing wrong here?

Thanks!

Charles





More information about the textmate mailing list