Feature request: "Replace" vs. "Replace and Find Next"

I wonder if other oXygen users would find this enhancement useful: In the Find/Replace dialogue, instead of two buttons: [Find] [Replace] have three buttons, perhaps called [Find] [Replace] [Replace and Find Next] "Replace and Find Next" would have the identical behavior that the existing Replace button has. But the "Replace" button would do the replacement and stay on the current line. The rationale: very often, when constructing a complex regular expression replacement, I want to be sure that the replacement does what I want. If I just hit "Replace", the cursor moves to the next occurrence (if there is one). So it is necessary to do one of these two things: 1) do the replacement, then do Undo to get back to the replacement line, then Redo to see the replacement; or 2) toggle "Only selected lines" before doing the replacement, then change it back to "All" to continue replacing Having the additional button would remove the need for one of those steps. I realize that this would be a rather big UI change and might possibly confuse people, but I thought I would see whether anyone else agrees, David -- David Sewell, Editorial and Technical Manager ROTUNDA, The University of Virginia Press PO Box 400314, Charlottesville, VA 22904-4314 USA Email: dsewell@virginia.edu Tel: +1 434 924 9973 Web: http://rotunda.upress.virginia.edu/

Rather than changing the existing oft-repeated operation (which I would loathe to see happen) could you have: [Find] [Replace] [Replace Once] I don't think I've been burned by this myself, but I can see that it would be useful. . . . . . . . Ken At 2014-05-28 13:23 -0400, David Sewell wrote:
I wonder if other oXygen users would find this enhancement useful:
In the Find/Replace dialogue, instead of two buttons:
[Find] [Replace]
have three buttons, perhaps called
[Find] [Replace] [Replace and Find Next]
"Replace and Find Next" would have the identical behavior that the existing Replace button has. But the "Replace" button would do the replacement and stay on the current line.
The rationale: very often, when constructing a complex regular expression replacement, I want to be sure that the replacement does what I want. If I just hit "Replace", the cursor moves to the next occurrence (if there is one). So it is necessary to do one of these two things:
1) do the replacement, then do Undo to get back to the replacement line, then Redo to see the replacement; or
2) toggle "Only selected lines" before doing the replacement, then change it back to "All" to continue replacing
Having the additional button would remove the need for one of those steps.
I realize that this would be a rather big UI change and might possibly confuse people, but I thought I would see whether anyone else agrees,
David
-- Contact us for world-wide XML consulting and instructor-led training | Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm | Crane Softwrights Ltd. http://www.CraneSoftwrights.com/m/ | G. Ken Holman mailto:gkholman@CraneSoftwrights.com | Google+ profile: http://plus.google.com/+GKenHolman-Crane/about | Legal business disclaimers: http://www.CraneSoftwrights.com/legal | --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com

I agree with a naming proposal like Ken's -- it is better to avoid changing the function associated with an existing name. David On Wed, 28 May 2014, G. Ken Holman wrote:
Rather than changing the existing oft-repeated operation (which I would loathe to see happen) could you have:
[Find] [Replace] [Replace Once]
I don't think I've been burned by this myself, but I can see that it would be useful.
. . . . . . . Ken
At 2014-05-28 13:23 -0400, David Sewell wrote:
I wonder if other oXygen users would find this enhancement useful:
In the Find/Replace dialogue, instead of two buttons:
[Find] [Replace]
have three buttons, perhaps called
[Find] [Replace] [Replace and Find Next]
"Replace and Find Next" would have the identical behavior that the existing Replace button has. But the "Replace" button would do the replacement and stay on the current line.
The rationale: very often, when constructing a complex regular expression replacement, I want to be sure that the replacement does what I want. If I just hit "Replace", the cursor moves to the next occurrence (if there is one). So it is necessary to do one of these two things:
1) do the replacement, then do Undo to get back to the replacement line, then Redo to see the replacement; or
2) toggle "Only selected lines" before doing the replacement, then change it back to "All" to continue replacing
Having the additional button would remove the need for one of those steps.
I realize that this would be a rather big UI change and might possibly confuse people, but I thought I would see whether anyone else agrees,
David
-- Contact us for world-wide XML consulting and instructor-led training | Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm | Crane Softwrights Ltd. http://www.CraneSoftwrights.com/m/ | G. Ken Holman mailto:gkholman@CraneSoftwrights.com | Google+ profile: http://plus.google.com/+GKenHolman-Crane/about | Legal business disclaimers: http://www.CraneSoftwrights.com/legal |
--- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
-- David Sewell, Editorial and Technical Manager ROTUNDA, The University of Virginia Press PO Box 400314, Charlottesville, VA 22904-4314 USA Email: dsewell@virginia.edu Tel: +1 434 924 9973 Web: http://rotunda.upress.virginia.edu/

