Using the current selection in a find

Using the current selection in a find

2
NewbieNewbie
2

    Mar 28, 2006#1

    Hi all

    I want to write a macro that allows me to perform a FindInFiles of the current selected text.

    I cannot work out the syntax to use the current selection as a parameter string within a macro. I think it should be something like:

    FindInFiles MatchCase MatchWord OutputWin Log OpenFiles \
    "C:\programs\cygwin\trunk\taps\niceday\" \
    "" \
    SelectText

    but this just seems to search for the string "SelectText".

    Any help gratefully received - and apologies if I'm just being stupid.

    Cheers

    Nic

    6,683583
    Grand MasterGrand Master
    6,683583

      Mar 28, 2006#2

      ^s is the search string you need. See help of UltraEdit about the Find command. ^s works also for find/replace via normal dialog and not just only within a macro.

      But ^s does not working with regular expression except for UltraEdit style regular expression where the currently selected text is interpreted as regular expression search string.

      If you use Unix or Perl regular expression by default you have to make sure the regular expression option is not used if you use ^s or ^c.

      ^s must be entered in the find what field where you normally specify the search string.
      Best regards from an UC/UE/UES for Windows user from Austria

      2
      NewbieNewbie
      2

        Mar 29, 2006#3

        Perfect - many thanks.

        Nic