On Sunday, June 4, 2006, at 03:07  pm, [EMAIL PROTECTED] wrote:

On 3 Jun 2006, at 13:13, Ben Dougall wrote:

based on the below question (ignoring the "rather than writing an external program" part) and on my own wishes on numerous occasions, is this possible in bbedit somehow

when doing regex find and replaces for example, in the places in the replace box where you can refer to found sections of text using \1 and \2 etc, is it possible to carry out what this indicates:

\1 | /Users/Desktop/mycommandlineutility

and have external processes take text input (which would be the piece of text found by the bracketed find regex), processes it in whatever way it's programmed and insert its input into the text just as \1 does in the usual way but the processed by external app/utility version of \1

I don't think it's possible in BBEdit at the moment.

that's a shame -- to start with i thought maybe the popup menu that's usually displaying "Folder" (i'm using 7.1.3) might be something helpful towards this as one of that menu's options is "Script" but on closer look that's obviously nothing to do with it

It's a good idea, though, and others have thought so too, because there are some scripting languages around that will let you call functions as part of the replace part of a 'grep'-style search and replace operation. It makes sense, really, since you often want to do something with text once you've found it.

yup.

Although I suspect it makes an already complex feature even more complicated.

i'm sure it could be worked out reasonably somehow. you just need to be able to assign some kind of action/process to each \1 \2 that you want -- so far as the user's point of view it would just require a bit of extra GUI stuff of some sort in the find window -- wouldn't be that big a deal i don't reckon.

ok, thanks for the reply.


--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to