Hi, Thank you all for the feedback. We already have a request logged for this on our issue tracking tool. I've added your votes and mentioned all your comments. We're leaning towards the 'Replace Once' solution that Ken proposed. This would avoid confusion for people who are already accustomed to the current functionality of the buttons ('Replace' button performing a replace followed by a find). Regards, Adrian Adrian Buza oXygen XML Editor and Author Support Tel: +1-650-352-1250 ext.2020 Fax: +40-251-461482 support@oxygenxml.com http://www.oxygenxml.com On 28.05.2014 21:55, David Sewell wrote:
I agree with a naming proposal like Ken's -- it is better to avoid changing the function associated with an existing name.
David
On Wed, 28 May 2014, G. Ken Holman wrote:
Rather than changing the existing oft-repeated operation (which I would loathe to see happen) could you have:
[Find] [Replace] [Replace Once]
I don't think I've been burned by this myself, but I can see that it would be useful.
. . . . . . . Ken
At 2014-05-28 13:23 -0400, David Sewell wrote:
I wonder if other oXygen users would find this enhancement useful:
In the Find/Replace dialogue, instead of two buttons:
[Find] [Replace]
have three buttons, perhaps called
[Find] [Replace] [Replace and Find Next]
"Replace and Find Next" would have the identical behavior that the existing Replace button has. But the "Replace" button would do the replacement and stay on the current line.
The rationale: very often, when constructing a complex regular expression replacement, I want to be sure that the replacement does what I want. If I just hit "Replace", the cursor moves to the next occurrence (if there is one). So it is necessary to do one of these two things:
1) do the replacement, then do Undo to get back to the replacement line, then Redo to see the replacement; or
2) toggle "Only selected lines" before doing the replacement, then change it back to "All" to continue replacing
Having the additional button would remove the need for one of those steps.
I realize that this would be a rather big UI change and might possibly confuse people, but I thought I would see whether anyone else agrees,
David
-- Contact us for world-wide XML consulting and instructor-led training | Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm | Crane Softwrights Ltd. http://www.CraneSoftwrights.com/m/ | G. Ken Holman mailto:gkholman@CraneSoftwrights.com | Google+ profile: http://plus.google.com/+GKenHolman-Crane/about | Legal business disclaimers: http://www.CraneSoftwrights.com/legal |
--- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com

I often found myself in the situation that David describes, having to go back to check the result of a replace. This proposal would save me some work. Peter ________________________________________ Van: oxygen-user-bounces@oxygenxml.com [oxygen-user-bounces@oxygenxml.com] namens David Sewell [dsewell@virginia.edu] Verzonden: woensdag 28 mei 2014 19:23 Aan: Oxygen Users Onderwerp: [oXygen-user] Feature request: "Replace" vs. "Replace and Find Next" I wonder if other oXygen users would find this enhancement useful: In the Find/Replace dialogue, instead of two buttons: [Find] [Replace] have three buttons, perhaps called [Find] [Replace] [Replace and Find Next] "Replace and Find Next" would have the identical behavior that the existing Replace button has. But the "Replace" button would do the replacement and stay on the current line. The rationale: very often, when constructing a complex regular expression replacement, I want to be sure that the replacement does what I want. If I just hit "Replace", the cursor moves to the next occurrence (if there is one). So it is necessary to do one of these two things: 1) do the replacement, then do Undo to get back to the replacement line, then Redo to see the replacement; or 2) toggle "Only selected lines" before doing the replacement, then change it back to "All" to continue replacing Having the additional button would remove the need for one of those steps. I realize that this would be a rather big UI change and might possibly confuse people, but I thought I would see whether anyone else agrees, David -- David Sewell, Editorial and Technical Manager ROTUNDA, The University of Virginia Press PO Box 400314, Charlottesville, VA 22904-4314 USA Email: dsewell@virginia.edu Tel: +1 434 924 9973 Web: http://rotunda.upress.virginia.edu/ _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (4)
-
David Sewell
-
G. Ken Holman
-
Oxygen XML Editor Support (Adrian Buza)
-
Peter Boot