Go to Position Dialog Goes to the Top if Alpha Character Entered

Started by Arthur, March 12, 2009, 04:40:00 AM

Previous topic - Next topic

Arthur

Go to Position dialog will go to the top of a document if a letter is entered...

Well, I discovered that by a pure accident:

The cursor was on position... err, somewhere in the middle of a 10,000+ line file;

did Cntl-G to invoke the Go to Position dialog in which I pressed by an accident O (can be any char not number) instead of 9 and whoops HE started scrolling to the top of the document (Interactive was on).

Besides, if "Interactive" is on and I choose an old value from the drop-down list - shouldn't it go immediately to that location?
Otherwise I have to click on OK and then the dialog closes.  ??? Inconvenience to me.

alex

Hm. HE goes to 0 position, because aby alpha parsed to 0. Of course I can check this, but form my point of view this is very rare case, and doinf "defence from full" at every place is too expencive :) But I would keep thi in mind and if would do some chnage there, would correct.

With interactive and selectiong form drop down - I would think what is correct :)

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Arthur

Perhaps adding a check against non-numeric chars is essential.

Stefan

@Alex
Talking about GoTo-Dialog i take the change to mention an minor issue i discovered a while back:

you can't insert an greater value to goto n% as the line count is.

i.e.
If you have f.ex. 45 lines you can't insert 50% ...... the view will go
back to the greatest available amount of lines ==here=> 45 and will drop the '%'-sign.

Workaround would be perhaps an checkbox "[ ]%" 
or an prefix like the ':' one, ......f.ex. '%'  like: [%50]
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

Stefan

637
Go To... Dialog works now with goto x%

You have to insert an %-sign first an then the amount, like   [ %50]

Or enter the %-sign first   [ % ]   and then type the amount in front of the % like   [ 75%]

Typing  the amount first and then the %-sign as second like [ 75] ==> [ 75%] didn't works IF the total amount of lines is lesser then the %-amount you wanna use.
f.ex,:  if you have 45 lines and wanna go to 75%, the tipping [75%] didn't works
But this is no big issue because with lines lesser then 100 you wouldn't really  need "go to 75%"
If you need, use the work around i have described above  ( %75).

HTH
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

alex

Hello Stefan,

QuoteTyping  the amount first and then the %-sign as second like [ 75] ==> [ 75%] didn't works IF the total amount of lines is lesser then the %-amount you wanna use.

I could not do something here, because then you type 75 (and incremental is On) I coud not distinguish is this would be percent or not :)
So another workaround would be just remove incremental flag in the box.

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]