faq:smart-horizontal-cursor-position

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
faq:smart-horizontal-cursor-position [2014/09/01 16:04] adminfaq:smart-horizontal-cursor-position [2018/04/13 14:37] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Smart Horizontal Cursor Position ====== ====== Smart Horizontal Cursor Position ======
-When you do editing and moving of the cursor line up/down HippoEDIT may behave not as you expected. The reason for it, smart logic, trying to keep you in most probable editing point in next/previous line. Such behavior can be very beneficial when doing multiple, multi-line text edition.+When you do editing and moving the cursor line up/down HippoEDIT may behave not as you expected. The reason for it, smart logic, trying to keep you in most probable editing point in the next/previous line. Such behavior can be very beneficial when doing multiple, multi-line text edition.
  
 ===== Example ===== ===== Example =====
 +You have code like this, and would like to change a constant 10
 +<code=cpp>
 +int a1 = 10|*(d + c);
 +int a2 = 20*(d + c + f);
 +</code>
 +after edit, the cursor will be like this:
 +<code=cpp>
 +int a1 = 1000|*(d + c);
 +int a2 = 20*(d + c + f);
 +</code>
 +in standard you will expect something like this
 +<code=cpp>
 +int a1 = 1000*(d + c);
 +int a2 = 20*(|d + c + f);
 +</code>
 +but edit use "smart" logic to bring you for more probable edit point:
 +<code=cpp>
 +int a1 = 1000*(d + c);
 +int a2 = 20|*(d + c + f);
 +</code>
 +and by this save you two additional keystroke to move left.
  
 +<note>HippoEDIT will keep track on editing points until explicit horizontal navigation will be done (move left, move right etc)</note>
  
 +<note tip>If you do not like the logic, you can switch back to standard behavior using following [[options:xml:smart-horizontal-position|XML flag]].</note>