I do not understand the logic behind the Go To Previous/Next Position

Started by Arthur, April 08, 2010, 07:01:59 PM

Previous topic - Next topic

Arthur

I do not understand the logic behind the Go To Previous/Next Position - for example:
if I create a new file, and type in it 'test1' then "enter" then 'test2' and the "enter" key again, and so forth until I have like 5 rows. At this stage I press the Go To Previous button, and it takes me the the record above last, then straight to the first, but stops at the second character...
I expected the repetition of my moves, and cannot explain why it would stop at the second char.
Interestingly, once I am at the top I use Go To Next and it takes me to the bottom straight, and if I use the go to previous it takes me now back to the first row second char, thus skipping the second last row this time.
I am confused  :-\.

alex

hi Arthur,

I have created FAQ topic explaining magic of the Go To Previous/Next Position :)
Hope it would help.

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

Arthur

Thank you Alex, I have just skimmed through it, well.. what can I tell, if I cannot predict where the commands mentioned above will take me to, how will I be/shall be using them?
How did you envision this be helpful?

Stefan

Hi Arthur, will you please describe some more what you don't understand from this feature, so we can better help you?

Wait - now i understand: you mean that you can't see where you will be taken if you execute this command, right?
Since there are some many possibilities as Alex mention in the FAQ http://forum.hippoedit.com/index.php/topic,742.msg3221.html
I have no time right now to dig deeper..
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

alex

Hi Arthur,

the purpose of command to just roughly bring you to an area you as working before. Not something more.
Explicit position user already can find by himself.
In same way it is implemented in Visual Studio (search for "Visual studio "navigate forward" command" in google)
Here is one link.

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

Arthur

Got it, thank you and I have an idea:

you see, even in the post mentioned by you, the MS VS records the last movement place if there is a large gap between lines, I see this helpful.

So for example I forgot to place a bookmark in a large file and have completely navigated away from this last update area, in such a case, this command would be the last resource to jump back to that area.

Could you modify the logic to not to remember the small distances?

alex

Hi Arthur,

but as I wrote, HE skip jumps if distance is less then two lines, is that not enough?
Can be five :)

QuoteIn addition to mentioned behavior, editor skips minor changes even for noted jumps, to reduce history size but have it in brief kind:
- if distance between last anchor in history to new less then two lines

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

Arthur

I think it should be way more, perhaps a screen-full of lines e.g. 50, also HE should take into account significant events e.g. backspacing or delete key presses.