The "Smart End" function currently moves to the end of the line, excluding trailing
whitespace, on the first press of End. The second press of End goes to the real end
of the line.
Many languages allow "trailing comments", where everything following a certain character,
up to the end of the line, is a comment. E.g. in C++:
Object.DoSomething(); // Does something
My idea for a "Smarter End" function is to have the first End keypress go to the end
of the line, excluding trailing whitespace AND comments. So in the above example,
the cursor would go to just after the semicolon.
Submitted | cmcqueen1975 - 2008-02-28 01:35:56 | Assigned | |
---|---|---|---|
Priority | 5 | Labels | |
Status | open | Group | None |
Resolution | None |
2008-04-29 04:47:57 nalfeo |
Logged In: YES |
---|---|
2008-05-02 00:43:37 cmcqueen1975 |
Logged In: YES |
2009-02-25 06:07:56 cmcqueen1975 |
I looked at the API docs to try to find a way to read the syntax highlighting at the
cursor. Unfortunately the API isn't simple and doesn't lend itself well to this usage
(it's more geared towards the specific task of styling, and not so helpful for machine-based
syntactical analysis for other purposes).
|
2009-08-19 21:50:13 ezust |
rolled back part of it in 15996.
|