HippoEDIT homepage Welcome, Guest. Please login or register.
September 10, 2010, 09:06:18 pm
Home Help Search Login Register

+  HippoEDIT - Programmers text editor
|-+  General Category
| |-+  General Discussion (Moderators: alex, Stefan)
| | |-+  I do not understand the logic behind the Go To Previous/Next Position
« previous next »
Pages: [1] Print
Author Topic: I do not understand the logic behind the Go To Previous/Next Position  (Read 310 times)
Arthur
Hero Member
*****

Karma: +1/-0
Offline Offline

Gender: Male
Posts: 600


He who is ashamed of asking is afraid of learning.


View Profile WWW
« on: April 08, 2010, 06:01:59 pm »

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  Undecided.
Logged
alex
Developer
Global Moderator
Hero Member
*****

Karma: +19/-2
Online Online

Gender: Male
Posts: 1336



View Profile WWW
« Reply #1 on: April 08, 2010, 11:51:15 pm »

hi Arthur,

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

Best regards,
Alex.
Logged

Arthur
Hero Member
*****

Karma: +1/-0
Offline Offline

Gender: Male
Posts: 600


He who is ashamed of asking is afraid of learning.


View Profile WWW
« Reply #2 on: April 09, 2010, 01:16:10 am »

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?
Logged
Stefan
Administrator
Hero Member
*****

Karma: +6/-0
Offline Offline

Posts: 684



View Profile
« Reply #3 on: April 09, 2010, 09:05:17 am »

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..
Logged

Stefan, HippoEDIT beta tester  (HippoEDIT News On Twitter: http://twitter.com/hippoedit/)
alex
Developer
Global Moderator
Hero Member
*****

Karma: +19/-2
Online Online

Gender: Male
Posts: 1336



View Profile WWW
« Reply #4 on: April 09, 2010, 10:33:53 am »

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.
Logged

Arthur
Hero Member
*****

Karma: +1/-0
Offline Offline

Gender: Male
Posts: 600


He who is ashamed of asking is afraid of learning.


View Profile WWW
« Reply #5 on: April 09, 2010, 04:46:39 pm »

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?
Logged
alex
Developer
Global Moderator
Hero Member
*****

Karma: +19/-2
Online Online

Gender: Male
Posts: 1336



View Profile WWW
« Reply #6 on: April 09, 2010, 06:20:46 pm »

Hi Arthur,

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

Quote
In 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.
Logged

Arthur
Hero Member
*****

Karma: +1/-0
Offline Offline

Gender: Male
Posts: 600


He who is ashamed of asking is afraid of learning.


View Profile WWW
« Reply #7 on: April 10, 2010, 04:07:03 am »

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.
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC