Re: Strangeness of "next" regular expression
Re: Strangeness of "next" regular expression
- Subject: Re: Strangeness of "next" regular expression
- From: Eduard de Jong <email@hidden>
- Date: Sun, 6 May 2007 21:12:56 +0100
At 11:24 -0700 06-05-2007, Philip Aker wrote:
On 2007-05-06, at 09:31:58, Eduard de Jong wrote:
On 2007-05-06, at 08:35:57, Jeffrey Oleander wrote:
You've reminded me of one I need to submit. I'd like to see the
"find in project" have a replace and find next feature for those
times when I want to replace most but not all occurrences of
something.
You can select any of the found instances in the pane that lists
them and then "replace" only does the ones you have selected!
This is a bit weird UI feature as initially without clicking in the
result pane the 'replace' behaves as if all found instances are
selected, without being highlighted as such. After clicking on just
one, e.g. to look at in detail, you then need to do a select all to
get the full replace all behavior again.
I'd like that too. It is a result of me often needing to find and
replace in a target rather than the whole project.
You might be able to do what you want as you first select the
target in the project window and use "find in selected project
items"
Thanks Eric,
I didn't know about those things but they're not what really I'd
like, and as you infer, not really intuitive.
For instance if I do a batch select, then click on a result entry
file (one with a disclosure triangle), and then choose replace, I
get an error. Not what I expect. I expect that all the items in that
particular file would be replaced.
There is a difference in selecting the file name and selecting the
shown found instance in the file. Selecting the first will AFAIR
replace all in the file.
Secondly, the target has to be selected in the project. I'm never
there when I want to do a batch replace. What I've done 100% of the
time is selected a particular file or files in the active target,
opened it/them and found something badly named which I'd like to
have replaced in all the target files (not just the ones I have open
and not all the files in the project). That means I have to go back
to the project window, select the target, open the find window,
choose the "find in selected project items", and then do the
business. What I'd like is the option: "in active target files" in
the find window directly.
That seems a good one to report to Apple.
I usually switch over to TextWranger when I want to do some serious
find and replace. Xcode doesn't get all the matches all the time.
I use BBedit for the heavy lifting, including multi line replacements etc.
Philip Aker
email@hidden
--
Eduard
"E por se movo"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden