Home Download Buy Blog Forum Support

Bug: Replacement text can contain newlines

Bug: Replacement text can contain newlines

Postby harnold on Thu Jun 28, 2012 1:31 pm

In the Find/Replace dialog, it is possible to enter newlines into the replacement text by hitting Ctrl+Return. Since the "Replace With" field shows only a single line, the user may not notice that the replacement text contains newlines (he might have hit Ctrl+Return accidentally or the newline could be left over from a previous replacement).

Possible solutions:
  1. Prevent the user from entering newlines into the replacement text.
  2. Adapt the height of the text field to the number of entered lines (but only up to a maximum number of lines).
  3. Add a small icon to the text field when it contains multiple lines.
harnold
 
Posts: 3
Joined: Thu Jun 28, 2012 12:47 pm

Re: Bug: Replacement text can contain newlines

Postby thekyz on Thu Jun 28, 2012 1:41 pm

This feature has been useful to me a great number of times. Preventing us from doing so would be a terrible idea in my opinion.
thekyz
 
Posts: 20
Joined: Fri Feb 04, 2011 9:27 am

Re: Bug: Replacement text can contain newlines

Postby adzenith on Thu Jun 28, 2012 5:29 pm

harnold wrote:
  • Adapt the height of the text field to the number of entered lines (but only up to a maximum number of lines).

You can adjust the height yourself by pulling on the top of the panel, but it would be very nice if it auto-expanded as you typed.
adzenith
 
Posts: 1215
Joined: Mon Oct 19, 2009 9:12 pm

Re: Bug: Replacement text can contain newlines

Postby harnold on Fri Jun 29, 2012 6:28 am

I agree that allowing newlines in the replacement text is a useful feature.

But there should be a visual indicator when a text field contains more text than is currently displayed. Currently, a small shadow is drawn when the text exceeds the field's width, which is a nicely unobtrusive indicator. Something similar should be there when the text exceeds the field's height.
harnold
 
Posts: 3
Joined: Thu Jun 28, 2012 12:47 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 13 guests