Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 10017 - Emacs-like cursor movement
Summary: Emacs-like cursor movement
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 1.0   Edit
Hardware: PC Linux-GTK
: P4 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Alain Magloire CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 8583 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-02-20 10:44 EST by Johan Walles CLA
Modified: 2009-01-09 14:51 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Walles CLA 2002-02-20 10:44:07 EST
I'd like to see an option for preventing the cursor for moving off the end of
lines.  For this to be useful (for me), it must be implemented along the
following lines:

The cursor has two horizontal position; one displayed and one virtual.  The
virtual position is the same as the displayed position as long as the user is
typing or moving the cursor sideways.  When the user moves the cursor up or
down, the display position is clipped to stay to the left of the current line
end, but the virtual position is unchanged.

Thus, pressing down a couple of times, then up the same amount of times will
always get you back to where you started from.

If you want to see this demonstrated, this is the way Emacs implements it
(AFAICT).  If my explanation is unclear, please let me know and I'll try to clarify.
Comment 1 Johan Walles CLA 2002-10-31 06:24:46 EST
Reassigning as the LPEX editor exists no more (may it rest in pieces...).  The
new CDT editor doesn't move the cursor beyond the end of lines (which is nice),
but it neither remembers the horizontal cursor position like Emacs does.
Comment 2 Alain Magloire CLA 2003-10-29 15:32:17 EST
*** Bug 8583 has been marked as a duplicate of this bug. ***
Comment 3 Alain Magloire CLA 2004-06-04 22:04:40 EDT
This is possible in Eclipse-3.0 set the Preference
Preferences --> Workbench --> keys