Bug 140489 - Support "smart caret positioning" similar to Java
Summary: Support "smart caret positioning" similar to Java
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 4.0 M5   Edit
Assignee: Anton Leherbauer CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
: 113570 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-06 23:33 EDT by Sergey Prigogin CLA
Modified: 2009-01-09 15:10 EST (History)
2 users (show)

See Also:


Attachments
Implementation of "smart caret positioning" for C files. (41.31 KB, patch)
2006-05-06 23:35 EDT, Sergey Prigogin CLA
no flags Details | Diff
Implementation of "smart caret positioning" for C files. Now with a C Editor preference. (47.94 KB, patch)
2006-06-04 18:34 EDT, Sergey Prigogin CLA
no flags Details | Diff
Implementation of "smart caret positioning" for C files. Added junit tests and merged with HEAD. (60.10 KB, patch)
2006-07-15 01:31 EDT, Sergey Prigogin CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Prigogin CLA 2006-05-06 23:33:16 EDT
Java's smart caret positioning changes behavior of Ctrl+Right, Ctrl+Left, Ctrl+Delete and Ctrl+Backspace keys to follow word boundaries in camel case identifiers. The same functionality is useful for C++ as well.
Comment 1 Sergey Prigogin CLA 2006-05-06 23:35:18 EDT
Created attachment 40558 [details]
Implementation of "smart caret positioning" for C files.
Comment 2 Sergey Prigogin CLA 2006-06-04 18:34:20 EDT
Created attachment 43422 [details]
Implementation of "smart caret positioning" for C files. Now with a C Editor preference.
Comment 3 Norbert Plött CLA 2006-07-11 02:35:25 EDT
I have tried your patch but have not found the preference.
Can you help me?
Comment 4 Anton Leherbauer CLA 2006-07-11 06:28:11 EDT
In reply to comment #3:
I found the preference on the Appearance page.

Sergey, the patch looks good.
Could you implement junit tests for the new Iterator classes? (JDT has probably something similar in place). Thanks!
Comment 5 Anton Leherbauer CLA 2006-07-14 05:16:18 EDT
I intend to apply the patch. Are the junit tests in the works?
Comment 6 Sergey Prigogin CLA 2006-07-14 12:14:02 EDT
I'll add the junit tests this coming weekend.
Comment 7 Sergey Prigogin CLA 2006-07-15 01:31:39 EDT
Created attachment 46330 [details]
Implementation of "smart caret positioning" for C files. Added junit tests and merged with HEAD.
Comment 8 Anton Leherbauer CLA 2006-07-17 10:30:06 EDT
Patch applied and commited to HEAD (>I20060717). Only minor changes to the comments. Thanks!
Comment 9 Anton Leherbauer CLA 2006-10-13 08:32:07 EDT
*** Bug 113570 has been marked as a duplicate of this bug. ***